PROTECTED SOURCE SCRIPT

Smart Money Breakouts [another version]

134
Smart Money Breakouts — Structure-Based Breakout & Risk Engine

Smart Money Breakouts is a deterministic, structure-driven breakout system built around BOS / CHoCH detection, conservative execution logic, and post-entry risk management.
The script follows a strict candidate-based entry model inspired by institutional price structure — without repainting and without retroactive signal changes.

This tool is designed for systematic traders and automation users who want consistent execution logic, objective structure confirmation, and machine-readable alerts suitable for external trade processing.

Core Concept

The indicator detects:

• Swing BOS (Break of Structure)
• Swing CHoCH (Change of Character)
• Internal impulse structure
• Valid breakout legs

Every BOS / CHoCH event creates a trade candidate.

A candidate remains valid only for a limited time window.
Entry is allowed only on the first bar after the confirmed structure break.

If the candidate expires — the trade is skipped.

This prevents:

• late entries
• structure drift execution
• chasing consolidation breakouts

All signals are generated on bar close and the script does not repaint.

Structure-Anchored TP / SL (Entry-Centric)

Risk parameters are calculated after entry, using the nearest valid structure anchor.

For each trade:

• BOS / CHoCH → structure window
• price extreme is detected inside the window
• structure distance is measured
• TP / SL are derived proportionally

If structure distance cannot be resolved, an ATR-based fallback is used to avoid undefined risk.

TP1 is optional and acts as a break-even activation trigger.

The indicator does not filter trades using TP/SL logic —
risk handling occurs only after entry.

Obstacle-Aware Adaptive Targeting

The script includes a lightweight structural obstacle detector:

• scans recent swing pivots
• checks for opposing structure inside the TP path
• if an obstacle is closer than TP — TP is adapted
• SL is recalculated proportionally to maintain RR consistency

This improves execution robustness in:

• liquidity absorption zones
• frontal resistance clusters
• local structural ceilings

Trades that are too small after adaptation may be rejected.

Built-In Filters (Fully Optional)

All filters can be enabled/disabled:

• Volume bias filter
• Higher-Timeframe direction bias
• Multi-Timeframe structure bias
• Dead-session / low-liquidity filter
• Minimum swing size filter
• Minimum spread / volatility filter
• Max TP/SL distance
• Minimum viable trade size

The script does not pull external market data — all logic is chart-native.

Break-Even & Exit Priority

Break-even activates only after TP1 is hit and is applied on the next bar to avoid intrabar ambiguity.

Execution order is deterministic:

Stop-Loss

TP1 / Break-Even

TP2 (full target)

Only one outcome may occur per bar.

This eliminates conflicting intrabar states and ensures reproducible backtests.

Alerts & Automation

Alerts are emitted only on confirmed entry signals.

Payloads export structured values:

• entry price
• TP1
• TP2
• SL
• symbol / exchange / timeframe / timestamp

The indicator does not execute trades.
Automation must be handled externally by the user.

Important Notes

This script:

• does not guarantee profitability
• is not financial advice
• should be forward-tested before live use
• is intended as a decision-support & execution framework

Trading involves risk — structure behavior does not imply future outcomes.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.