OPEN-SOURCE SCRIPT
Candle Momentum Burst Detector

Candle Momentum Burst Detector [Premium]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ EDUCATIONAL PURPOSE ONLY — This script does not generate buy or sell signals. It is a market analysis and visualization tool built for educational and informational purposes only. It does not constitute financial advice. Trading involves significant risk. Always use proper risk management and consult a qualified financial advisor before making any trading decisions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 WHAT MAKES THIS DIFFERENT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Most momentum indicators confirm a move AFTER it has already run. This indicator detects the BIRTH of the move — the exact candle where compressed energy releases explosively in one direction. No RSI. No MACD. No Bollinger Bands. 100% original math built from scratch in Pine Script v6.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ 4 ENGINE SYSTEM
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
● ENGINE 1 — RANGE COMPRESSION DETECTOR
Compares the last 5 candles average range against the last 20 candles average. When the short-term average drops below a threshold percentage of the long-term average, the market is coiling and a burst is building.
● ENGINE 2 — BURST CANDLE IDENTIFIER
The first strong directional candle after compression. Must have a large range expansion above the short-term average, a strong body ratio closing decisively near the high or low, and a close in the top 40 percent for bull or bottom 40 percent for bear.
● ENGINE 3 — VOLUME CONFIRMATION
Volume must be above its average on the burst candle. A candle expanding in range without volume is often a false move. This engine filters those out automatically.
● ENGINE 4 — MOMENTUM SCORE (0 to 4)
Each condition above 2x threshold adds one point to the score. Score 4 means all conditions are at maximum strength — historically the highest probability continuation setup.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 VISUAL ELEMENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
● Yellow compression zone box — marks where the market was coiling before the burst
● Bull Burst label (teal) — appears below the burst candle with score
● Bear Burst label (red) — appears above the burst candle with score
● Two dotted target lines — projected at 1x and 1.5x the burst candle range forward
● Candle coloring — burst candles colored by direction and strength
● Gray candles — marks active compression zones on the chart
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💪 MOMENTUM SCORE GUIDE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
● EXTREME ★★★★ — All 4 conditions at maximum strength — highest probability
● STRONG ★★★☆ — 3 conditions strong — reliable observation
● MODERATE★★☆☆ — 2 conditions met — valid but use with caution
● WEAK ★☆☆☆ — Use Min Score filter to hide these
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 DASHBOARD
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
● Compression State — COILING / READY / NORMAL shown in real time
● Burst Score — live 0 to 4 score with readiness meter
● Last Signal — most recent burst direction
● Range vs Average — current candle range as percentage of long average
● Compression % — how compressed the market currently is
● Volume vs Average — current volume as percentage of average
● Body Ratio — current candle body strength percentage
● Burst Multiplier Needed — exact points needed for a burst on current bar
● Bull and Bear Burst counts for the session
Dashboard position is fully movable from settings — Top, Bottom, Middle, Left, Right, Center. No code editing needed.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📖 HOW TO READ IT — STEP BY STEP
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
● STEP 1 — Watch for gray candles
Gray or compressed candles mean the market is coiling. Do not trade during this period. Wait for the burst.
● STEP 2 — Compression State in dashboard
When dashboard shows COILING — energy is building. When it shows READY — compression happened recently and burst may be imminent.
● STEP 3 — Burst label appears
When BULL BURST or BEAR BURST label appears, check the score. Score 2 or above is the recommended minimum for any observation.
● STEP 4 — Check the target lines
Two dotted lines project forward from the burst candle. First line is 1x target, second is 1.5x target. These are educational reference levels, not guarantees.
● STEP 5 — Best observation combination
Score 4 plus COILING state just before plus volume above 150 percent of average equals the strongest setup this indicator can identify. Study these on historical data first.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ RECOMMENDED SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
● Timeframe — 5 min or 15 min recommended for intraday
● Min Score — set to 2 for balanced signals
● Works on — Nifty, BankNifty, stocks, crypto, forex, any liquid instrument
● Alerts — set Bull Burst and Bear Burst alerts for phone notifications
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ TECHNICAL TRANSPARENCY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
● No Repainting — all calculations on confirmed candle data only
● No Lookahead Bias — zero future data access
● No External Data — built purely on price and volume
● Pine Script v6 — latest version, fully optimized
● Original Code — not derived from any existing open-source script
● ta.* functions called at top level only — fully compliant with Pine Script v6 rules
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is published for educational and informational purposes only. It does not generate buy or sell signals. It does not guarantee any trading results. Past performance of any pattern or observation shown by this tool does not guarantee future results. The author is not responsible for any financial losses. Always do your own research and consult a licensed financial professional before trading.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ EDUCATIONAL PURPOSE ONLY — This script does not generate buy or sell signals. It is a market analysis and visualization tool built for educational and informational purposes only. It does not constitute financial advice. Trading involves significant risk. Always use proper risk management and consult a qualified financial advisor before making any trading decisions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 WHAT MAKES THIS DIFFERENT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Most momentum indicators confirm a move AFTER it has already run. This indicator detects the BIRTH of the move — the exact candle where compressed energy releases explosively in one direction. No RSI. No MACD. No Bollinger Bands. 100% original math built from scratch in Pine Script v6.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ 4 ENGINE SYSTEM
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
● ENGINE 1 — RANGE COMPRESSION DETECTOR
Compares the last 5 candles average range against the last 20 candles average. When the short-term average drops below a threshold percentage of the long-term average, the market is coiling and a burst is building.
● ENGINE 2 — BURST CANDLE IDENTIFIER
The first strong directional candle after compression. Must have a large range expansion above the short-term average, a strong body ratio closing decisively near the high or low, and a close in the top 40 percent for bull or bottom 40 percent for bear.
● ENGINE 3 — VOLUME CONFIRMATION
Volume must be above its average on the burst candle. A candle expanding in range without volume is often a false move. This engine filters those out automatically.
● ENGINE 4 — MOMENTUM SCORE (0 to 4)
Each condition above 2x threshold adds one point to the score. Score 4 means all conditions are at maximum strength — historically the highest probability continuation setup.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 VISUAL ELEMENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
● Yellow compression zone box — marks where the market was coiling before the burst
● Bull Burst label (teal) — appears below the burst candle with score
● Bear Burst label (red) — appears above the burst candle with score
● Two dotted target lines — projected at 1x and 1.5x the burst candle range forward
● Candle coloring — burst candles colored by direction and strength
● Gray candles — marks active compression zones on the chart
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💪 MOMENTUM SCORE GUIDE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
● EXTREME ★★★★ — All 4 conditions at maximum strength — highest probability
● STRONG ★★★☆ — 3 conditions strong — reliable observation
● MODERATE★★☆☆ — 2 conditions met — valid but use with caution
● WEAK ★☆☆☆ — Use Min Score filter to hide these
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 DASHBOARD
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
● Compression State — COILING / READY / NORMAL shown in real time
● Burst Score — live 0 to 4 score with readiness meter
● Last Signal — most recent burst direction
● Range vs Average — current candle range as percentage of long average
● Compression % — how compressed the market currently is
● Volume vs Average — current volume as percentage of average
● Body Ratio — current candle body strength percentage
● Burst Multiplier Needed — exact points needed for a burst on current bar
● Bull and Bear Burst counts for the session
Dashboard position is fully movable from settings — Top, Bottom, Middle, Left, Right, Center. No code editing needed.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📖 HOW TO READ IT — STEP BY STEP
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
● STEP 1 — Watch for gray candles
Gray or compressed candles mean the market is coiling. Do not trade during this period. Wait for the burst.
● STEP 2 — Compression State in dashboard
When dashboard shows COILING — energy is building. When it shows READY — compression happened recently and burst may be imminent.
● STEP 3 — Burst label appears
When BULL BURST or BEAR BURST label appears, check the score. Score 2 or above is the recommended minimum for any observation.
● STEP 4 — Check the target lines
Two dotted lines project forward from the burst candle. First line is 1x target, second is 1.5x target. These are educational reference levels, not guarantees.
● STEP 5 — Best observation combination
Score 4 plus COILING state just before plus volume above 150 percent of average equals the strongest setup this indicator can identify. Study these on historical data first.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ RECOMMENDED SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
● Timeframe — 5 min or 15 min recommended for intraday
● Min Score — set to 2 for balanced signals
● Works on — Nifty, BankNifty, stocks, crypto, forex, any liquid instrument
● Alerts — set Bull Burst and Bear Burst alerts for phone notifications
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ TECHNICAL TRANSPARENCY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
● No Repainting — all calculations on confirmed candle data only
● No Lookahead Bias — zero future data access
● No External Data — built purely on price and volume
● Pine Script v6 — latest version, fully optimized
● Original Code — not derived from any existing open-source script
● ta.* functions called at top level only — fully compliant with Pine Script v6 rules
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is published for educational and informational purposes only. It does not generate buy or sell signals. It does not guarantee any trading results. Past performance of any pattern or observation shown by this tool does not guarantee future results. The author is not responsible for any financial losses. Always do your own research and consult a licensed financial professional before trading.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。