IIndicator

StockSharp.Algo.Indicators

The interface describing indicator.

Implementiert: IPersistable, ICloneable<IIndicator>, ICloneable

Eigenschaften

Color : Color?

Indicator color. If then the color will be automatically selected.

Container : IIndicatorContainer

The container storing indicator data.

Id : Guid

Unique ID.

IsFormed : bool

Whether the indicator is set.

IsPreloaded : bool

Indicates whether the indicator has been preloaded with historical/external values.

Measure : IndicatorMeasures

IndicatorMeasures.

Name : string

Indicator name.

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

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.

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).

Ereignisse

Changed : Action<IIndicatorValue, IIndicatorValue>

The indicator change event (for example, a new value is added).

Reseted : Action

The event of resetting the indicator status to initial. The event is called each time when initial settings are changed (for example, the length of period).