IIndicator
The interface describing indicator.
実装: IPersistable, ICloneable<IIndicator>, ICloneable
プロパティ
Container : IIndicatorContainer
The container storing indicator data.
IsPreloaded : bool
Indicates whether the indicator has been preloaded with historical/external values.
Measure : IndicatorMeasures
IndicatorMeasures.
NumValuesToInitialize : int
Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals ). if undefined.
Source : Level1Fields?
Field specified value source.
Style : DrawStyles
Chart indicator draw style.
メソッド
CreateValue(DateTime, object[]) : IIndicatorValue
Convert to indicator value.
- time
- Time
- values
- ToValues
戻り値: IIndicatorValue
Preload(IEnumerable<ValueTuple<IIndicatorValue, IIndicatorValue>>)
Bulk preload of indicator values (input/output pairs). Implementations may override; default throws NotSupportedException.
- values
- Collection of finalized input/output pairs.
Process(IIndicatorValue) : IIndicatorValue
To handle the input value.
- input
- The input value.
戻り値: The new value of the indicator.
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).
イベント
Changed : Action<IIndicatorValue, IIndicatorValue>
The indicator change event (for example, a new value is added).