Commit Graph

837 Commits

Author SHA1 Message Date
Jared f0a3196b00 Merge pull request #2041 from jingwu74/master
Adding Benchmark algorithms
2018-05-29 17:38:55 -04:00
Jing Wu 6045aa0579 minor change 2018-05-29 17:36:11 -04:00
AlexCatarino 595700e340 Fixes EqualWeightingPortfolioConstructionModel logic
`EqualEeightingPortfolioConstructionModel` (C# and Python) allocates all cash to the stocks who have insights in universe.
- Fixes regression tests to reflect the model logic change
- Fixes imports in python algorithms to use python models when available
2018-05-28 12:47:06 +01:00
Jing Wu 6e8dd0d40f modify project file 2018-05-26 01:55:39 -04:00
Jing Wu cbc948a535 add ScheduleEventsBenchmark algorithm 2018-05-26 01:55:00 -04:00
Jing Wu 093d6d56a1 add IndicatorRibbonBenchmark algorithm 2018-05-26 01:54:08 -04:00
Jing Wu 98027e2025 add HistoryRequestBenchmark algorithm 2018-05-26 01:52:45 -04:00
Jing Wu 4481f200ba add CoarseFineUniverseSelectionBenchmark algorithm 2018-05-26 01:51:45 -04:00
Stefano Raggi ae427a14d0 Add regression algorithms for this bug fix 2018-05-25 22:06:28 +02:00
Jing Wu a9e4c99715 Add the portfolio check 2018-05-24 17:21:05 -04:00
Jing Wu 442f419aa9 Add EmptyMinute400EquityBenchmark algorithm 2018-05-24 16:42:33 -04:00
Jing Wu d8559f1fb4 Update project file for adding new algorithms 2018-05-24 16:40:26 -04:00
Jing Wu 52467e154d Add EmptySingleSecuritySecondEquityBenchmark algorithm 2018-05-24 16:39:54 -04:00
Jing Wu 105208d3dd add BasicTemplateBenchmark algorithm 2018-05-24 16:38:37 -04:00
Jared f63a34b699 Delete BasicTemplateFxcmVolumeAlgorithm.py 2018-05-21 19:52:38 -04:00
Jared dcb373afe3 Update QuantConnect.Algorithm.Python.csproj 2018-05-21 19:51:15 -04:00
Jing Wu f606c6f0a6 Fix zero value issue in Greeks 2018-05-21 14:54:05 -04:00
Jing Wu 567e9135ee add python example of using fxcm volume 2018-05-17 17:46:02 -04:00
AlexCatarino c6fc61940d Modifies DisplacedMovingAverageRibbon data resolution
Subscribe to daily data instead of minute-resolution to be able to run tests locally.
- Adds regression test for that algorithm.
2018-05-10 19:44:19 +01:00
AlexCatarino ec63bffaa2 Modifies CoarseFundamentalTop5Algorithm
Renames CoarseUniverseTop5DollarVolumeAlgorithm.cs to CoarseFundamentalTop5Algorithm.cs: fine name was unconsistent with class name (not a QuantConnect pattern).

Adds Log method calls to python algorithm that are present in C# example.
2018-05-10 19:44:19 +01:00
AlexCatarino 5006600166 Modifies RenkoConsolidatorAlgorithm data resolution
Subscribe to daily data instead of minute-resolution to be able to run tests locally. Also, liquidate the position in one of the event handlers to generate more trades.
- Adds regression test for that algorithm.
2018-05-10 19:44:18 +01:00
Michael bc4a752985 Merge pull request #1987 from AlexCatarino/feature-1985-adds-universe-selectin-security-initializer-example
Adds universe selection algorithm with custom security initilizer
2018-05-10 14:28:54 -04:00
AlexCatarino f77c0ae792 Consistency fix 2018-05-10 15:47:51 +01:00
AlexCatarino f23ef2a60c Uses the simplest SetSecurityInitializer overload in the examples. 2018-05-10 12:20:05 +01:00
AlexCatarino 24af1bd7cd Adds universe selection algorithm with custom security initilizer 2018-05-10 11:58:11 +01:00
AlexCatarino 042028096b Refactors CompositeAlphaModel constructors
Changes the constructor that accepted an array to accept params array and adds a new constructor to deal with a single model addition.
2018-05-09 22:36:33 +01:00
AlexCatarino ff574b9d86 Fixes EmaCrossUniverseSelectionModel indicator update logic
Instead of using the `&&` operator, use `&` so that both EMA are updated.
2018-05-08 19:47:20 +01:00
AlexCatarino 5d6dea6473 Simplify EmaCrossUniverseSelectionModel by using list instread of dict 2018-05-08 18:54:17 +01:00
AlexCatarino 04f357f2b8 Implements python version of EmaCrossUniverseSelectionModel
Adds EmaCrossUniverseSelectionModel and EmaCrossUniverseSelectionFrameworkAlgorithm to show the new model in action
2018-05-08 18:54:17 +01:00
Jared 0a2f7032c2 Merge pull request #1964 from AlexCatarino/feature-1962-deprecate-action-scheduleevent
Updates examples with ScheduleEvents
2018-05-07 09:38:01 -04:00
AlexCatarino f3c6c7202a Updates Algorithm.Python and Algorithm.PythonTools projects 2018-05-07 14:19:51 +01:00
AlexCatarino e7c1fbd556 Updates examples with ScheduleEvents 2018-05-07 12:53:38 +01:00
AlexCatarino 88b97bd8e4 Adds overload to ScheduleManager.On method that accepts a PyObject parameter
Adding an overload to `ScheduleManager.On` method that accepts a `PyObject` parameter enables python algorithm to pass a method as parameter directly.
- Fixes `ScheduleEventsAlgorithm` to show the new feature in action.
2018-05-07 12:05:00 +01:00
AlexCatarino 61b5859446 Implements SectorExposureRiskFrameworkAlgorithm
This algorithm and its regression test are meant to test the `MaximumSectorExposureRiskManagementModel`.
2018-05-03 21:53:14 +01:00
Michael d878857e50 Merge pull request #1938 from StefanoRaggi/feature-1093-ib-time-in-force-day
Add TimeInForce.Day support in backtesting and IB brokerage
2018-05-03 14:33:40 -04:00
Michael 4eb896bbee Merge pull request #1946 from jingwu74/master
Fix issue of no traded options in OptionChainProviderAlgorithm
2018-05-02 20:36:55 -04:00
Michael Handschuh c25afbad29 Add fill/update/cancel times to order object
LastFillTime is updated on each partial/fill order event
LastUpdateTime is updated on each submitted order event w/ update count > 0
CancelTime is updated on canceled order events

Also fixes bug in regression algorithm where it used Time instead of UtcTime
for creating the SubmitOrderRequest object.
2018-05-02 14:16:33 -04:00
Jing Wu 7569467f45 fix bugs of no traded options 2018-05-01 15:34:40 -04:00
Stefano Raggi 2d19ab7ead Review TimeInForce handler interface
- removed IAlgorithm dependency from time in force handlers
- renamed GoodTilCancelled to GoodTilCanceled
- added GTC time in force in regression algorithms
- inlined initialization of time in force handler dictionary
2018-05-01 20:53:43 +02:00
Stefano Raggi 38ac2c5d72 Add TimeInForceAlgorithm regression tests 2018-04-30 20:18:18 +02:00
AlexCatarino 11489b3edf Modifies BasicTemplateFrameworkAlgorithm
- Use `MaximumDrawdownPercentPerSecurity` as `RiskManagementModel`.
- Modifies regression test to reflect risk model choice
- Use SetXXX to set models in python version
2018-04-27 23:08:53 +01:00
AlexCatarino 991b15a6d1 Adds python version of PairsTradingAlphaModelFrameworkAlgorithm 2018-04-25 13:45:44 +01:00
Michael 0c8119de8a Merge pull request #1889 from AlexCatarino/feature-1884-python-execution-models
Adds python version of execution model examples
2018-04-19 13:24:27 -04:00
AlexCatarino 4722e1cab5 Adds python version of execution models regression algorithms 2018-04-19 12:53:29 +01:00
AlexCatarino c4cde0e06d Adds python version of CompositeAlphaModelFrameworkAlgorithm 2018-04-19 11:32:33 +01:00
AlexCatarino b0265ba7f5 Adds support to python selectors in Renko Consolidators 2018-04-16 14:39:25 +01:00
AlexCatarino 35e8e0891e Fixes RenkoConsolidator for python
- Missing `event` keyword prevented pythonnet to recognize `DataConsolidated` as a event handler.
- Adds python version of `RenkoConsolidatorAlgorithm`.
2018-04-16 13:39:16 +01:00
Jared eb9e15c507 Merge pull request #1866 from jingwu74/master
Use available resolution in options and futures algorithms
2018-04-13 15:58:56 -04:00
Jing Wu 4c98817c9e change the benchmark setting 2018-04-12 18:33:01 -04:00
Jared 699bfe0812 Merge pull request #1861 from StefanoRaggi/bug-1820-crypto-basic-template
Update BasicTemplateCryptoAlgorithm to include crypto specific features
2018-04-12 17:05:07 -04:00