Adaptive Price Zone (APZ)
Previous Topic  Next Topic 

Definition

The Adaptive Price Zone indicator from the S&C, September 2006 article "Trading With An Adpative Price Zone" by Lee Leibfarth is a set of bands based on a short term double smooth exponential moving average. The bands form a channel that surrounds the average price and tracks price fluctuations quickly, especially in volatile markets. As price crosses above the zone it can signal an opportunity to sell in anticipation of a reversal. As price crosses below the zone it can signal an opportunity to buy in anticipation of a reversal.

Syntax
APZ(double barPct, int period)
APZ(IDataSeries inputData, double barPct, int period)

Returns upper band value
APZ(double barPct, int period).Upper[int barsAgo]
APZ(IDataSeries inputData, double barPct, int period).Upper[int barsAgo]

Returns lower band value
APZ(double barPct, int period).Lower[int barsAgo]
APZ(IDataSeries inputData, double barPct, int period).Lower[int barsAgo]


Return Type
double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.


Parameters

barPct

The number of standard deviations

period

The number of bars to include in the calculation

inputData

Indicator source data (?)


Examples

// Prints the current upper band value of a 20 period APZ
double upperValue = APZ(2, 20).Upper[0];
Print("The current APZ upper value is " + upperValue.ToString());


Source Code
You can open up the indicator source code via the NinjaScript Editor.