OPEN-SOURCE SCRIPT
تم تحديثه

⚡ Breaker Engine | Auto Retest + 3R Targets

146
⚡ Breaker Engine | Auto Retest + Smart R:R Targets

A precision-grade breaker-block detection system built for traders who live and breathe clean structure.
This indicator automatically detects Breaker Candles, confirms them, marks their zones, and executes intelligent retest-based entry logic — complete with Stop-Loss and Risk-to-Reward (R:R) tracking up to 3R (or any custom ratio).

🧠 Core Concept
A Breaker Block is a structural shift where price violates liquidity from a failed order block and flips the zone’s polarity — turning a former supply into demand (or vice-versa).
This script identifies those setups automatically, confirms them only after a valid structure break, and waits for a clean retest to trigger a trade signal.

🚀 Key Features

⚙️ Smart Zone Detection
  • Detects both Bullish Breakers and Bearish Breakers.
  • Zones are drawn precisely using the breaker’s middle candle body (or full wick range if enabled).
  • Fully configurable transparency, width, and extension for better visual context.


🎯 Auto Retest Entry Logic
  • Entry triggers only on a clean retest, not on immediate breakout.
  • Includes logical filters to ensure retests are structurally valid and not overlapping candles.
  • Works in any timeframe or market — crypto, forex, indices, or commodities.


💡 Dynamic Risk–Reward Tracking
  • Automatically plots 1R, 2R, 3R targets based on your defined stop range.
  • Risk is calculated from entry to zone boundary or ATR offset.
  • Each target label appears precisely when hit.
  • Targets automatically stop updating once Stop-Loss is triggered.


🧱 Visual Clarity
  • BUY 🟢 / SELL 🔴 bubbles at entries.
  • SL ❌ marker when stop is hit.
  • 🎯 1R / 2R / 3R labels dynamically plotted when each reward level is reached.
  • Non-overlapping placement using ATR-based spacing.


⚡ Real-Time Alerts - Instant alerts for:
  • ✅ “Breaker BUY” – Clean retest confirmed (Long setup)
  • ✅ “Breaker SELL” – Clean retest confirmed (Short setup)
  • ❌ “Breaker BUY SL” – Stop hit for Long
  • ❌ “Breaker SELL SL” – Stop hit for Short


🧩 Customization Panel
| Setting | Description |
| :-------------------------- | :------------------------------------------------------------------------------ |
| **ATR Length** | Controls volatility-based offset sizing. |
| **Entry / SL Offset × ATR** | Adjusts label spacing and dynamic positioning. |
| **Risk-Reward Ratio** | Define default R:R (e.g. 1:3). |
| **Multiple Retests** | Enable if you want the same breaker zone to allow multiple retests/entries. |
| **Banner Design** | Control opacity, extension, and wick usage for the breaker block visualization. |
| **Color Controls** | Choose your BUY/SELL/SL bubble colors to match your chart theme. |

⚙️ Underlying Logic (At a Glance)
  1. Pattern Detection:
    Identifies a 5-bar sequence that forms a valid Breaker Candle (the middle bar flips structure).
  2. Confirmation:
    Requires a follow-through candle to validate a real liquidity break.
  3. Zone Registration:
    Stores the breaker zone’s body range in arrays for tracking.
  4. Clean Retest Entry:
    Waits for price to retest the zone from the opposite side and close cleanly inside.
  5. Stop Loss / Target Projection:
    Defines stop loss just beyond the zone and plots up to 3 × reward targets dynamically.
  6. Monitoring & Alerts:
    Tracks each setup independently until either an R-target or SL is reached.


💬 Recommended Usage
  • Works best with market-structure traders, smart-money concepts, or liquidity-based systems.
  • Combine it with an external displacement confirmation or BOS/CHOCH tool for best precision.
  • Ideal for backtesting breaker-based R:R consistency or forward-testing retest entries.
  • Compatible with any asset / timeframe.


🧭 Disclaimer
This script is for educational and analytical purposes only.
It is not financial advice and should not be used to make trading decisions without independent confirmation or risk management.
Always test on demo data before deploying live.
ملاحظات الأخبار
Now available with Dynamic Targets
ملاحظات الأخبار
Optimised with nR dynamic Targets

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

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.