BaseIndicator

StockSharp.Algo.Indicators

The base Indicator.

継承元: Cloneable<IIndicator>

実装: IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable

コンストラクター

BaseIndicator()

Initialize BaseIndicator.

プロパティ

Color : Color?

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

Container : IIndicatorContainer

The rules container.

Id : Guid

Parameter identifier.

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

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.

メソッド

AddResetTracking(IIndicator)

To add inner indicator for tracking the Reseted.

indicator
IIndicator
CalcIsFormed() : bool

Calc IsFormed.

戻り値: IsFormed

Clone() : IIndicator

Create a copy of IIndicator.

戻り値: Copy.

CreateValue(DateTime, object[]) : IIndicatorValue

Convert to indicator value.

time
Time
values
ToValues

戻り値: IIndicatorValue

Load(SettingsStorage)

Load settings.

storage
Settings storage.
LoadValues(SettingsStorage)

Load settings.

storage
Settings storage.
OnCreateValue(DateTime) : IIndicatorValue

Create a new instance of IIndicatorValue for the specified time.

time
Time

戻り値: 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.

戻り値: 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.

戻り値: 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.
RemoveResetTracking(IIndicator)

To remove indicator from tracking the Reseted.

indicator
IIndicator
Reset()

Reset state.

Save(SettingsStorage)

Save settings.

storage
Settings storage.
SaveValues(SettingsStorage)

Save settings.

storage
Settings storage.
ToString() : string

Преобразовать к строковому представлению.

戻り値: Строковое представление.

イベント

Changed : Action<IIndicatorValue, IIndicatorValue>

Association changed.

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