AdaptivePriceZone

StockSharp.Algo.Indicators

Adaptive Price Zone (APZ) indicator.

Inherits: BaseComplexIndicator<IAdaptivePriceZoneValue>

Constructors

AdaptivePriceZone
public AdaptivePriceZone()
adaptivePriceZone = AdaptivePriceZone()

Initializes a new instance of the AdaptivePriceZone.

AdaptivePriceZone
public AdaptivePriceZone(DecimalLengthIndicator ma)
adaptivePriceZone = AdaptivePriceZone(ma)

Initializes a new instance of the AdaptivePriceZone.

ma
Moving Average.

Properties

BandPercentage
public decimal BandPercentage { get; set; }
value = adaptivePriceZone.BandPercentage
adaptivePriceZone.BandPercentage = value

Band percentage for upper and lower bands calculation.

LowerBand
public AdaptivePriceZoneBand LowerBand { get; }
value = adaptivePriceZone.LowerBand

Lower band.

MovingAverage
public DecimalLengthIndicator MovingAverage { get; }
value = adaptivePriceZone.MovingAverage

Moving average.

Period
public int Period { get; set; }
value = adaptivePriceZone.Period
adaptivePriceZone.Period = value

Period for MA and Standard Deviation calculations.

UpperBand
public AdaptivePriceZoneBand UpperBand { get; }
value = adaptivePriceZone.UpperBand

Upper band.

Methods

CreateValue
protected override IAdaptivePriceZoneValue CreateValue(DateTime time)
result = adaptivePriceZone.CreateValue(time)

Create .

time
Time
Load
public override void Load(SettingsStorage storage)
adaptivePriceZone.Load(storage)

Load settings.

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

To handle the input value.

input
The input value.

Returns: The resulting value.

Reset
public override void Reset()
adaptivePriceZone.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)
adaptivePriceZone.Save(storage)

Save settings.

storage
Settings storage.