Table of Contents

Class ZigZag

Namespace
StockSharp.Algo.Indicators
Assembly
StockSharp.Algo.dll

ZigZag.

[Display(ResourceType = typeof(LocalizedStrings), Name = "ZigZag", Description = "ZigZagDesc")]
[IndicatorIn(typeof(CandleIndicatorValue))]
public class ZigZag : BaseIndicator, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
Inheritance
ZigZag
Implements
IPersistable
ICloneable<IIndicator>
Derived
Inherited Members
Extension Methods

Remarks

Constructors

ZigZag()

Initializes a new instance of the ZigZag.

public ZigZag()

Properties

BackStep

Minimum number of candles between local maximums, minimums.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Candles", Description = "BackStep", GroupName = "General")]
public int BackStep { get; set; }

Property Value

int

ClosePriceField

The converter, returning from the candle a price for calculations.

[Display(ResourceType = typeof(LocalizedStrings), Name = "ClosingPrice", Description = "ClosingPrice", GroupName = "General")]
public Level1Fields ClosePriceField { get; set; }

Property Value

Level1Fields

CurrentValue

The indicator current value.

[Browsable(false)]
public decimal CurrentValue { get; }

Property Value

decimal

Depth

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

[Display(ResourceType = typeof(LocalizedStrings), Name = "Depth", Description = "ZigZagDepth", GroupName = "General")]
public int Depth { get; set; }

Property Value

int

Deviation

Minimum number of points between maximums (minimums) of two adjacent candles used by Zigzag indicator to form a local peak (local trough).

[Display(ResourceType = typeof(LocalizedStrings), Name = "MinimumChange", Description = "MinimumChangeDesc", GroupName = "General")]
public Unit Deviation { get; set; }

Property Value

Unit

HighPriceField

The converter, returning from the candle a price for search of maximum.

[Display(ResourceType = typeof(LocalizedStrings), Name = "HighPrice", Description = "HighPrice", GroupName = "General")]
public Level1Fields HighPriceField { get; set; }

Property Value

Level1Fields

LastValueShift

Shift for the last indicator value.

[Browsable(false)]
public int LastValueShift { get; }

Property Value

int

LowPriceField

The converter, returning from the candle a price for search of minimum.

[Display(ResourceType = typeof(LocalizedStrings), Name = "LowPrice", Description = "LowPrice", GroupName = "General")]
public Level1Fields LowPriceField { get; set; }

Property Value

Level1Fields

NumValuesToInitialize

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

public override int NumValuesToInitialize { get; }

Property Value

int

Methods

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

OnProcess(IIndicatorValue)

To handle the input value.

protected override IIndicatorValue OnProcess(IIndicatorValue input)

Parameters

input IIndicatorValue

The input value.

Returns

IIndicatorValue

The resulting value.

Reset()

To reset the indicator status to initial. The method is called each time when initial settings are changed (for example, the length of period).

public override void Reset()

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.