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
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = adaptivePriceZone.LoadAsync(storage, cancellationToken)

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

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).

SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = adaptivePriceZone.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task