OPEN-SOURCE SCRIPT
Rolling ATR Momentum - Enhanced

ATR Rolling Momentum Indicator โ User Manual
---
๐ Overview
The ATR Rolling Momentum Indicator is a dynamic volatility tool built on the Average True Range (ATR). It not only tracks increasing or decreasing momentum but also provides early warnings and confirmation signals for potential breakout moves. Itโs especially powerful for futures and options traders looking to align with expanding price action.
---
๐ Core Components
โ ATR Delta (Rolling ATR)
- Definition: Difference between current ATR and past ATR (user-defined lookback).
- Use: Tells whether volatility is expanding (positive delta) or contracting (negative delta).
- Visual: Green line for rising momentum, red for declining.
๐ฃ ATR Delta Slope
- Definition: Measures acceleration in momentum.
- Use: Helps identify early signs of breakout buildup.
- Visual: Purple line. Watch for slope turning up from below.
๐ก Volatility Squeeze (Yellow Dot)
- Definition: Current ATR is significantly lower than its 20-period average.
- Use: Indicates the market is coilingโpossible breakout ahead.
๐ผ Momentum Start (Green Triangle)
- Definition: ATR Delta slope turns from negative to positive.
- Use: Early warning to prepare for volatility expansion.
๐ท Breakout Confirmation (Blue Label Up)
- Definition: ATR Delta exceeds its high of the last 10 candles.
- Use: Confirms volatility breakoutโtrade opportunity if direction aligns.
๐ฉ/๐ฅ Background Color
- Green Background: Momentum rising (positive ATR delta)
- Red Background: Momentum falling (negative ATR delta)
- Yellow Tint: Active squeeze zone
---
โ How to Use It (Futures/Options Focus)
Step-by-Step:
1. Squeeze Detected (Yellow Dot) โ Stay alert. Market is coiling.
2. Green Triangle Appears โ Momentum is starting to rise.
3. Background Turns Green โ Confirmed rising momentum.
4. Blue Label Appears โ Confirmed breakout (enter trade if trend aligns).
Directional Bias:
- Use your main chart setup (price action, EMAs, trendlines, etc.) to decide direction (Call or Put, Long or Short).
- ATR Momentum only tells you how strong the move isโnot which way.
---
โ๏ธ Inputs & Settings
- ATR Period: Default 14 (core volatility measure)
- Rolling Lookback: Used to calculate delta (default 5)
- Slope Length: Used to measure acceleration (default 3)
- Squeeze Factor: Default 0.8 โ lower = more sensitive squeeze detection
- Breakout Lookback: Checks ATR delta against last X bars (default 10)
---
๐ง Pro Tips
- Works great when paired with EMA stacks, price structure, or breakout patterns.
- Avoid taking trades based only on squeeze or momentumโcombine with chart confirmation.
- If background turns red after a breakout, it may be losing momentumโbook partials or tighten stops.
---
๐งญ Ideal For:
- Nifty/BankNifty Futures
- Option directional trades (call/put buying)
- Index scalping and momentum swing setups
---
Use this tool as your volatility compassโit won't tell you where to go, but it'll tell you when the wind is strong enough to move fast.
End of Manual
---
๐ Overview
The ATR Rolling Momentum Indicator is a dynamic volatility tool built on the Average True Range (ATR). It not only tracks increasing or decreasing momentum but also provides early warnings and confirmation signals for potential breakout moves. Itโs especially powerful for futures and options traders looking to align with expanding price action.
---
๐ Core Components
โ ATR Delta (Rolling ATR)
- Definition: Difference between current ATR and past ATR (user-defined lookback).
- Use: Tells whether volatility is expanding (positive delta) or contracting (negative delta).
- Visual: Green line for rising momentum, red for declining.
๐ฃ ATR Delta Slope
- Definition: Measures acceleration in momentum.
- Use: Helps identify early signs of breakout buildup.
- Visual: Purple line. Watch for slope turning up from below.
๐ก Volatility Squeeze (Yellow Dot)
- Definition: Current ATR is significantly lower than its 20-period average.
- Use: Indicates the market is coilingโpossible breakout ahead.
๐ผ Momentum Start (Green Triangle)
- Definition: ATR Delta slope turns from negative to positive.
- Use: Early warning to prepare for volatility expansion.
๐ท Breakout Confirmation (Blue Label Up)
- Definition: ATR Delta exceeds its high of the last 10 candles.
- Use: Confirms volatility breakoutโtrade opportunity if direction aligns.
๐ฉ/๐ฅ Background Color
- Green Background: Momentum rising (positive ATR delta)
- Red Background: Momentum falling (negative ATR delta)
- Yellow Tint: Active squeeze zone
---
โ How to Use It (Futures/Options Focus)
Step-by-Step:
1. Squeeze Detected (Yellow Dot) โ Stay alert. Market is coiling.
2. Green Triangle Appears โ Momentum is starting to rise.
3. Background Turns Green โ Confirmed rising momentum.
4. Blue Label Appears โ Confirmed breakout (enter trade if trend aligns).
Directional Bias:
- Use your main chart setup (price action, EMAs, trendlines, etc.) to decide direction (Call or Put, Long or Short).
- ATR Momentum only tells you how strong the move isโnot which way.
---
โ๏ธ Inputs & Settings
- ATR Period: Default 14 (core volatility measure)
- Rolling Lookback: Used to calculate delta (default 5)
- Slope Length: Used to measure acceleration (default 3)
- Squeeze Factor: Default 0.8 โ lower = more sensitive squeeze detection
- Breakout Lookback: Checks ATR delta against last X bars (default 10)
---
๐ง Pro Tips
- Works great when paired with EMA stacks, price structure, or breakout patterns.
- Avoid taking trades based only on squeeze or momentumโcombine with chart confirmation.
- If background turns red after a breakout, it may be losing momentumโbook partials or tighten stops.
---
๐งญ Ideal For:
- Nifty/BankNifty Futures
- Option directional trades (call/put buying)
- Index scalping and momentum swing setups
---
Use this tool as your volatility compassโit won't tell you where to go, but it'll tell you when the wind is strong enough to move fast.
End of Manual
Open-source script
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.
For quick access on a chart, add this script to your favorites โ learn more here.
Disclaimer
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.
Open-source script
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.
For quick access on a chart, add this script to your favorites โ learn more here.
Disclaimer
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.