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
-
IPersistableICloneable<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
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
CurrentValue
The indicator current value.
[Browsable(false)]
public decimal CurrentValue { get; }
Property Value
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
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
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
LastValueShift
Shift for the last indicator value.
[Browsable(false)]
public int LastValueShift { get; }
Property Value
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
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
Methods
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnProcess(IIndicatorValue)
To handle the input value.
protected override IIndicatorValue OnProcess(IIndicatorValue input)
Parameters
input
IIndicatorValueThe 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
SettingsStorageSettings storage.