Commit Graph

492 Commits

Author SHA1 Message Date
AlexCatarino 6ca82fd196 Further Fixes From Peer-Review 2019-03-02 01:06:09 +00:00
AlexCatarino 774b32bc5f Apply Fixes Suggested by Peer-Review 2019-03-02 00:34:12 +00:00
AlexCatarino 0423e3d54d Adds C# version of IntradayReversalCurrencyMarkets 2019-03-01 14:55:08 +00:00
AlexCatarino 4ae74a2c7b Adds Python Alpha Algorithms to Project and Apply Standards
- Adds Python Alpha algorithms to project
- Adds link to appear in Alpha Stream
- Rename algorithms' names to match file name
- Add/remove imports
- Order dictionary by value and key (if true values are the same, order by key)
2019-03-01 14:54:42 +00:00
AlexCatarino 1883bed1a7 Adds an Overload to DateRules.Every method that Accepts a Single DayOfWeek Object 2019-02-26 22:28:43 +00:00
Martin Molinero 9651df9900 Updating the ScheduledEventBenchmark
- Renaming files from `Schedule...` to `Scheduled...` to match algorithm
name.
- Removed `ScheduledEvents` set every 5 seconds
- Increased the every day `ScheduledEvents` from 200 to 600
2019-02-22 18:57:08 -03:00
Jared 58f342ba5d Merge branch 'master' into forex_triangle_alpha 2019-02-22 13:02:42 -08:00
Jack Simonson 307b53edd7 Changes to check that data for all currencies is availabe in each slice and decrease resolution to limit insights 2019-02-22 12:14:37 -08:00
AlexCatarino d91cad3123 Updates pythonnet to 1.0.5.17
- Updates PythonNet to 1.0.5.17
  -  Improve performance by adding new `interop` `type` cache holding a `bool`, true if its an `exception`. And adding a `setter` and `getter` cache for the `propertyobject`. Closes #2925.
  - Decimal parsing allows numeric string in exponential notation. Closes #2918 #2919.

