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.
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。