Commit Graph

283 Commits

Author SHA1 Message Date
AlexCatarino db1149b169 Adds python version of ScheduledUniverseSelectionModelRegressionAlgorithm 2018-04-12 17:09:54 +01:00
AlexCatarino 61dce36ff9 Fixes readme 2018-04-09 19:04:11 +01:00
AlexCatarino 248926c644 Updates macOS installation instructions 2018-04-09 18:59:59 +01:00
AlexCatarino a4db921b87 Updates pythonnet
Rebase with pythonnet/master
2018-04-09 18:59:59 +01:00
Jared f32f351a4d Merge pull request #1832 from AlexCatarino/feature-1798-adds-meanvariancemodel
Implements MeanVarianceOptimizationAlgorithm
2018-04-08 20:27:17 -04:00
Jared 35edb6f802 Updates to use "UniverseSelection" property
The old name "PortfolioSelection" still on the example code. Updated to UniverseSelection
2018-04-08 20:21:48 -04:00
Jared 59e6451caf Update to consistently use properties setters 2018-04-08 20:17:12 -04:00
AlexCatarino 1d6e21af2c Use CoarseFundamentalUniverseSelectionModel in MeanVarianceOptimizationAlgorithm
With this universe selection model, we can show the consequences of a security removal from the universe
2018-04-06 19:46:19 +01:00
AlexCatarino 133d2cd461 Implements peer-review requests
1. `HistoricalReturnsAlphaModel`:
   1. Adds lookback period for return calculation
   2. Adds return-depend direction to insights
   3. Refactors indicator history warm-up
2. `MeanVarianceOptimizationPortfolioConstructionModel`:
   1. Adds lookback period for return calculation
   2. Adds exception for null magnitude
   3. Refactors indicator history warm-up
3. Other minor fixes:
   1. Default target return was 2 instead of 0.02 (2%)
   2. Proper removal of consolidator subscriptions
2018-04-06 00:28:05 +01:00
AlexCatarino 92238a02fc Implements MeanVarianceOptimizationAlgorithm
This framework algorithm alpha model is  HistoricalReturnsAlphaModel and the  portfolio construction model is MeanVarianceOptimizationPortfolioConstructionModel.
This examples implements an algorithm that rebalances the portfolio according to modern portfolio theory.
2018-04-06 00:28:05 +01:00
Michael Handschuh b1ac56d63c Fix capitalization of QC acronyms 2018-03-29 15:30:05 -04:00
Michael Handschuh c5704a1cd4 Rename SimplePortfolioConstructionModel -> EqualWeightingPortoflioConstructionModel
The simple name was too simple and too vague. Equal weighting nicely
describes the purpose and intent of this model
2018-03-26 17:33:13 -04:00
Jared b22f8f3cbf Merge pull request #1773 from Jay-Jay-D/bug-1772-Intrinio-error-too-many-requests
Intrinio error fixed, Python port and regression test added
2018-03-26 12:11:06 -04:00
Juan José D'Ambrosio b2b541483f Intrinio template modified, C# regression test added
Intrinio Python port added


Python regression test added


RateGate implemented in static IntrinioConfig


Clean stuff


Intrinio C# regression test pass


