ZigZag

StockSharp.Algo.Indicators

Zig Zag.

Inherits: BaseIndicator

Constructors

ZigZag
public ZigZag()
zigZag = ZigZag()

Initializes a new instance of the ZigZag.

Properties

Deviation
public decimal Deviation { get; set; }
value = zigZag.Deviation
zigZag.Deviation = value

Percentage change.

NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = zigZag.NumValuesToInitialize

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

Methods

CalcIsFormed
protected override bool CalcIsFormed()
result = zigZag.CalcIsFormed()

Calc IsFormed.

Returns: IsFormed

CalcZigZag
protected ZigZagIndicatorValue CalcZigZag(IIndicatorValue input, decimal price)
result = zigZag.CalcZigZag(input, price)
Load
public override void Load(SettingsStorage storage)
zigZag.Load(storage)

Load settings.

storage
Settings storage.
OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = zigZag.OnProcess(input)

To handle the input value.

input
The input value.

Returns: The resulting value.

Reset
public override void Reset()
zigZag.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).

Save
public override void Save(SettingsStorage storage)
zigZag.Save(storage)

Save settings.

storage
Settings storage.
ToString
public override string ToString()
result = zigZag.ToString()

Преобразовать к строковому представлению.

Returns: Строковое представление.