OPEN-SOURCE SCRIPT
Rolling ATR Channel

The Rolling ATR Channel is a volatility and trend-following indicator designed to identify breakout opportunities while filtering lower-quality counter-trend signals. It combines ATR-based dynamic price channels, a Rolling Donchian Cloud, and a moving average direction filter to improve trade clarity and market structure awareness.
This tool is built to help traders identify:
Trend continuation opportunities
Breakout confirmations
Volatility expansion zones
Directional bias
High-probability trend-aligned entries
Core Features
1) ATR Dynamic Channel
The main channel is built using a Simple Moving Average (SMA) as the centreline, with upper and lower bands expanded using Average True Range (ATR).
This allows the channel to automatically adapt to market volatility:
High volatility = wider channel
Low volatility = tighter channel
This makes it useful across trending and consolidating conditions.
2) Buy & Sell Signal Detection
Signals are generated when price breaks beyond the ATR channel:
Buy Signal
Triggered when price crosses above the upper ATR channel
Sell Signal
Triggered when price crosses below the lower ATR channel
These are designed to highlight potential momentum continuation or breakout setups.
3) MA Direction Filter (Optional)
A built-in trend filter improves signal quality by aligning trades with moving average direction.
When enabled:
If the moving average is sloping upward → only Buy signals are shown
If the moving average is sloping downward → only Sell signals are shown
Counter-trend signals are blocked
This helps reduce false entries during strong directional markets.
Can be turned ON/OFF in settings.
4) Rolling Donchian Cloud
A Donchian-based volatility cloud is included for additional market structure context.
It plots:
Rolling highest highs
Rolling lowest lows
Useful for:
Breakout confirmation
Range boundaries
Trend strength analysis
Market compression/expansion zones
5) Sensitivity Toggle
The Sensitivity Mode adjusts how the ATR channel behaves.
This allows traders to switch between:
More responsive channel behaviour
Broader volatility-based expansion
Helpful for adapting to scalping, intraday, or swing trading conditions.
Best Used For
Trend-following strategies
Breakout trading
Momentum continuation setups
Market structure analysis
Volatility-based trading systems
Crypto
Forex
Indices
Stocks
Commodities
How to Read It
Green Buy Label = Price breakout above upper ATR band
Red Sell Label = Price breakout below lower ATR band
Green/Red ATR Channel = Dynamic volatility envelope
Purple Donchian Cloud = High/low rolling breakout zone
MA Direction Filter = Trend alignment confirmation
Recommended Use
This indicator works best when combined with:
Higher timeframe trend confirmation
Support / resistance
Volume confirmation
Liquidity sweeps
Market structure breaks
Risk management rules
It should not be used as standalone financial advice or as a guaranteed entry system.
Summary
Rolling ATR Channel by Mrs Norris Meme is a clean hybrid trend + volatility breakout indicator built for traders who want stronger directional filtering, adaptive ATR channels, and clearer breakout visualisation while reducing unnecessary counter-trend noise.
Designed to keep signal quality high while staying visually simple and practical.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.