BaseIndicator
The base Indicator.
Erbt von: Cloneable<IIndicator>
Implementiert: IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
Konstruktoren
BaseIndicator()
Initialize BaseIndicator.
Eigenschaften
Container : IIndicatorContainer
The rules container.
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.
Methoden
CreateValue(DateTime, object[]) : IIndicatorValue
Convert to indicator value.
- time
- Time
- values
- ToValues
Rückgabe: IIndicatorValue
OnCreateValue(DateTime) : IIndicatorValue
Create a new instance of IIndicatorValue for the specified time.
- time
- Time
Rückgabe: IIndicatorValue
OnPreload(IIndicatorValue, IIndicatorValue)
Hook for descendants to warm up internal state during preloading.
- input
- Original input.
- output
- Preloaded output.
OnProcess(IIndicatorValue) : IIndicatorValue
To handle the input value.
- input
- The input value.
Rückgabe: The resulting value.
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.
Rückgabe: The new value of the indicator.
RaiseChangedEvent(IIndicatorValue, IIndicatorValue)
To call the event Changed.
- input
- The input value of the indicator.
- result
- The resulting value of the indicator.
Reset()
Reset state.
Ereignisse
Changed : Action<IIndicatorValue, IIndicatorValue>
Association changed.