Commit Graph

628 Commits

Author SHA1 Message Date
Gerardo Salazar 4a83793067 Address review 2019-07-09 17:46:15 -07:00
Gerardo Salazar d5e148b05c Adds Psychsignal data converter and custom data implementation 2019-07-09 17:45:31 -07:00
Daniel Chen c5e1335e9d More Appropriate Modifications 2019-07-09 11:23:44 -07:00
Daniel Chen 20176eaaf1 Small Changes 2019-07-09 09:05:27 -07:00
Daniel Chen 9d20cf0e7a Add More Comments and Do Modifications
Add More Comments and Do Modifications for the 5 ML Algorithms.
2019-07-09 08:58:52 -07:00
Daniel Chen 6e76f5742d Add new machine learning demonstration algorithms 2019-07-05 14:10:29 -07:00
Gerardo Salazar 9aaf544d28 Fix wrong class name for python SECReportDataAlgorithm 2019-06-21 16:09:25 -07:00
Martin Molinero a92bee5bf1 Fix OnEndOfDay not fired
- Adding `IRealTimeHandler.OnSecurityChanged()` will be used to update
the `OnEndOfDay` security related scheduled events
- Adding `BaseRealTimeHandler.cs` to reduce code duplication in the
`Backtesting` and `LiveTrading` `RealTimeHandlers`
- Adding CSharp and Python regression tests
- Deprecating `OnEndOfDay()` callback because of two reasons, mainly
because Python does not support two methods with the same name, but also
because different assets have different market close times.
- `ScheduledEvents` set at the same time will now be deterministic
2019-06-20 17:35:28 -03:00
AlexCatarino 5b34e2519a Adds TradingEconomicsCalendarIndicatorAlgorithm
Adds C# and Python version of TradingEconomicsCalendarIndicatorAlgorithm to show how TradingEconomics data can be added to an algorithm.
2019-06-20 10:35:56 +01:00
Gerardo Salazar 2ad1f19f85 Implements Sec Custom Data, ToolBox Application, and Sample Algorithm 2019-06-17 16:45:53 -07:00
Jared a2a63ae058 Merge pull request #3016 from QuantConnect/feature-3015-add-weight-to-insights
Add Insight optional Weight
2019-06-04 16:52:48 -07:00
Jack Simonson 7793033c32 Changes made to CS file too 2019-05-24 16:18:08 -07:00
Jack Simonson f2f732b614 Removed references to FrameworkBridgeAlgorithm, but kept essential points about adding EmitInsights 2019-05-24 16:04:30 -07:00
Jared 1d6bbb89e3 Merge pull request #3220 from simonsonjack/feature-delete-dailyfx-class
Delete DailyFx class
2019-05-22 17:39:47 -07:00
Jack Simonson 543abd77c5 Delete DailyFx class
Deleted DailyFx class and associated references in algorithms and tests
2019-05-22 09:36:19 -07:00
Jared 2f46e708a1 Merge pull request #3184 from Martin-Molinero/refactor-3183-remove-backtestingtransactionhandler-thread
Removing BacktestingTransactionHandler thread
2019-05-17 07:22:24 -07:00
Jack Simonson ec9b1170f3 Changes to start and end dates so open source project data can be used 2019-05-16 09:25:27 -07:00
Jack Simonson 4c1f147acf Changes based on review by Alex 2019-05-16 09:16:44 -07:00
Jack Simonson 21f0222fa8 Add template algorithms
Two demonstration algorithms showing how to incorporate Python into a C# algorithm and vice versa
2019-05-14 16:50:13 -07:00
Martin Molinero f976ffa099 Removing BacktestingTransactionHandler thread
- For backtesting the algorithm thread will sequentially process pending
order requests
   - Adding new non blocking `BusyCollection`