Intrinio working, Python port, C# regression test
2018-03-26 09:41:10 -03:00
AlexCatarino 543698f1f9 Updates installation instructions of python support on Linux
By default, miniconda is installed in the users' home directory, therefore the instalation instructions were changed to keep it simple.
2018-03-26 12:33:30 +01:00
Juan José D'Ambrosio e4f4943ec6 Update FractionalQuantityRegressionAlgorithm.py 2018-03-23 09:38:39 -03:00
Jared 10f81cbe3f Merge pull request #1744 from jingwu74/master
Add Python Example of DisplacedMovingAverageRibbon Algorithm
2018-03-22 09:48:09 -04:00
Jing Wu 0c9ad729b3 add project file of DisplacedMovingAverageRibbon.py 2018-03-21 18:27:41 -04:00
Jing Wu 5d02f3dc20 add python aexample of DisplacedMovingAverageRibbon algorithm 2018-03-21 18:26:59 -04:00
AlexCatarino eaabaef7f9 Fixes python version of BasicTemplateFrameworkAlgorithm
Renames AlphaType for `InsightType` and `AlphaDirection` for `InsightDirection`, since these `enum` were renamed in a previsous commit.
Adds this algorithm to regression tests.
2018-03-17 19:52:24 +00:00
Jing Wu 8cc38591c1 reformat code 2018-03-16 09:43:55 -04:00
Jing Wu 764c7e467a fixed bug with porting from python2 to python3 2018-03-15 17:18:40 -04:00
Jing Wu 75c5902f89 add CustomDataIndicatorExtensions Algorithm 2018-03-15 17:11:55 -04:00
Michael 88bd9c882f Merge pull request #1681 from StefanoRaggi/bug-1680-cash-model-use-quotes
Increase accuracy of order quantity calculation in CashBuyingPowerModel
2018-03-12 13:18:24 -04:00
AlexCatarino 9eb0999802 Removes installation instructions for macOS
Replaces the installation instructions for macOS to directions to github issue in pythonnet
2018-03-09 23:29:54 +00:00
AlexCatarino 444a50d977 Improves Algorithm.Python ReadMe
Simplifies ReadMe.
Adds the information about rebuilding LEAN to get the right
Python.Runtime.dll version in the bin folder.
2018-03-09 23:17:17 +00:00
Stefano Raggi 66822fb95c Simplify log statement in BasicTemplateCryptoAlgorithm.py 2018-03-09 17:36:32 +01:00
Stefano Raggi 1fcb4a6b96 Increase accuracy of order quantity calculation in CashBuyingPowerModel
Fixes #1680
2018-03-09 16:08:21 +01:00
Jing Wu 797b6d4f8a add tags and comments 2018-03-06 11:47:23 -05:00
Jing Wu c7839e3e38 add python example of ConstituentsQC500Generator 2018-03-05 18:20:13 -05:00
Jing Wu 8565d0f7b9 add csharp example of ConstituentsQC500Generator 2018-03-05 18:18:57 -05:00
Juan José D'Ambrosio b1734d6948 IndicatorSuiteAlgorithm implemented in Python 2018-02-28 21:45:56 -03:00
Michael Handschuh 7814259c52 Update miniconda download location to S3 cdn
Placing these scripts in S3 allows us to not worry about the external
site taking down the files and/or being unavailable.
2018-02-23 16:34:07 -05:00
Michael Handschuh 3da7902d84 Update python readme to match DockerfileLeanFoundation
These commands were updated from fetching latest to fetching a particular
version of miniconda
2018-02-23 16:32:07 -05:00
Michael Handschuh 18a559943e Upgrade LEAN Python to 3.6 from 2.7
- Adds log to display the python version the algorithm is using.
- Fixes python algorithms that were failing because of small subtleties
like leading zeroes.
- Updates pythonnet with a version compiled with python 3.6 flags

- Changes in DockerfileFoundation: we now use miniconda to manage the python
environment.
- Took the opportunity to add NTLK (#1349), Tensorforce (#1369) and
PyTorch/Pyro (#1385).
- Changes readme in Algorithm.Python to show steps to install miniconda
2018-02-23 15:09:06 -05:00
Stefano Raggi a39e6a8e28 Revert "Merge pull request #1526 from AlexCatarino/python3"
This reverts commit 2e523992d0, reversing
changes made to fa48fc23ea.
2018-02-14 16:03:12 +01:00
AlexCatarino 2532d7c57e Fixes CustomVolatilityModelAlgorithm to be python 3 compliant 2018-02-13 13:00:50 +00:00
AlexCatarino 34a271adac Updates pythonnet
In this update, we had compiled pythonnet with python 3.6 instead of 2.7 flags
2018-02-13 13:00:50 +00:00
AlexCatarino 84282503d0 Fixes python algorithm to be python 3 compliant 2018-02-13 13:00:50 +00:00
Jared 36a48a6824 Merge pull request #1554 from AlexCatarino/python-slice
Creates wrapper for Slice (python custom data)
2018-02-12 17:01:45 -05:00
Stefano Raggi a5f02d646b Add comment for BuyingPowerModel in FractionalQuantityRegressionAlgorithm 2018-02-12 17:40:27 +01:00
Stefano Raggi ffc848ef5f Fix BasicTemplateCryptoAlgorithm class name (Python) 2018-02-12 17:40:27 +01:00
Stefano Raggi c235dc7ada Add BasicTemplateCryptoAlgorithm
Also added both C# and Python versions as regression tests
2018-02-12 17:40:26 +01:00
Stefano Raggi 415542fcbc Set CashBuyingPowerModel as default for Crypto/GDAX 2018-02-12 17:38:12 +01:00
AlexCatarino 64a9929fa6 Fixes custom data algos to reflect changes from previous commit 2018-02-12 15:49:09 +00:00
AlexCatarino 84c3e2bf1b Adds regression test for custom indicator in python 2018-02-07 17:16:56 +00:00
AlexCatarino 6827624f83 Adds RegisterIndicator overloads that takes python-defined indicators
Adds example for this feature
2018-02-07 12:31:18 +00:00
AlexCatarino dd14821e75 Enables custom volatility models in python algorithms
Creates a python wrapper for volatility models created in python algorithms and adds a method to the Security object to set such models.
Adds an algorithm to show how volatility models can be implemented.
2018-01-31 12:17:24 +00:00
Jing Wu 5a9d410a86 fix indentation 2018-01-25 15:48:12 -05:00
Jing Wu ca314c93df fix indentation 2018-01-25 15:31:43 -05:00