Class ZigZag
ZigZag.
Inherited Members
Namespace: StockSharp.Algo.Indicators
Assembly: StockSharp.Algo.dll
Syntax
[DescriptionLoc("Str826", false)]
[IndicatorIn]
public class ZigZag : BaseIndicator, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
Remarks
ZigZag отслеживает и соединяет между собой крайние точки графика отстоящие друг от друга не менее чем на заданный процент по шкале цены.
Constructors
ZigZag()
Создать ZigZag.
Declaration
public ZigZag()
Properties
BackStep
Minimum number of bars between local maximums, minimums.
Declaration
[DisplayNameLoc("Str827")]
[DescriptionLoc("Str828", false)]
[CategoryLoc("General")]
public int BackStep { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
CurrentValue
Текущее значение индикатора.
Declaration
public Decimal CurrentValue { get; }
Property Value
Type | Description |
---|---|
Decimal |
CurrentValueFunc
Конвертер, который возвращает из свечи цену для текущего значения.
Declaration
public Func<Candle, Decimal> CurrentValueFunc { get; set; }
Property Value
Type | Description |
---|---|
Func<Candle, Decimal> |
Depth
Bars minimum, on which Zigzag will not build a second maximum (or minimum), if it is smaller (or larger) by a deviation of the previous respectively.
Declaration
[DisplayNameLoc("Str829")]
[DescriptionLoc("Str830", false)]
[CategoryLoc("General")]
public int Depth { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Deviation
Minimum number of points between maximums (minimums) of two adjacent bars used by Zigzag indicator to form a local peak (local trough).
Declaration
[DisplayNameLoc("Str831")]
[DescriptionLoc("Str832", false)]
[CategoryLoc("General")]
public Unit Deviation { get; set; }
Property Value
Type | Description |
---|---|
Unit |
HighValueFunc
Конвертер, который возвращает из свечи цену для поиска максимума.
Declaration
public Func<Candle, Decimal> HighValueFunc { get; set; }
Property Value
Type | Description |
---|---|
Func<Candle, Decimal> |
LastValueShift
Смещение для последнего значения индикатора.
Declaration
public int LastValueShift { get; }
Property Value
Type | Description |
---|---|
Int32 |
LowValueFunc
Конвертер, который возвращает из свечи цену для поиска минимума.
Declaration
public Func<Candle, Decimal> LowValueFunc { get; set; }
Property Value
Type | Description |
---|---|
Func<Candle, Decimal> |
Methods
Load(SettingsStorage)
Загрузить настройки.
Declaration
public override void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
Overrides
OnProcess(IIndicatorValue)
Обработать входное значение.
Declaration
protected override IIndicatorValue OnProcess(IIndicatorValue input)
Parameters
Type | Name | Description |
---|---|---|
IIndicatorValue | input | Входное значение. |
Returns
Type | Description |
---|---|
IIndicatorValue | Результирующее значение. |
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 | Хранилище настроек. |