APZ
Indicator
Adaptive Price Zone draws two bands around a double-smoothed average of the close. The gap is a multiple of a smoothed high-low range.
Lee Leibfarth, Trading With An Adaptive Price Zone, Technical Analysis of Stocks & Commodities, September 2006. Reviewed by the ChartLabs team, updated Nov 2026.
Upper is above Lower (70,386.3).
Upper 70,386.3 · Lower 68,028.5
Upper is above Lower (70,386.3).
Upper 70,386.3 · Lower 68,028.5
Illustration on simulated data.
Adaptive Price ZoneWhat is the APZ indicator?
Length is 20 and Band is 2. The price average is not Length. It is a fixed 14-bar exponential average of a 14-bar exponential average of the close. Both use 2/15, and both start at 0. The range average uses Length, so at 20 its smoothing constant is 2/21.
Records 0 through 19 are empty. On record 20, with the averages still at 0, a bar of close 15, high 16 and low 14 prints an upper band of 0.6476 and a lower band of -0.1143. Later bars keep updating from there. No middle line is drawn.
Upper is #32CD32 and lower is #FF0000, both 1 px, on the price chart. The bands can sit far from price on the first plotted bar because the averages start at 0.
Price length is 14
APZ_PRICE_PERIOD is fixed. Changing Length changes the range average only.
No middle plot
The double-smoothed close is used to place the bands. It is not a third line.
APZ signalsFour patterns to know.
Close above the upper band
The close is above the upper line. On the first plotted bar the line is still near 0, so this is meaningful only after the average has caught up.
Close below the lower band
The close is under the lower line, once the lines have left the zero seed.
Close between the bands
Price is inside the zone. The zone is two lines, not a filled cloud with a middle plot.
Bands far apart
The smoothed high-low range is wide, and Band 2 multiplies it.
APZ formulaHow it is calculated.
Wait out the length
The first 20 bars, records 0 to 19, are empty. State stays at 0.
Smooth price twice
EMA 14 of EMA 14 of the close, both seeded at 0. That period does not follow Length.
Add the range
Band 2 times the EMA 20 of high minus low. The example bar prints 0.6476 and -0.1143.
APZ settingsEvery setting, explained.
| Setting | Default | Range | What it changes |
|---|---|---|---|
| Length | 20 | 1 to 10,000 | The range average only. The Signal lens changes this. The price average stays 14. |
| Band | 2 | 0 to 100 | Multiplies the smoothed high-low range. It is not a percent label. |
| Price EMA | 14 | Fixed | Both price averages. Not an input. |
| Lines | Upper #32CD32, lower #FF0000 | Fixed | Two lines, 1 px, on the price chart. No middle line. |
- Setting
- Length
- Default
- 20
- Range
- 1 to 10,000
- What it changes
- The range average only. The Signal lens changes this. The price average stays 14.
- Setting
- Band
- Default
- 2
- Range
- 0 to 100
- What it changes
- Multiplies the smoothed high-low range. It is not a percent label.
- Setting
- Price EMA
- Default
- 14
- Range
- Fixed
- What it changes
- Both price averages. Not an input.
- Setting
- Lines
- Default
- Upper #32CD32, lower #FF0000
- Range
- Fixed
- What it changes
- Two lines, 1 px, on the price chart. No middle line.
Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.
APZ strategiesUse it in 3 setups.
Treat the pair as a zone
Traders often read that as price inside the smoothed range. There is no third line to lean on.
Widen or tighten with Band
Length does not do that job. Length changes how fast the range average responds.
Give the seed time
The first numbers, 0.6476 and -0.1143 on a 15 / 16 / 14 bar, are still climbing out of zero.
APZ mistakesCommon mistakes.
Looking for a middle line
The double-smoothed close is internal. Only the upper and lower lines are plotted.
Setting Length to change the price average
Length is the range EMA. The price EMAs stay at 14.
Reading record 20 as a settled band
That bar is the first update from a zero seed. It is not where the bands sit after a long history.
APZ combinationsPair it with these.
APZ + Bollinger Bands
Bollinger uses a simple average and a standard deviation. APZ uses two exponential averages and the high-low range.
APZ + Keltner Channel
Keltner bands use ATR around an average. APZ uses a smoothed high-low range, times Band.
APZ + ATR
ATR is Wilder's range. APZ smooths high minus low with an EMA of Length, which is a different average.
APZ FAQQuestions traders ask.
What are the APZ settings?
Length 20 and Band 2. The price average is fixed at 14 and is not a setting.
What is the worked bar?
Record 20, close 15, high 16, low 14, averages still at 0. Upper 0.6476, lower -0.1143.
Why are the early bars empty?
Records 0 through 19 write nothing. The averages do not update until record 20.
Is there a middle line?
No. Upper #32CD32 and lower #FF0000 only.
What does Band mean?
It multiplies the smoothed high-low range. The default is 2. The range in the settings is 0 to 100.
Does Length change the 14?
No. Length changes the range EMA only.
Does APZ repaint?
No. A closed bar stays. The live bar moves until it closes.
Who published it?
Lee Leibfarth, Trading With An Adaptive Price Zone, Technical Analysis of Stocks & Commodities, September 2006.
Related indicatorsMore volatility tools.
All volatility indicatorsTry APZ on a live chart.
Free. No download.
Works in your browser and on iPhone too.