- Updating `UpdateOrderRegressionAlgorithm` that suffered of a race
condition: it supposed `OnOrderEvent` would be called after the call to
`Transactions.AddOrder()` was finished
2019-05-10 16:15:24 -03:00
Jack Simonson da6424b5cc Update TriangleExchangeRateArbitrageAlpha.py 2019-05-08 10:54:11 -07:00
Jack Simonson f63efbe6fa Update TriangleExchangeRateArbitrageAlpha.py
Updated code in symbol check -- data.Bars.ContainsKey() needs to take string argument
2019-05-08 10:24:17 -07:00
Chris Auld d8772051b2 Removed dependencies on PTVS
File had hard-coded references and calls to Python Tools for Visual Studio. This PR removes these.
Algorithm tested and runs in online QuantConnect deployment of LEAN.
2019-05-06 03:11:35 +08:00
Alexandre Catarino 3f00762bfd Adds Custom Data from US Energy Information Administration (eia.gov) (#3136)
New custom data class USEnergyInformation with new demonstration algorithms, the updated config file for users to set their EIA token.

Adds `CloseTime` to represent the time that the data period end. `EndTime` represents, in turn, the time the data is emitted. There is an offset between `CloseTime` and `EndTime` that is defined by the difference between the last bar as emitted and its time. 

In live mode, if the `USEnergyInformation.Reader` returns null, the `CollectionSubscriptionDataSourceReader.Read` method will pull for new data constantly. Therefore it should return an empty `BaseDataCollection` object.
2019-04-30 17:22:11 -07:00
Jared 26576c94f9 Merge pull request #3138 from linkliang/mono-config
Fix System.DllNotFoundException: python3.6m for mac&python users
2019-04-26 13:22:15 -07:00
linkliang e4458f94f3 refine readme.md 2019-04-26 10:33:19 -07:00
Stefano Raggi 74fcb8da93 Fix invalid currency pairs in G10CurrencySelectionModel 2019-04-25 21:47:32 +02:00
linkliang fbe42d27f6 add documentation for mac mono config issue 2019-04-25 08:11:24 -07:00
Jared fcf3558e94 Merge pull request #3122 from QuantConnect/feature-3117-update-pythonnet
Updates pythonnet to 1.0.5.20
2019-04-24 09:14:20 -07:00
Martin Molinero ac53e2a790 Rebase from master. Adding missing Python algo 2019-04-24 11:05:15 -03:00
Jack Simonson eb8f7dbc7f Update PriceGapMeanReversionAlpha.py
Stumbled upon minor code changes to improve cleanliness and one that affects function
2019-04-23 17:42:24 -07:00
AlexCatarino c3de660551 Updates pythonnet to 1.0.5.20 2019-04-23 23:15:14 +01:00
AlexCatarino 04a529c758 Addresses Review
- Removes `UniverseSettings.DataNormalizationMode` (it will ne addressed in a dedicated issue: https://github.com/QuantConnect/Lean/issues/3082)
- Adds examples/tests for Tick resolution, Forex (QuoteBar data) and Custom data.
  - Tick resolution is not allowed: logs a message
  - Custom data example/test added in `CustomDataNiftyAlgorithm`
- Adds support for ATR and VWAP since they are, respectively, a bar and a trade bar indicator.
- Adds consolidators to handle difference between data resolution and indicator resolution.
2019-04-18 23:29:51 +01:00
AlexCatarino 3c019cdbda Adds SmaCrossUniverseSelectionAlgorithm
This algorithm is an example for WarmUpIndicator method usage
2019-04-18 23:29:51 +01:00
Jared b7de35df78 Merge pull request #3100 from Martin-Molinero/performance-3096-add-stateful-stateless-coarse-universe-selection
Adding new Coarse performance benchmarks
2019-04-18 14:31:18 -07:00
Martin Molinero b5c216f7f3 Adding new Coarse performance benchmarks
- Adding stateless and stateful coarse universe selection benchmarks.
Will be used to benchmark future performance improvement.
2019-04-18 12:47:49 -03:00
AlexCatarino bd9f1c9154 Adds Regression Algorithm 2019-04-17 18:11:48 +01:00
Jared b331fad160 Merge pull request #3043 from AlexCatarino/feature-3042-pyobject-scheduled-universe
Adds Constructor Overload with PyObject to ScheduledUniverse
2019-04-10 16:49:03 -07:00
AlexCatarino b366f5b2b5 Adds C# and Python examples 2019-04-09 17:59:46 +01:00
AlexCatarino 0202df35f4 Replaces Enum CalendarType for Static Class with the Same Name
Replaces Enum `CalendarType` for static class with the same name. This class defines two properties (`Weekly` and `Monthly`) that can be used to define the previous calendar date (Monday or 1st of current month) which will correspont to the `Time` of a `IBaseData` object.

Refactor `PeriodCountConsolidatorBase` to define use `GetRoundedBarTime` based on a period specification that depends on the constructor overload: `integer`, `TimeSpan` or `Func<DateTime, CalendarInfo>`. The last one can be set with the `CalendarType` properties.
2019-04-08 22:10:04 +01:00
AlexCatarino 5314e7426d Implements Calendar (Weekly/Monthly) Consolidator
Implements consolidators that group bars by a calendar unit (week or month).
2019-04-08 22:10:04 +01:00
Jared d32d1bc90d Merge pull request #3066 from Martin-Molinero/feature-3065-adduniverseselectionmodel
Implement AddUniverseSelectionModel
2019-04-08 14:00:11 -07:00
Jared 16124d17f7 Merge pull request #3059 from AlexCatarino/feature-3058-python-manual-universe-selection-model
Implements the Python Version of ManualUniverseSelectionModel
2019-04-08 13:35:40 -07:00
Martin Molinero 91f19f781d Implement AddUniverseSelectionModel
- Implementing `QCAlgorithm.AddUniverseSelectionModel`
- Adding C#/Py regression algorithms using the new API
- Modifying `ManualUniverSelectionModels` symbol, adding hash of
the selected `Symbol.Values`
- Modifying `Coarse` and `Fine` symbol, adding random GUID
- Adding `NullUniverseSelectionModel`
2019-04-08 16:58:42 -03:00
AlexCatarino dc4dd7dfcb Required Changes after Classic/Framework Merge 2019-04-08 20:30:14 +01:00
Martin Molinero 4d108094e5 Implement QCAlgorithm.AddRiskManagement
- Implemention `QCAlgorithm.AddRiskManagement`
- Adding Py/C# regression test algoririthms
- Moving `CompositeRiskManagementModel` from `Framework` to `Algorithm`
project
2019-04-08 10:53:06 -03:00
AlexCatarino 2801bc6218 Removes G10CurrencySelectionModel from Algorithm.Framework
Removes `G10CurrencySelectionModel` from `Algorithm.Framework` and implement them in the `G10CurrencySelectionModelFrameworkAlgorithm`
Minor change in the Python version of `ManualUniverseSelectionModel` to improve exception messages.
2019-04-05 23:16:55 +01:00
AlexCatarino a0dce83b72 Implements G10CurrencySelectionModel
Implements `G10CurrencySelectionModel` as an example of a selection model with a fixed list of securities.
2019-04-05 23:16:46 +01:00
Jared d9ee31c979 Merge pull request #3055 from QuantConnect/feature-3041-merge-framework-classic-algorithm
Merge Framework, Bridge and Classic Algorithms
2019-04-05 14:54:31 -07:00
Martin Molinero 68d9f48c2d Address reviews
- Adding new `CompositeAlphaModel.AddAlphaModel()`
- Adding C#/Py regression algorithms using the new `QCAlgorith.AddAlphaModel()`
- Improving exception message
- Add python version of `QCAlgorith.AddAlphaModel()`
2019-04-05 18:34:18 -03:00