PROTECTED SOURCE SCRIPT
Smart Money Breakouts

Smart Money Breakouts — Universal Structure-Based TP/SL System
Smart Money Breakouts is a structure-driven breakout system built around BOS / CHoCH detection, higher-timeframe bias filters, and entry-centric risk management.
The script follows a conservative execution model inspired by institutional price structure — without repainting and without re-evaluating past signals.
This tool is designed for systematic traders who want objective breakout confirmation, consistent execution logic, and programmatically formatted alerts suitable for automated trade processing.
Core Logic
The indicator detects:
• Swing BOS (Break of Structure)
• Swing CHoCH (Change of Character)
• Internal structures
• Valid impulse-based breakout legs
Structure events are processed through a candidate-based execution model:
A BOS / CHoCH creates a trade candidate
The candidate is valid only for a limited number of bars
Entry is allowed only on the bar immediately following the structure break
If the candidate expires — no trade is taken
This prevents late entries, mitigates structure drift, and eliminates “signal stretching” in long consolidations.
The script does not repaint.
Signals are generated only after a confirmed bar close.
Entry-Centric TP / SL (Structure-Based)
Take-profit and stop-loss levels are calculated after entry, using the nearest valid BOS / CHoCH as the structure anchor.
For each trade:
• Structure = BOS / CHoCH → Entry range
• Body extreme is detected inside the structure window
• Structure distance is measured
• TP and SL are derived proportionally
If structure distance cannot be calculated, an ATR-based fallback is used to avoid undefined risk.
TP1 is optional and can be used as a break-even activation level.
The script does not force or filter trades using TP/SL logic —
TP/SL is position management only.
Built-In Filters (Fully Toggleable)
Optional filters include:
• Volume bias threshold
• Higher-Timeframe structure bias
• Multi-Timeframe structure confirmation
• Dead-session / low-liquidity filter
• Minimum swing size
• Minimum spread filter
• Minimum structure size filter
All filters are configurable and can be disabled if needed.
No external data sources are used.
Break-Even & Position Handling
Break-even is applied only after TP1 is reached and is activated on the next bar to avoid intrabar conflicts.
Execution order prioritizes:
Stop-Loss
TP1 / Break-Even
TP2 (full target)
Only one outcome can occur per bar.
This produces deterministic trade outcomes and avoids ambiguous intrabar states.
Alerts & Automation
Alerts are emitted only on confirmed entry signals.
Alert payloads are exported in structured JSON format so they can be parsed by external trade-execution systems or custom automation tools.
The indicator itself does not execute trades and does not place or manage orders.
Any automation must be implemented externally at the user’s discretion.
Important Notes
This script:
• does not guarantee profitability
• does not provide financial advice
• should be tested before live use
• should be used as a decision-support tool only
Trading involves risk and past behavior of price structure does not imply future results.
Smart Money Breakouts is a structure-driven breakout system built around BOS / CHoCH detection, higher-timeframe bias filters, and entry-centric risk management.
The script follows a conservative execution model inspired by institutional price structure — without repainting and without re-evaluating past signals.
This tool is designed for systematic traders who want objective breakout confirmation, consistent execution logic, and programmatically formatted alerts suitable for automated trade processing.
Core Logic
The indicator detects:
• Swing BOS (Break of Structure)
• Swing CHoCH (Change of Character)
• Internal structures
• Valid impulse-based breakout legs
Structure events are processed through a candidate-based execution model:
A BOS / CHoCH creates a trade candidate
The candidate is valid only for a limited number of bars
Entry is allowed only on the bar immediately following the structure break
If the candidate expires — no trade is taken
This prevents late entries, mitigates structure drift, and eliminates “signal stretching” in long consolidations.
The script does not repaint.
Signals are generated only after a confirmed bar close.
Entry-Centric TP / SL (Structure-Based)
Take-profit and stop-loss levels are calculated after entry, using the nearest valid BOS / CHoCH as the structure anchor.
For each trade:
• Structure = BOS / CHoCH → Entry range
• Body extreme is detected inside the structure window
• Structure distance is measured
• TP and SL are derived proportionally
If structure distance cannot be calculated, an ATR-based fallback is used to avoid undefined risk.
TP1 is optional and can be used as a break-even activation level.
The script does not force or filter trades using TP/SL logic —
TP/SL is position management only.
Built-In Filters (Fully Toggleable)
Optional filters include:
• Volume bias threshold
• Higher-Timeframe structure bias
• Multi-Timeframe structure confirmation
• Dead-session / low-liquidity filter
• Minimum swing size
• Minimum spread filter
• Minimum structure size filter
All filters are configurable and can be disabled if needed.
No external data sources are used.
Break-Even & Position Handling
Break-even is applied only after TP1 is reached and is activated on the next bar to avoid intrabar conflicts.
Execution order prioritizes:
Stop-Loss
TP1 / Break-Even
TP2 (full target)
Only one outcome can occur per bar.
This produces deterministic trade outcomes and avoids ambiguous intrabar states.
Alerts & Automation
Alerts are emitted only on confirmed entry signals.
Alert payloads are exported in structured JSON format so they can be parsed by external trade-execution systems or custom automation tools.
The indicator itself does not execute trades and does not place or manage orders.
Any automation must be implemented externally at the user’s discretion.
Important Notes
This script:
• does not guarantee profitability
• does not provide financial advice
• should be tested before live use
• should be used as a decision-support tool only
Trading involves risk and past behavior of price structure does not imply future results.
Script protegido
Este script se publica como código cerrado. No obstante, puede utilizarlo libremente y sin ninguna limitación. Obtenga más información aquí.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.
Script protegido
Este script se publica como código cerrado. No obstante, puede utilizarlo libremente y sin ninguna limitación. Obtenga más información aquí.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.