Adaptive Price Zone Indicator for ThinkorSwim

BenTen

Administrative
Staff member
Staff
VIP
Lifetime
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.

3NHpasB.png


thinkScript Code

Code:
# 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);
 

diazlaz

Well-known member
2019 Donor
VIP
The author has some nice work! Not in front of my computer, at the moment, would we use/trade this study similar to a bollinger band?

Thanks Ben for bring this out as a port!
 

john3

Active member
2019 Donor
Most indicators work because most people use them, they work by consensus. So unless APZ gets the same or wider adoption than BB...you get where I'm going with this. But the funny thing is, just today I came across it by chance online and searched to see if there is TOS code for it.
 

adii800

Member
While the bands stay the same length on range chart, detracting from some of its value It still makes good as a target area as price almost always tends to reverse when there is weakness into the area. Thanks again!
 

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Top