OPEN-SOURCE SCRIPT
Market Break Analytics [ChartPrime]

🔶 OVERVIEW
Market Break Analytics is a structural momentum and volume-distribution tool designed to analyze confirmed pivot breaks and measure participation behind each structural move.
Instead of simply marking a breakout, this indicator builds a complete structural map:
• It identifies the pivot being broken
• Locates the true swing origin
• Measures volume dominance during the expansion
• Displays buy/sell participation as percentage strength

This provides traders with both structure confirmation and participation analytics in one visual framework.
🔶 CORE STRUCTURE LOGIC
This ensures the tool reacts to true structural shifts, not temporary volatility spikes.
🔶 SWING ORIGIN DETECTION
Once a break occurs:
This clearly maps the entire structural leg from origin to breakout.
🔶 VOLUME PARTICIPATION ANALYTICS
A unique component of this tool is the in-swing volume distribution model.
For each structural leg:


This answers a critical question:
Was the breakout driven by strong participation or weak momentum?
You see the conviction behind the move — not just the price level.
🔶 BREAK LINE & LABEL SYSTEM
Each structural event includes:

These elements allow traders to visually separate:
• Accumulation → Expansion → Structural shift
🔶 HISTORY CONTROL
This allows the tool to function as either:
• A structural archive
• Or a clean real-time breakout monitor
🔶 TREND COLORING
Bars are automatically colored based on active structural direction:
This provides immediate structural bias recognition.
🔶 HOW TO USE
This tool works particularly well on:
• Intraday trend continuation
• Swing breakout strategies
• Market structure confirmation systems
🔶 WHAT MAKES IT DIFFERENT
Most breakout tools only show:
• A level
• A cross
• A label
Market Break Analytics adds:
• Structural origin detection
• Volume dominance mapping
• Swing expansion tracking
• Directional bias coloring
• Historical structural control
It transforms simple breakouts into complete structural analysis.
🔶 CONCLUSION
Market Break Analytics [ChartPrime] provides a comprehensive view of market structure shifts by combining:
• Pivot break detection
• Swing mapping
• Participation analytics
• Structural trend visualization
Instead of reacting to price alone, traders can now evaluate the strength and quality of every structural move — gaining deeper insight into whether a break is supported by real participation or lacks conviction.
Market Break Analytics is a structural momentum and volume-distribution tool designed to analyze confirmed pivot breaks and measure participation behind each structural move.
Instead of simply marking a breakout, this indicator builds a complete structural map:
• It identifies the pivot being broken
• Locates the true swing origin
• Measures volume dominance during the expansion
• Displays buy/sell participation as percentage strength
This provides traders with both structure confirmation and participation analytics in one visual framework.
🔶 CORE STRUCTURE LOGIC
- The indicator tracks confirmed pivot highs and pivot lows.
- A structural break occurs only after price closes beyond a confirmed pivot level.
- Break Up mode → Tracks bullish breaks above pivot highs.
- Break Dn mode → Tracks bearish breaks below pivot lows.
- Trend direction flips only when an opposite structural break is confirmed.
This ensures the tool reacts to true structural shifts, not temporary volatility spikes.
🔶 SWING ORIGIN DETECTION
Once a break occurs:
- The algorithm scans backward to find the lowest low (for bullish breaks).
- Or the highest high (for bearish breaks).
- This swing origin becomes the structural base.
- A baseline is drawn from origin to current structure.
- A dashed expansion line visualizes the active swing.
This clearly maps the entire structural leg from origin to breakout.
🔶 VOLUME PARTICIPATION ANALYTICS
A unique component of this tool is the in-swing volume distribution model.
For each structural leg:
- Total buy volume is measured (close > open).
- Total sell volume is measured (close < open).
- Percent dominance is calculated.
- Buy/Sell boxes are drawn near swing completion.
- Color intensity reflects participation strength.
This answers a critical question:
Was the breakout driven by strong participation or weak momentum?
You see the conviction behind the move — not just the price level.
🔶 BREAK LINE & LABEL SYSTEM
Each structural event includes:
- Break Line → Marks the exact pivot that was broken.
- Break Label → Visually confirms structural violation.
- Base Line → Shows structural origin level.
- Swing Line → Displays directional expansion.
- Swing Start Label → Displays swing start price.
These elements allow traders to visually separate:
• Accumulation → Expansion → Structural shift
🔶 HISTORY CONTROL
- History ON → All past break structures remain visible.
- History OFF → Only the most recent structure is shown.
This allows the tool to function as either:
• A structural archive
• Or a clean real-time breakout monitor
🔶 TREND COLORING
Bars are automatically colored based on active structural direction:
- Bullish structure → Bull color.
- Bearish structure → Bear color.
- No active structure → Default chart color.
This provides immediate structural bias recognition.
🔶 HOW TO USE
- Use Break Up mode during bullish market phases.
- Use Break Dn mode during bearish market phases.
- Watch for high buy % during bullish breaks for strong continuation setups.
- Watch for weak participation during breaks for potential fakeouts.
- Combine with liquidity or order block tools for confluence.
- Pivot strength settings can be increased to filter noise.
This tool works particularly well on:
• Intraday trend continuation
• Swing breakout strategies
• Market structure confirmation systems
🔶 WHAT MAKES IT DIFFERENT
Most breakout tools only show:
• A level
• A cross
• A label
Market Break Analytics adds:
• Structural origin detection
• Volume dominance mapping
• Swing expansion tracking
• Directional bias coloring
• Historical structural control
It transforms simple breakouts into complete structural analysis.
🔶 CONCLUSION
Market Break Analytics [ChartPrime] provides a comprehensive view of market structure shifts by combining:
• Pivot break detection
• Swing mapping
• Participation analytics
• Structural trend visualization
Instead of reacting to price alone, traders can now evaluate the strength and quality of every structural move — gaining deeper insight into whether a break is supported by real participation or lacks conviction.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.