PROTECTED SOURCE SCRIPT
Simplified SMC Order Blocks

📌 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.
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.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.