Commit Graph

239 Commits

Author SHA1 Message Date
AlexCatarino d9be8e5001 Extends SwissArmyKnife, Trix and WilderMovingAverage Indicators With IIndicatorWarmUpPeriodProvider 2019-06-05 18:10:22 +01:00
Jared d19402592d Merge pull request #3226 from AlexCatarino/feature-3074-indicator-warmup-t3-trime-tema
Extends T3, Triangular and TripleExponential Moving Averages Indicators With IIndicatorWarmUpPeriodProvider
2019-05-28 10:14:51 -07:00
Jared 9373d2f56d Merge pull request #3225 from AlexCatarino/feature-3074-indicator-warmup-obv-psar-rc
Extends OnBalanceVolume, ParabolicStopAndReverse and RegressionChannel Indicators With IIndicatorWarmUpPeriodProvider
2019-05-28 09:25:07 -07:00
AlexCatarino dc254945f8 Extends T3, Triangular and TripleExponential Moving Averages Indicators With IIndicatorWarmUpPeriodProvider 2019-05-23 10:18:24 +01:00
AlexCatarino 1163f9c663 Extends OnBalanceVolume, ParabolicStopAndReverse and RegressionChannel Indicators With IIndicatorWarmUpPeriodProvider 2019-05-23 10:08:48 +01:00
AlexCatarino 20aad77176 Addresses Peer-Review 2019-05-23 09:59:03 +01:00
AlexCatarino 30bc74984e Extends RelativeStrengthIndex, Stochastic and WilliamsPercentR Indicators With IIndicatorWarmUpPeriodProvider 2019-05-23 09:54:02 +01:00
AlexCatarino dd6bbf91fb Extends PercentagePriceOscillator and UltimateOscillator Indicators With IIndicatorWarmUpPeriodProvider 2019-05-17 15:36:23 +01:00
Jared fd292d4394 Merge pull request #3196 from AlexCatarino/feature-3074-indicator-warmup-std-var
Extends Sum, StandardDeviation and Variance Indicators With IIndicatorWarmUpPeriodProvider
2019-05-17 07:26:29 -07:00
AlexCatarino 98b2a2feeb SumTests Inherits From CommonIndicatorTests 2019-05-17 12:21:53 +01:00
AlexCatarino 9553857c1c Extends Sum, StandardDeviation and Variance Indicators With IIndicatorWarmUpPeriodProvider 2019-05-15 14:44:35 +01:00
AlexCatarino 777c6a993f Extends NormalizedAverageTrueRange and TrueRange Indicators With IIndicatorWarmUpPeriodProvider 2019-05-15 14:31:22 +01:00
AlexCatarino 95faf69c72 Addresses Peer-Review
- Consistently use QuantConnect/Lean naming convention for method variables;
- Use `IND(PARAM1,PARAM2, ..., PARAMN)` format for indicators. Indicators that are created by a helper method become: `IND(PARAM1,PARAM2, ..., PARAMN, SYMBOL_res)`.
- Fixes `RegressionChannelTest`.
2019-05-14 21:52:10 +01:00
AlexCatarino 0b0e6de198 Indicators with name starting with H to M.
- Since `MomentumPercent` derives from `RateOfChangePercent`, the `RateOfChange` family was included in this commit.
2019-05-14 13:32:47 +01:00
AlexCatarino c7be510e7a Implements IIndicatorWarmUpPeriodProvider in IchimokuKinkoHyo
- Implements `IIndicatorWarmUpPeriodProvider`;
- Refactors `IchimokuKinkoHyo`;
- Fixes sub-indicator computations: the `Delay` sub-indicators were accepting input from indicators that were not realy;
- Adds `Chikou` indicator (closes #919);
2019-05-13 21:28:19 +01:00
AlexCatarino 3323b7b86d Fixes FishTransform Indicator
- The `FisherTransformFunction` was rounding up(down) the input value instead of down(up).
- Adds the `FISH` method to QCAlgorithm.
2019-05-13 17:57:08 +01:00
AlexCatarino 1be9482728 Indicators with name starting with B to F. 2019-05-13 17:50:51 +01:00
AlexCatarino a2f25ffa31 Extends a Series of Indicators With IIndicatorWarmUpPeriodProvider
- Indicators with name starting with A;
- `Maximum`. `Minimum` and `MACD`;
- Adds new unit test method to `CommonIndicatorTests`: `WarmsUpProperly`;
- Indicators unit tests inherit from `CommonIndicatorTests`.
2019-05-10 20:04:55 +01:00
AlexCatarino 672cea86a6 Adds QCAlgorithm.WarmUpIndicator Method
This helper method can be used to warm up indicators individually whether it is created after the security has been added to the universe or before (universe selection scenario).

- Fix the subscription addition to `SubcriptionManager` when a History request is made before the security is created, since it should be not added.

- `IndicatorBase.Update` does not throw when an input is older than the last update. We only log (adds QuantConnect.Logging dependency to QuantConnect.Indicators) the error and discard the addition. Removes unit test for that exception.
2019-04-18 23:28:48 +01:00
Juan José D'Ambrosio ef6bb4f81d Enable Acceleration Bands support for QuoteBars 2019-04-11 16:11:30 +00:00
Martin Molinero ff2a262c22 Fix IndicatorBase.Equals()
- Adding `try catch` statement in the `IndicatorBase.Equals()` method
when converting `obj` to `decimal`.
2019-02-26 13:59:30 -03:00
Martin Molinero fb3e5bf6e7 Fix bolliger lower and upper bands double update
- Lower and Upper bands from the BollingerBands indicator are a
`CompositeIndicator` that gets updated automatically when both left and
right are updated. So there is no need to update them
again. Same happens in the `RegressionChannel` indicator. Adding unit
tests.
2019-01-08 16:22:17 -03:00
AlexCatarino bb99123c19 Refactors AverageDirectionalIndex and AverageDirectionalMovementIndexRating
- Fixes `TrueRange` computation: it was not using the H-L range;
- Fixes `SmoothedDirectionalMovementMinus` that used a constant value instead of the defined period;
- Use a `WilderMovingAverage` to compute ADX based on DX.
- Fixes `AverageDirectionalMovementIndexRating` only be ready when there is enough past values.
- Removes external data for `AverageDirectionalMovementIndexRating` and points to column in `AverageDirectionalMovementIndex` external data.

Closes #2666
2018-11-02 22:53:20 +00:00
Martin Molinero 52d80e74f0 Indicator extensions support all indicator types 2018-08-14 18:14:46 -03:00
AlexCatarino e793118d50 Refactors FractalAdaptiveMovingAverage
A constructor overload was missing in the previsous version. In the indicators' pattern they have constructors that don't need a string as the first parameter.
Refactored the code to implement QuantConnect's code style.
2018-04-09 18:50:08 +01:00
AlexCatarino 089ce953d3 Adds unit test for RelativeStrengthIndex with MovingAverageType.Wilders
Closes #1651
2018-03-21 00:18:08 +00:00
AlexCatarino 25e7ad2fba Adds unit test for AverageTrueRange with MovingAverageType.Wilders
Closes #1722
2018-03-21 00:15:54 +00:00
AlexCatarino 403bafc3ca Implements WilderMovingAverage indicator
Implements the `WilderMovingAverage` indicator. It is a special exponential moving average which uses a simple moving average as seeding.
2018-03-21 00:13:37 +00:00
AlexCatarino 2f500fc1b6 Minor corrections 2018-03-08 12:06:54 +00:00
AlexCatarino 6ca66722e8 Adds tests for RegisterIndicator method 2018-03-08 10:51:29 +00:00
Juan José D'Ambrosio de0926834e Fixes MACD's Signal and Histogram warming up
Formatting test file


tiny format fix


Historgram test fixed


external data from free stock charts


new testing data without pandas
2018-03-06 20:03:15 -03:00
Juan José D'Ambrosio fae5741c04 Test fixed 2018-03-01 14:02:41 -03:00
Juan José D'Ambrosio 5c2c7224e2 MACD EMA as default 2018-02-28 23:49:15 -03:00
Juan José D'Ambrosio 3ad02c44b7 Headers added. 2018-01-30 13:54:51 -03:00
Juan José D'Ambrosio e7223da4a7 Coppock Curve indicator implementation 2018-01-30 12:05:13 -03:00
Ian Worthington f4ec05c13c Changed HeikinAshi to inherit from BarIndicator instead of TradeBarIndicator to facilitate forex data. This is done by removing volume as it is unnecessary in HeikinAshi. 2018-01-24 12:35:53 +09:00
jjd be6f27918e headers added. 2017-10-12 10:02:11 -03:00
jjd 354da79c04 DetrendedPriceOscillator indicator.
Small redudant code fix at CompositeIndicator.cs
2017-10-11 09:56:57 -03:00
Jared 57fa355fc0 Merge pull request #1109 from Jay-Jay-D/IndicatorMassIndex
Indicator mass index
2017-09-06 16:38:38 -04:00
jjd d8b2a1a63b Test passed 2017-09-01 14:40:26 -03:00
jjd df74ac295c tests fails 2017-08-30 06:09:13 -03:00
jjd 21a7685e64 helper method added. 2017-08-29 15:48:08 -03:00
jjd c8fa4bbebe Tests passed 2017-08-29 15:27:15 -03:00
jjd 4a4ceb227d building tests 2017-08-29 11:39:47 -03:00
jjd 85ec06a51f ALMA added as MovingAverageType 2017-05-02 11:53:23 -03:00
jjd 68ddbbc84f ALMA and test implemented. 2017-05-02 10:42:01 -03:00
jjd 26b1f5de90 Helper method renamed from HULL to HMA.
Hull value added in the MovingAverageType enumeration.
MovingAverageTypeExtensionsTests added.
2017-04-28 08:47:11 -03:00
jjd c37282d522 HullMovingAverage, tests and helper method implemented 2017-04-27 20:52:27 -03:00
Stefano Raggi a4ffef3ff4 Update check in RollingWindow.MostRecentlyRemoved 2017-01-25 19:07:31 +01:00
Stefano Raggi 20ace75430 RollingWindow(N) now becomes ready after N additions
Previously it became ready only after N+1 additions.
Also updated all indicators dependent on this behavior of RollingWindow.
2017-01-25 18:41:40 +01:00