Class LengthIndicator<TResult>
Базовый класс для индикаторов с одним результирующим значением и основанных на периоде.
Inheritance
LengthIndicator<TResult>
Inherited Members
Namespace: StockSharp.Algo.Indicators
Assembly: StockSharp.Algo.dll
Syntax
public abstract class LengthIndicator<TResult> : BaseIndicator, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
Type Parameters
Name | Description |
---|---|
TResult | Тип результирующих значений. |
Constructors
LengthIndicator()
Инициализировать LengthIndicator<TResult>.
Declaration
protected LengthIndicator()
Properties
Buffer
Буфер для хранения данных.
Declaration
protected IList<TResult> Buffer { get; }
Property Value
Type | Description |
---|---|
IList<TResult> |
IsFormed
Сформирован ли индикатор.
Declaration
public override bool IsFormed { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Length
Period length. By default equal to 1.
Declaration
[DisplayNameLoc("Str736")]
[DescriptionLoc("Str778", true)]
[CategoryLoc("General")]
public int Length { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
Load(SettingsStorage)
Загрузить настройки.
Declaration
public override void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
Overrides
Reset()
Сбросить состояние индикатора на первоначальное. Метод вызывается каждый раз, когда меняются первоначальные настройки (например, длина периода).
Declaration
public override void Reset()
Overrides
Save(SettingsStorage)
Сохранить настройки.
Declaration
public override void Save(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
Implements
Ecng.Serialization.IPersistable
Ecng.Common.ICloneable<>