RelativeStrengthIndex
StockSharp.Algo.Indicators
Relative Strength Index.
Inherits: DecimalLengthIndicator
Constructors
RelativeStrengthIndex
public RelativeStrengthIndex()
relativeStrengthIndex = RelativeStrengthIndex()
Initializes a new instance of the RelativeStrengthIndex.
Properties
Measure
public override IndicatorMeasures Measure { get; }
value = relativeStrengthIndex.Measure
IndicatorMeasures.
NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = relativeStrengthIndex.NumValuesToInitialize
Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals ). if undefined.
Methods
CalcIsFormed
protected override bool CalcIsFormed()
result = relativeStrengthIndex.CalcIsFormed()
Calc IsFormed.
Returns: IsFormed
OnProcessDecimal
protected override decimal? OnProcessDecimal(IIndicatorValue input)
result = relativeStrengthIndex.OnProcessDecimal(input)
To handle the input value.
- input
- The input value.
Returns: The new value of the indicator.
Reset
public override void Reset()
relativeStrengthIndex.Reset()
To reset the indicator status to initial. The method is called each time when initial settings are changed (for example, the length of period).