Class AdaptivePriceZone
- Namespace
- StockSharp.Algo.Indicators
- Assembly
- StockSharp.Algo.dll
Adaptive Price Zone (APZ) indicator.
[Display(ResourceType = typeof(LocalizedStrings), Name = "APZ", Description = "AdaptivePriceZone")]
[IndicatorIn(typeof(CandleIndicatorValue))]
public class AdaptivePriceZone : BaseComplexIndicator, IComplexIndicator, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
- Inheritance
-
AdaptivePriceZone
- Implements
-
IPersistableICloneable<IIndicator>
- Derived
- Inherited Members
- Extension Methods
Constructors
AdaptivePriceZone()
Initializes a new instance of the AdaptivePriceZone.
public AdaptivePriceZone()
AdaptivePriceZone(LengthIndicator<decimal>)
Initializes a new instance of the AdaptivePriceZone.
public AdaptivePriceZone(LengthIndicator<decimal> ma)
Parameters
ma
LengthIndicator<decimal>Moving Average.
Properties
BandPercentage
Band percentage for upper and lower bands calculation.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Band", Description = "BandPercentageDescription", GroupName = "General")]
public decimal BandPercentage { get; set; }
Property Value
Period
Period for MA and Standard Deviation calculations.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Period", Description = "PeriodDescription", GroupName = "General")]
public int Period { 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.