Order Blocks & Breaker Blocks Plus [SunanLabs]

© SunanLabs — Creative Commons Attribution 4.0 International (CC BY 4.0)
Version: 1.0 – Breaker Marker Build
Pine Script Version: v6 (Fully Compliant)
Category: Technical Analysis → Smart Money Concepts / Supply & Demand
🧭 Overview
Order Blocks & Breaker Blocks Plus [SunanLabs] is a precision-engineered visualization tool designed for institutional-style Smart Money Concepts (SMC) trading.
It automatically detects, plots, and updates Order Blocks (OBs) and Breaker Blocks (BBs) in real time — with full control over transparency, marker shape, and size, directly from the TradingView UI.
Built for both professional traders and educational use, it visually clarifies how structure shifts occur when liquidity is swept and rebalanced by market makers.
⚙️ Core Features
✅ Real-Time Order Block Detection
• Bullish and Bearish OBs automatically marked based on swing structure.
• Uses either wicks or candle bodies (configurable).
✅ Breaker Block Tracking
• When an OB fails, a dashed breaker line is drawn at the exact invalidation point.
• Perfect for visualizing liquidity flips or structural breaks.
✅ Marker System (Customizable)
• Choose between two styles: "▲ / ▼" or "⇑ / ⇓", or disable markers completely.
• Marker sizes from tiny → huge for all chart styles and resolutions.
✅ Fully Reactive Colors
• Direct opacity control via TradingView color picker (no hardcoded alpha).
• Separate color sets for OBs and Breaker Blocks.
✅ Built-in Alerts
• Automatic alerts when new OBs form or when a Breaker Block triggers.
• Alerts include symbol, timeframe, and current price context.
✅ Ultra-Stable Build
• Pine v6 compliant (no line continuations, undeclared variables, or runtime warnings).
• Modular, efficient, and built for expansion.
🧩 Usage Guide
1. Swing Lookback – Controls sensitivity: higher = stronger, fewer OBs; lower = more reactive zones.
2. Show Last Bullish/Bearish OB – Limits how many zones are displayed for visual clarity.
3. Use Candle Body – Toggles between wick-based and body-based zone boundaries.
4. Marker Style – Select from:
▲ / ▼ traditional solid arrows
⇑ / ⇓ arrowhead-with-tail style
none to disable markers
5. Marker Size – Choose from tiny, small, normal, large, or huge.
6. Colors – All opacity levels controlled directly through the color configuration UI.
📚 Concept Notes
• Order Block (OB): The last bullish/bearish candle before a strong opposing move; represents institutional order placement zones.
• Breaker Block (BB): A former OB invalidated by price; it flips polarity and often acts as support/resistance.
• Swing Lookback: Determines how the indicator identifies local highs/lows for OB anchoring.
⚠️ Disclaimer
This indicator is provided for educational and research purposes only.
It does not constitute financial advice or a guarantee of trading performance.
Always test indicators thoroughly in simulation before live trading.
🧾 License
This script is released under the
Creative Commons Attribution 4.0 International License (CC BY 4.0).
You are free to use, modify, and share it for any purpose —
with proper credit to “SunanLabs.”
🧠 Attribution
Developed and maintained by SunanLabs
Part of the SunanLabs Smart Money Concepts Suite
Built to the SunanLabs PineScript Standards for reliability, modularity, and clarity.
סקריפט להזמנה בלבד
רק משתמשים שאושרו על ידי המחבר יכולים לגשת לסקריפט הזה. תצטרך לבקש ולקבל אישור להשתמש בו. אישור זה ניתן בדרך כלל לאחר תשלום. לפרטים נוספים, בצע את ההוראות של המחבר למטה או צור קשר ישירות עם Ki_Sunan.
TradingView לא ממליצה לשלם עבור סקריפט או להשתמש בו, אלא אם כן אתה סומך לחלוטין על המחבר שלו ומבין איך הוא עובד. ייתכן שתמצא גם אלטרנטיבות חינמיות בקוד פתוח בסקריפטים של הקהילה שלנו.
הוראות המחבר
כתב ויתור
סקריפט להזמנה בלבד
רק משתמשים שאושרו על ידי המחבר יכולים לגשת לסקריפט הזה. תצטרך לבקש ולקבל אישור להשתמש בו. אישור זה ניתן בדרך כלל לאחר תשלום. לפרטים נוספים, בצע את ההוראות של המחבר למטה או צור קשר ישירות עם Ki_Sunan.
TradingView לא ממליצה לשלם עבור סקריפט או להשתמש בו, אלא אם כן אתה סומך לחלוטין על המחבר שלו ומבין איך הוא עובד. ייתכן שתמצא גם אלטרנטיבות חינמיות בקוד פתוח בסקריפטים של הקהילה שלנו.