The adaptive price zone ( APZ ) is a volatility-based technical indicator that helps investors identify possible market turning points, which can be especially useful in a sideways-moving market. It was created by technical analyst Lee Leibfarth in the article “Identify the Turning Point: Trading With An Adaptive Price Zone,” which appeared in the September 2006 issue of the journal Technical Analysis of Stocks and Commodities .
This indicator attempts to signal significant price movements by using a set of bands based on short-term, double-smoothed exponential moving averages that lag only slightly behind price changes. It can help short-term investors and day traders profit in volatile markets by signaling price reversal points, which can indicate potentially lucrative times to buy or sell. The APZ can be implemented as part of an automated trading system and can be applied to the charts of all tradeable assets.
# Adaptive Price Zone # Assembled by BenTen at useThinkScript.com # Converted from https://www.tradingview.com/script/eoz8cGtU-Adaptive-Price-Zone-Indicator/ input nPeriods = 20; input nBandPct = 2; def xHL = high - low; def nP = ceil(sqrt(nPeriods)); def xVal1 = expAverage(expAverage(close, nP), nP); def xVal2 = expAverage(expAverage(xHL, nP), nP); def UpBand = nBandPct * xVal2 + xVal1; def DnBand = xVal1 - nBandPct * xVal2; plot ub = UpBand; plot db = DnBand; ub.AssignValueColor(color.CYAN); db.AssignValueColor(color.MAGENTA);