Table of Contents

Class ZigZagEquis

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

Zig Zag (Metastock).

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

Remarks

Constructors

ZigZagEquis()

Initializes a new instance of the ZigZagEquis.

public ZigZagEquis()

Properties

CurrentValue

The indicator current value.

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

Property Value

decimal

Deviation

Percentage change.

[Display(ResourceType = typeof(LocalizedStrings), Name = "PercentageChange", Description = "PercentageChangeDesc", GroupName = "General")]
public decimal Deviation { get; set; }

Property Value

decimal

Remarks

It is specified in the range from 0 to 1.

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

PriceField

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

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

Property Value

Level1Fields

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.