INVITE-ONLY SCRIPT

Order Blocks & Breaker Blocks Plus [SunanLabs]

55
🟦 Order Blocks & Breaker Blocks Plus [SunanLabs] V1.0

© 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.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.