Lean
$LEAN_TAG$
|
This indicator computes the T3 Moving Average (T3). The T3 Moving Average is calculated with the following formula: EMA1(x, Period) = EMA(x, Period) EMA2(x, Period) = EMA(EMA1(x, Period),Period) GD(x, Period, volumeFactor) = (EMA1(x, Period)*(1+volumeFactor)) - (EMA2(x, Period)* volumeFactor) T3 = GD(GD(GD(t, Period, volumeFactor), Period, volumeFactor), Period, volumeFactor); More...
Public Member Functions | |
T3MovingAverage (string name, int period, decimal volumeFactor=0.7m) | |
Initializes a new instance of the T3MovingAverage class using the specified name and period. More... | |
T3MovingAverage (int period, decimal volumeFactor=0.7m) | |
Initializes a new instance of the T3MovingAverage class using the specified period. More... | |
override void | Reset () |
Resets this indicator to its initial state More... | |
Public Attributes | |
override bool | IsReady => Samples > 6 * (_period - 1) |
Gets a flag indicating when this indicator is ready and fully initialized More... | |
int | WarmUpPeriod => 1 + 6 * (_period - 1) |
Required period, in data points, for the indicator to be ready and fully initialized. More... | |
Protected Member Functions | |
override decimal | ComputeNextValue (IndicatorDataPoint input) |
Computes the next value of this indicator from the given state More... | |
Additional Inherited Members | |
Properties inherited from QuantConnect.Indicators.IIndicatorWarmUpPeriodProvider | |
int | WarmUpPeriod [get] |
Required period, in data points, for the indicator to be ready and fully initialized. More... | |
This indicator computes the T3 Moving Average (T3). The T3 Moving Average is calculated with the following formula: EMA1(x, Period) = EMA(x, Period) EMA2(x, Period) = EMA(EMA1(x, Period),Period) GD(x, Period, volumeFactor) = (EMA1(x, Period)*(1+volumeFactor)) - (EMA2(x, Period)* volumeFactor) T3 = GD(GD(GD(t, Period, volumeFactor), Period, volumeFactor), Period, volumeFactor);
Definition at line 26 of file T3MovingAverage.cs.
QuantConnect.Indicators.T3MovingAverage.T3MovingAverage | ( | string | name, |
int | period, | ||
decimal | volumeFactor = 0.7m |
||
) |
Initializes a new instance of the T3MovingAverage class using the specified name and period.
name | The name of this indicator |
period | The period of the T3MovingAverage |
volumeFactor | The volume factor of the T3MovingAverage (value must be in the [0,1] range, defaults to 0.7) |
Definition at line 39 of file T3MovingAverage.cs.
QuantConnect.Indicators.T3MovingAverage.T3MovingAverage | ( | int | period, |
decimal | volumeFactor = 0.7m |
||
) |
Initializes a new instance of the T3MovingAverage class using the specified period.
period | The period of the T3MovingAverage |
volumeFactor | The volume factor of the T3MovingAverage (value must be in the [0,1] range, defaults to 0.7) |
Definition at line 53 of file T3MovingAverage.cs.
|
protected |
Computes the next value of this indicator from the given state
input | The input given to the indicator |
Definition at line 73 of file T3MovingAverage.cs.
override void QuantConnect.Indicators.T3MovingAverage.Reset | ( | ) |
Resets this indicator to its initial state
Definition at line 93 of file T3MovingAverage.cs.
override bool QuantConnect.Indicators.T3MovingAverage.IsReady => Samples > 6 * (_period - 1) |
Gets a flag indicating when this indicator is ready and fully initialized
Definition at line 61 of file T3MovingAverage.cs.
int QuantConnect.Indicators.T3MovingAverage.WarmUpPeriod => 1 + 6 * (_period - 1) |
Required period, in data points, for the indicator to be ready and fully initialized.
Definition at line 66 of file T3MovingAverage.cs.