Adaptive Price Zone

APZ
Indicator

VolatilityOn the price chartFree on ChartLabs

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.

Example market1hIndicatorsAtlas AIAPZchartlabs.co/charts
Atlas reads it

Upper is above Lower (70,386.3).

Upper 70,386.3 · Lower 68,028.5

Atlas reads it

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.

1Bullish lean

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.

2Bearish lean

Close below the lower band

The close is under the lower line, once the lines have left the zero seed.

3Inconclusive

Close between the bands

Price is inside the zone. The zone is two lines, not a filled cloud with a middle plot.

4Inconclusive

Bands far apart

The smoothed high-low range is wide, and Band 2 multiplies it.

APZ formulaHow it is calculated.

Upper=Mid+Band×EMA(H−L)
STEP 1

Wait out the length

The first 20 bars, records 0 to 19, are empty. State stays at 0.

STEP 2

Smooth price twice

EMA 14 of EMA 14 of the close, both seeded at 0. That period does not follow Length.

STEP 3

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.

SettingDefaultRangeWhat it changes
Length201 to 10,000The range average only. The Signal lens changes this. The price average stays 14.
Band20 to 100Multiplies the smoothed high-low range. It is not a percent label.
Price EMA14FixedBoth price averages. Not an input.
LinesUpper #32CD32, lower #FF0000FixedTwo 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.
20173 bars in the range average
70,19366,79063,38759,98364,803.7

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

Whilethe close is between the lines

Traders often read that as price inside the smoothed range. There is no third line to lean on.

Widen or tighten with Band

IfBandmoves from 2thenboth lines move apart or together

Length does not do that job. Length changes how fast the range average responds.

Give the seed time

Beforerecord 20the linesare empty

The first numbers, 0.6476 and -0.1143 on a 15 / 16 / 14 bar, are still climbing out of zero.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

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 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 indicators

Try APZ on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
APZ