|
Lean
$LEAN_TAG$
|
This indicator computes the True Strength Index (TSI). The True Strength Index is calculated as explained here: https://school.stockcharts.com/doku.php?id=technical_indicators:true_strength_index More...
Public Member Functions | |
| TrueStrengthIndex (int longTermPeriod=25, int shortTermPeriod=13, int signalPeriod=7, MovingAverageType signalType=MovingAverageType.Exponential) | |
| Initializes a new instance of the TrueStrengthIndex class using the specified short and long term smoothing periods, and the signal period and type. More... | |
| TrueStrengthIndex (string name, int longTermPeriod=25, int shortTermPeriod=13, int signalPeriod=7, MovingAverageType signalType=MovingAverageType.Exponential) | |
| Initializes a new instance of the TrueStrengthIndex class using the specified name, the short and long term smoothing periods, and the signal period and type. More... | |
| override void | Reset () |
| Resets this indicator to its initial state More... | |
Public Attributes | |
| override bool | IsReady => Samples >= WarmUpPeriod |
| Gets a flag indicating when this indicator is 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... | |
Protected Member Functions inherited from QuantConnect.Indicators.Indicator | |
| Indicator (string name) | |
| Initializes a new instance of the Indicator class using the specified name. More... | |
Properties | |
| IndicatorBase< IndicatorDataPoint > | Signal [get] |
| Gets the signal line for the TSI indicator More... | |
| int | WarmUpPeriod [get] |
| Required period, in data points, for the indicator to be ready and fully initialized. More... | |
Properties inherited from QuantConnect.Indicators.Indicator | |
| static int | DefaultWindowSize = 2 [get] |
| The default size of the history window for the indicator More... | |
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 True Strength Index (TSI). The True Strength Index is calculated as explained here: https://school.stockcharts.com/doku.php?id=technical_indicators:true_strength_index
Briefly, the calculation has three steps:
The signal is typically a 7-to-12-EMA of the TSI.
Definition at line 31 of file TrueStrengthIndex.cs.
| QuantConnect.Indicators.TrueStrengthIndex.TrueStrengthIndex | ( | int | longTermPeriod = 25, |
| int | shortTermPeriod = 13, |
||
| int | signalPeriod = 7, |
||
| MovingAverageType | signalType = MovingAverageType.Exponential |
||
| ) |
Initializes a new instance of the TrueStrengthIndex class using the specified short and long term smoothing periods, and the signal period and type.
| shortTermPeriod | Period used for the first price change smoothing |
| longTermPeriod | Period used for the second (double) price change smoothing |
| signalPeriod | The signal period |
| signalType | The type of moving average to use for the signal |
Definition at line 67 of file TrueStrengthIndex.cs.
| QuantConnect.Indicators.TrueStrengthIndex.TrueStrengthIndex | ( | string | name, |
| int | longTermPeriod = 25, |
||
| int | shortTermPeriod = 13, |
||
| int | signalPeriod = 7, |
||
| MovingAverageType | signalType = MovingAverageType.Exponential |
||
| ) |
Initializes a new instance of the TrueStrengthIndex class using the specified name, the short and long term smoothing periods, and the signal period and type.
| name | The name of the indicator |
| shortTermPeriod | Period used for the first price change smoothing |
| longTermPeriod | Period used for the second (double) price change smoothing |
| signalPeriod | The signal period |
| signalType | The type of moving average to use for the signal |
Definition at line 80 of file TrueStrengthIndex.cs.
|
protected |
Computes the next value of this indicator from the given state
| input | The input given to the indicator |
Definition at line 97 of file TrueStrengthIndex.cs.
| override void QuantConnect.Indicators.TrueStrengthIndex.Reset | ( | ) |
Resets this indicator to its initial state
Definition at line 116 of file TrueStrengthIndex.cs.
| override bool QuantConnect.Indicators.TrueStrengthIndex.IsReady => Samples >= WarmUpPeriod |
Gets a flag indicating when this indicator is ready and fully initialized
Definition at line 58 of file TrueStrengthIndex.cs.
|
get |
Gets the signal line for the TSI indicator
Definition at line 48 of file TrueStrengthIndex.cs.
|
get |
Required period, in data points, for the indicator to be ready and fully initialized.
Definition at line 53 of file TrueStrengthIndex.cs.