Closes #2929
2019-02-22 17:46:59 +00:00
Jack Simonson 72b74b06ad Changed Bid-Ask and decreased resolution 2019-02-21 17:55:10 -08:00
Jack Simonson c1cdd06d85 Renaming share class alpha file and removing old version; updating VS project file 2019-02-21 16:42:14 -08:00
Jack Simonson ad1cfb81a8 Insight prediction interval and magnitude change 2019-02-21 11:43:14 -08:00
Jack Simonson fab0e37235 New Alpha -- Dual Share Class Alpha 2019-02-21 11:18:46 -08:00
Jack Simonson f5b9690966 New Alpha - Triangle Exchange Rate 2019-02-21 10:44:39 -08:00
HalldorAndersen bb2e3e37a5 Update QuantConnect.Algorithm.Python.csproj 2019-02-20 19:05:22 -08:00
HalldorAndersen 7686ef3a89 Create TripleLeverageETFPairVolatilityDecayAlpha.py 2019-02-20 19:02:46 -08:00
HalldorAndersen bc2d1c1963 Added new alpha: Lunch Break Mean Reversion Alpha (#2931)
* Create MeanReversionLunchBreakAlpha.py
2019-02-20 18:58:53 -08:00
HalldorAndersen 42bd32b15c Added new alpha: Global Equity Mean Reversion using IBS Alpha (#2930)
* Create GlobalEquityMeanReversionIBSAlpha.py

* Update QuantConnect.Algorithm.Python.csproj

* Update QuantConnect.Algorithm.Python.csproj

* Update GlobalEquityMeanReversionIBSAlpha.py

* Update GlobalEquityMeanReversionIBSAlpha.py
2019-02-20 18:37:22 -08:00
Jared 0b5a302fb5 Trim and refactor 2019-02-10 18:27:54 -08:00
potifreire 1001029cb4 Create IntradayReversalCurrencyMarkets.py 2019-02-11 01:00:40 +00:00
Jared a2e0d6f3a4 Merge pull request #2897 from HalldorAndersen/patch-2
Added Pump and Dump alpha algorithm
2019-02-07 18:29:22 -08:00
Jared f3cf32c3d7 Trim spaces 2019-02-07 18:29:12 -08:00
HalldorAndersen 560f14c63a Added Pump and Dump alpha algorithm 2019-02-07 18:01:48 -08:00
Jack Simonson 92730275f1 Update ShareClassMeanReversionAlphaModel.py
Updates to logic calculating whether position has crossed SMA
2019-02-07 15:17:54 -08:00
Jack Simonson 7677965f2f Update ShareClassMeanReversionAlphaModel.py
Grouped insights
2019-02-05 16:57:11 -08:00
Jack Simonson 1b8b5373a3 Update ShareClassMeanReversionAlphaModel.py
Added custom boolean flag for investment position
2019-02-05 16:53:35 -08:00
Jack Simonson ae6f69ff5d Update ShareClassMeanReversionAlphaModel.py 2019-02-04 18:10:48 -08:00
Jack Simonson d4b515f30c Update ShareClassMeanReversionAlphaModel.py
Grouped insights
2019-02-04 18:06:44 -08:00
Jack Simonson a35aee4f2f Update ShareClassMeanReversionAlphaModel.py 2019-02-04 16:38:02 -08:00
Jack Simonson 67fa7b5c74 Update ShareClassMeanReversionAlphaModel.py
Added missing import line
2019-02-04 16:34:30 -08:00
Jack Simonson 80c1591ddb Create ShareClassMeanReversionAlphaModel.py
New Demo Alpha model
2019-02-04 16:19:49 -08:00
Jack Simonson ffcd960139 Merge branch 'master' of https://github.com/QuantConnect/Lean 2019-02-04 09:00:41 -08:00
Jared 2956a17944 Merge pull request #2866 from QuantConnect/regression-alpha-algorithm-updates
Regression alpha algorithm updates
2019-02-01 13:23:17 -08:00
Jack Simonson 245f9645d9 Final tweaks
Added line to prevent memory leaks
2019-02-01 08:45:48 -08:00
Jack Simonson f6c4a9509b Update LiveFeaturesAlgorithm.py
Datetime change to match C# format
2019-01-31 18:04:13 -08:00
Jack Simonson 4c3e423a2c Update LiveFeaturesAlgorithm.py
Final tweaks after testing
2019-01-31 17:26:24 -08:00
Jack Simonson 25766d0ec1 Update LiveFeaturesAlgorithm.py
Small addition
2019-01-31 17:12:30 -08:00
Jack Simonson d9c2fa7974 Create LiveFeaturesAlgorithm.py
Write Python version of LiveFeaturesAlgorithm.cs
2019-01-31 17:07:12 -08:00
Jack Simonson 3bb5b647a2 Update OrderTicketDemoAlgorithm.py
StopLimitOrders seems to be coded improperly. The buy order had the limit price below the stop price, and the sell order had the limit prive above the stop price. By reversing the two, we can guarantee a sell limit at 0.25% below the close price and a buy limit at 0.25% above the close price, with a stop price at -0.1% and 0.1% respectively.
2019-01-31 12:13:54 -08:00
Jack Simonson 27e562ee15 Futures consolidator algorithm changes, new basic template algorithm for options consolidators
Changed function of BasicTemplateFuturesConsolidatorAlgorithm.py to use OnSecuritiesChanged to add/remove consolidators. Wrote equivalent algorithm for options data
2019-01-31 11:22:59 -08:00
Jared 8203f32ccf Merge pull request #2862 from QuantConnect/feature-110-make-account-currency-configurable
Adding SetAccountCurrency for backtesting
2019-01-30 15:09:44 -08:00
Jack Simonson 13ed3bcaf1 Update CustomChartingAlgorithm.py
One more tweak to overlay the lines rather than separating the series
2019-01-30 14:31:24 -08:00
Jack Simonson 2e7c3fb6e4 Update CustomChartingAlgorithm.py 2019-01-30 13:54:26 -08:00
Stefano Raggi 93c2ebf6ca Fix floating point precision issue in RebalancingLeveragedETFAlpha
This change was required due to #2829
2019-01-28 17:01:22 +01:00
Martin Molinero 1b0bdd9b0b Adding SetAccountCurrency for backtesting
- Adding new `SetAccountCurrency()` for backtesting. Has to be called
before adding any `Security` or calling `SetCash()`, else will throw.
- Adding new Non account currency unit tests for `CashBuyingPower`,
`SecurityPortfolioModel`, `SecurityMarginModel`,
`SecurityPortfolioManager`, `Future/OptionMarginBuyingPowerModels`
- Adding new C# regression test using `SetAccountCurrency()`, one for
`CashBuyingPowerModel` and one for `SecurityMarginModel`
- Adding new Py and C# basic regression algorithms using
`SetAccountCurrency()`
- `Options` and `Futures` will use not use `AccountCurrency` as quote
Cash.
- `SecurityBenchmark` value will be in account currency
2019-01-25 14:54:43 -03:00
Martin Molinero aca0267bbb Updating documentation
- Removing `setup.py` and updating python documentation
- Updating ubuntu installation documentation to match
DockerfileLeanFundation
2019-01-22 21:38:01 -03:00
Martin Molinero d53a922cf0 PythonNet installation does not require copy pasting
- Requires a new PythonNet 1.0.5.15 package where the different `.dll` are in a
specific folder: `\win` `\linux` and `\osx`
- Removed not present `decimal.py` from `Algorithm.Python` project. It
was moved into `Common`.
- Replace `xbuild` for `msbuild` required for using the `System.Runtime.InteropServices`.
Also note the `xbuild` on travis prints:
> >>>> xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<<
2019-01-22 19:48:11 -03:00
Martin Molinero 567e59ba00 Copy decimal.py to Launcher output dir
- Moving `decimal.py` into `Common/decimal.py` as a content copy always
file
2019-01-21 17:26:52 -03:00
AlexCatarino ef59fa7ba2 Updates pythonnet package.
In the new package:
- C# decimal conversion will use C# double and python float due to the big performance impact of converting C# decimal to python decimal;
2019-01-18 23:18:35 +00:00
Gerardo Salazar 40def51d93 Add python to regression test languages. Remove code with no effects from CustomModelsAlgorithm.py 2019-01-16 17:56:09 -08:00