LengthIndicator
StockSharp.Algo.Indicators
The base class for indicators with one resulting value and based on the period.
Наследует: BaseIndicator
Конструкторы
LengthIndicator(T)
The base class for indicators with one resulting value and based on the period.
- buffer
- Buffer
Свойства
Buffer : T
The buffer for data storage.
NumValuesToInitialize : int
Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals ). if undefined.
Методы
GetCapacity() : int
Gets the capacity of the buffer for data storage.
Возвращает: The capacity of the buffer. By default, it is equal to Length.
OnProcess(IIndicatorValue) : IIndicatorValue
To handle the input value.
- input
- The input value.
Возвращает: The resulting value.
OnProcessDecimal(IIndicatorValue) : decimal?
To handle the input value.
- input
- The input value.
Возвращает: The new value of the indicator.
Reset()
Reset state.