OPEN-SOURCE SCRIPT
ATR Dual Breakout – Custom MA & ATR (v6)

A dynamic volatility channel centered on a user-selected moving average (EMA, SMA, WMA, HMA, VWMA).
Uses ATR-based bands to detect reversal entries when price opens outside a band and closes inside — a classic sign of momentum exhaustion.
Signal Logic (Same for Inner & Outer)Signal
Condition
BUY
open < lowerBand and close > lowerBand
SELL
open > upperBand and close < upperBand
Inner bands = higher-probability, tighter entries
Outer bands = stronger momentum, wider confirmation
Clean. Configurable. Reliable.
Drop it on any chart and start trading smart reversals.
Uses ATR-based bands to detect reversal entries when price opens outside a band and closes inside — a classic sign of momentum exhaustion.
Signal Logic (Same for Inner & Outer)Signal
Condition
BUY
open < lowerBand and close > lowerBand
SELL
open > upperBand and close < upperBand
Inner bands = higher-probability, tighter entries
Outer bands = stronger momentum, wider confirmation
Clean. Configurable. Reliable.
Drop it on any chart and start trading smart reversals.
開源腳本
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
免責聲明
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
開源腳本
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
免責聲明
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.