DiPart
StockSharp.Algo.Indicators
The part of the indicator DirectionalIndex.
Inherits: DecimalLengthIndicator
Constructors
Properties
NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = diPart.NumValuesToInitialize
Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals ). if undefined.
Methods
GetValue
protected abstract decimal GetValue(ICandleMessage current, ICandleMessage prev)
result = diPart.GetValue(current, prev)
To get the part value.
- current
- The current candle.
- prev
- The previous candle.
Returns: Value.
OnProcessDecimal
protected override decimal? OnProcessDecimal(IIndicatorValue input)
result = diPart.OnProcessDecimal(input)
To handle the input value.
- input
- The input value.
Returns: The new value of the indicator.
Reset
public override void Reset()
diPart.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).