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
-
IPersistableICloneable<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
Deviation
Percentage change.
[Display(ResourceType = typeof(LocalizedStrings), Name = "PercentageChange", Description = "PercentageChangeDesc", GroupName = "General")]
public decimal Deviation { get; set; }
Property Value
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
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
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.