LengthIndicator

StockSharp.Algo.Indicators

The base class for indicators with one resulting value and based on the period.

Hereda de: BaseIndicator

Constructores

LengthIndicator(T)

The base class for indicators with one resulting value and based on the period.

buffer
Buffer

Propiedades

Buffer : T

The buffer for data storage.

Length : int

Period length. By default equal to 1.

NumValuesToInitialize : int

Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals ). if undefined.

Métodos

CalcIsFormed() : bool

Calc IsFormed.

Devuelve: IsFormed

GetCapacity() : int

Gets the capacity of the buffer for data storage.

Devuelve: The capacity of the buffer. By default, it is equal to Length.

Load(SettingsStorage)

Load settings.

storage
Settings storage.
OnProcess(IIndicatorValue) : IIndicatorValue

To handle the input value.

input
The input value.

Devuelve: The resulting value.

OnProcessDecimal(IIndicatorValue) : decimal?

To handle the input value.

input
The input value.

Devuelve: The new value of the indicator.

Reset()

Reset state.

Save(SettingsStorage)

Save settings.

storage
Settings storage.
ToString() : string

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

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