PROTECTED SOURCE SCRIPT
Mis à jour Breakdown Sniper [Riz]

Breakdown Sniper is a complete structural-based price-action system designed to identify and validate three major setups
1. Failed Breakdowns (FBD)
2. Breakouts / Breakdowns (BO)
3. Back-Tests (BT)
The script analyzes swing structure, undercuts, reclaim behavior, channel bias, support/resistance levels, and a multi-layer confluence engine to highlight high-quality long/short signals.
It also includes trade management, target projections, trailing logic, risk models, and an optional dashboard for clarity.
Core Concepts Behind the System
1. Pivot Structure & New Low/High Logic
Breakdown Sniper continuously detects pivot highs and lows using user-defined left/right bars.
These pivots are used to determine
⦁ Recent structural lows/highs
⦁ Undercuts (for failed breakdowns)
⦁ Structural breaks (for FBO/BO setups)
This provides the foundation for all three setup types.
2. Failed Breakdown (FBD) Detection
The primary logic of the script is to detect failed breakdowns, which follow this sequence:
1. Identify an initial pivot low
2. Price undercuts that low
3. Price reclaims the level by a specified number of points
4. Optional: new higher low print confirming strength
5. Once confirmed, the script calculates:
⦁ Entry trigger price
⦁ Stop placement (multiple options: below undercut, below initial low, ATR-based, fixed)
⦁ Three profit targets based on risk multiples
The reverse logic is applied for failed breakouts (FBO).
3. Breakouts & Breakdowns (BO)
The system also captures momentum breakouts/breakdowns defined by:
⦁ Price breaking major support/resistance
⦁ Bar-level strength (close vs range)
⦁ ATR-based expansion
⦁ Holding above/below breakout level for a user-defined number of bars
If confirmed, the script projects T1/T2/T3 targets and stop placement automatically.
4. Back-test Setups (BT)
After a confirmed breakout/breakdown, the script monitors for a return to the breakout level, within a percentage tolerance.
If a clean retest occurs:
⦁ A BT Long or BT Short setup is generated
⦁ Risk and target calculations are performed automatically
This allows identifying continuation setups after strong breaks.
Channel & Levels System (Support/Resistance Engine)
The script builds a hybrid S/R and environment model using:
⦁ Regression channel OR
⦁ Donchian, Keltner, Bollinger channels (user-selectable)
The channel provides:
⦁ Upper/Lower boundaries
⦁ Midline
⦁ Trend bias based on slope
Additionally, a multi-touch support/resistance detector clusters pivot-based levels and scores them by:
⦁ Touch count
⦁ Recency
⦁ Age
⦁ Whether they classify as major levels
This explains where reversals and breakouts are most likely.
Confluence Engine
Every Long/Short signal receives a 0–100 score derived from:
⦁ Market structure: HH/HL or LL/LH
⦁ Trend filter (EMA-based)
⦁ Volatility conditions (ATR range requirements)
⦁ Session bias (Asian / London / New York / Overlap)
⦁ Volume expansion
⦁ Higher-timeframe trend (optional)
⦁ Location inside channel
⦁ Distance to nearest S/R
⦁ Setup-type priority (FBD/BO/BT)
Users can require a minimum score before a signal becomes valid.
Trade Management Logic
Once a trade triggers, the indicator handles:
⦁ Entry execution confirmation
⦁ Stop loss tracking
⦁ Three independent profit targets
⦁ Optional scale-ins
⦁ ATR-based trailing stop
⦁ Risk calculations
⦁ Real-time PnL monitoring
The script does not execute live trades — it only visualizes management levels for analysis.
Visual Components
Breakdown Sniper plots:
⦁ Channels & fills
⦁ Auto-detected S/R levels
⦁ Pivot highs/lows
⦁ Buy/Sell markers
⦁ Entry/Stop/Targets
⦁ Trade dashboard (optional)
⦁ Equity curve (optional)
Everything is toggle-based for clean charting.
How To Use the Indicator
Recommended Use-Case
⦁ Futures (ES/NQ/CL/RTY)
⦁ Indices
⦁ Crypto
⦁ FX
Works well on:
⦁ 5m / 15m / 1H
Signals do not repaint because pivots and reclaim sequences require bar completion.
Basic Usage Steps
1. Enable the setups you want to trade: FBD, BO, BT
2. Optionally turn on filters:
⦁ Trend filter
⦁ Volatility filter
⦁ Market structure filter
⦁ MTF trend filter
3. Wait for a valid long/short signal with sufficient confluence
4. Follow the plotted entry level, stop, and targets
5. Use the dashboard to monitor performance of each setup type
Important Notes
This is a structural/price-action tool, not a prediction model
No guarantee of profitability is provided
The indicator is educational and analytical
Always use independent confirmation and risk management
Disclaimer
This script is for education and analysis. It does not provide financial advice. Markets involve risk. Past behavior of any pattern or study does not imply future results. You are responsible for your own decisions.
1. Failed Breakdowns (FBD)
2. Breakouts / Breakdowns (BO)
3. Back-Tests (BT)
The script analyzes swing structure, undercuts, reclaim behavior, channel bias, support/resistance levels, and a multi-layer confluence engine to highlight high-quality long/short signals.
It also includes trade management, target projections, trailing logic, risk models, and an optional dashboard for clarity.
Core Concepts Behind the System
1. Pivot Structure & New Low/High Logic
Breakdown Sniper continuously detects pivot highs and lows using user-defined left/right bars.
These pivots are used to determine
⦁ Recent structural lows/highs
⦁ Undercuts (for failed breakdowns)
⦁ Structural breaks (for FBO/BO setups)
This provides the foundation for all three setup types.
2. Failed Breakdown (FBD) Detection
The primary logic of the script is to detect failed breakdowns, which follow this sequence:
1. Identify an initial pivot low
2. Price undercuts that low
3. Price reclaims the level by a specified number of points
4. Optional: new higher low print confirming strength
5. Once confirmed, the script calculates:
⦁ Entry trigger price
⦁ Stop placement (multiple options: below undercut, below initial low, ATR-based, fixed)
⦁ Three profit targets based on risk multiples
The reverse logic is applied for failed breakouts (FBO).
3. Breakouts & Breakdowns (BO)
The system also captures momentum breakouts/breakdowns defined by:
⦁ Price breaking major support/resistance
⦁ Bar-level strength (close vs range)
⦁ ATR-based expansion
⦁ Holding above/below breakout level for a user-defined number of bars
If confirmed, the script projects T1/T2/T3 targets and stop placement automatically.
4. Back-test Setups (BT)
After a confirmed breakout/breakdown, the script monitors for a return to the breakout level, within a percentage tolerance.
If a clean retest occurs:
⦁ A BT Long or BT Short setup is generated
⦁ Risk and target calculations are performed automatically
This allows identifying continuation setups after strong breaks.
Channel & Levels System (Support/Resistance Engine)
The script builds a hybrid S/R and environment model using:
⦁ Regression channel OR
⦁ Donchian, Keltner, Bollinger channels (user-selectable)
The channel provides:
⦁ Upper/Lower boundaries
⦁ Midline
⦁ Trend bias based on slope
Additionally, a multi-touch support/resistance detector clusters pivot-based levels and scores them by:
⦁ Touch count
⦁ Recency
⦁ Age
⦁ Whether they classify as major levels
This explains where reversals and breakouts are most likely.
Confluence Engine
Every Long/Short signal receives a 0–100 score derived from:
⦁ Market structure: HH/HL or LL/LH
⦁ Trend filter (EMA-based)
⦁ Volatility conditions (ATR range requirements)
⦁ Session bias (Asian / London / New York / Overlap)
⦁ Volume expansion
⦁ Higher-timeframe trend (optional)
⦁ Location inside channel
⦁ Distance to nearest S/R
⦁ Setup-type priority (FBD/BO/BT)
Users can require a minimum score before a signal becomes valid.
Trade Management Logic
Once a trade triggers, the indicator handles:
⦁ Entry execution confirmation
⦁ Stop loss tracking
⦁ Three independent profit targets
⦁ Optional scale-ins
⦁ ATR-based trailing stop
⦁ Risk calculations
⦁ Real-time PnL monitoring
The script does not execute live trades — it only visualizes management levels for analysis.
Visual Components
Breakdown Sniper plots:
⦁ Channels & fills
⦁ Auto-detected S/R levels
⦁ Pivot highs/lows
⦁ Buy/Sell markers
⦁ Entry/Stop/Targets
⦁ Trade dashboard (optional)
⦁ Equity curve (optional)
Everything is toggle-based for clean charting.
How To Use the Indicator
Recommended Use-Case
⦁ Futures (ES/NQ/CL/RTY)
⦁ Indices
⦁ Crypto
⦁ FX
Works well on:
⦁ 5m / 15m / 1H
Signals do not repaint because pivots and reclaim sequences require bar completion.
Basic Usage Steps
1. Enable the setups you want to trade: FBD, BO, BT
2. Optionally turn on filters:
⦁ Trend filter
⦁ Volatility filter
⦁ Market structure filter
⦁ MTF trend filter
3. Wait for a valid long/short signal with sufficient confluence
4. Follow the plotted entry level, stop, and targets
5. Use the dashboard to monitor performance of each setup type
Important Notes
This is a structural/price-action tool, not a prediction model
No guarantee of profitability is provided
The indicator is educational and analytical
Always use independent confirmation and risk management
Disclaimer
This script is for education and analysis. It does not provide financial advice. Markets involve risk. Past behavior of any pattern or study does not imply future results. You are responsible for your own decisions.
Notes de version
═══════════════════════════════════════════════════════📊 BREAKDOWN SNIPER v2.0 - MAJOR UPDATE
═══════════════════════════════════════════════════════
🎯 NEW FEATURES:
✅ SEPARATE CONFLUENCE CONTROLS
• FBD (Main Strategy): 60% threshold - strict quality
• Breakout (Secondary): 40% threshold - more signals
• Back-test (Secondary): 40% threshold - more signals
• Full user control over each setup's quality
✅ BACK-TEST BUG FIXED
• Previous versions: Back-test signals never triggered
• Now working: Proper detection within 20-bar window
• Breakout + Back-test work together seamlessly
✅ DUAL-LEVEL STATISTICS TRACKING
• OVERALL Stats: FBD trades only (main strategy performance)
• BY SETUP Stats: All setups tracked separately
• Color-coded display (FBD=Lime, Breakout=Aqua, Back-test=Orange)
• Clean separation - main strategy quality protected
✅ PROFESSIONAL DASHBOARD
• Resizable: Small/Medium/Large options
• Complete transparency across all setups
• Compare individual setup performance
• Zero runtime errors - bulletproof protection
═══════════════════════════════════════════════════════
📈 WHAT THIS MEANS FOR YOU:
- Main FBD strategy remains high-quality (60% minimum)
- Extra opportunities from Breakout/Back-test (40% minimum)
- Clear performance metrics for each setup type
- Make informed decisions with complete data
Perfect for traders who want quality main signals +
extra secondary opportunities without compromising
their core strategy performance.
═══════════════════════════════════════════════════════
Notes de version
v2.1 Update: Fixed critical Max Drawdown calculation bug. Previous version incorrectly calculated equity from peak instead of baseline, resulting in drawdown always showing 0%. Now uses fixed initial equity baseline (10000) for accurate drawdown tracking across all trades.Notes de version
v2.3 Update: Fixed trade entry delay issue. Previously, signal would appear but trade entry waited for price confirmation, causing dashboard to show "NO ACTIVE TRADE". Now trade enters immediately when signal fires, ensuring signal appearance = active trade status for consistent user experience.Notes de version
v2.4 Update: This release includes several minor bug fixes and performance refinements to ensure smoother and more stable indicator functionality.Notes de version
✅ v2.5 - Improved dashboard target display: Now shows "X/3 Hit" counter instead of "None" for better visual tracking of T1/T2/T3 progressNotes de version
✅ v2.6 Update: Added PENDING ENTRY dashboard section - Now displays Entry, Stop Loss, and all Targets BEFORE trade activation. Signal tracking shows Direction, Setup Type, Confluence Score, and Bars Waiting counter. Auto-clears on entry trigger or signal expiry (20 bars). Improved target display from "None" to "X/3 Hit" counter for better progress tracking.Script protégé
Ce script est publié en source fermée. Cependant, vous pouvez l'utiliser librement et sans aucune restriction – pour en savoir plus, cliquez ici.
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 protégé
Ce script est publié en source fermée. Cependant, vous pouvez l'utiliser librement et sans aucune restriction – pour en savoir plus, cliquez ici.
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.