PROTECTED SOURCE SCRIPT

Simplified SMC Order Blocks

31
📌 Simplified SMC Order Blocks (Pine Script v6)
This script automatically identifies bullish and bearish order blocks based on simple swing highs and lows — inspired by Smart Money Concepts (SMC) and price action trading.

🔍 Features
Detects swing highs/lows using a lookback period

Waits for confirmation candles to validate the zone

Draws order block zones using box.new() directly on the chart

Includes alerts for both bullish and bearish order blocks

⚙️ Inputs
Lookback: How many candles to look back for swing points

Confirmation Candles: How many bars to wait before confirming the OB

Zone Width: Width of the drawn zone (in bars)

🟩 Bullish Order Block:
Identified after a swing low forms

Plots a green shaded zone below price

🟥 Bearish Order Block:
Identified after a swing high forms

Plots a red shaded zone above price

📈 Use Case
Identify potential reversal or mitigation zones

Align with other SMC tools like break of structure (BoS), liquidity sweep, etc.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.