OPEN-SOURCE SCRIPT

All-in-One SMC Pro

110
All-in-One SMC Pro: CHOCH • BOS • FVG • Order Blocks • Liquidity + Discount/Premium

This open-source overlay indicator combines the five most widely used Smart Money / ICT (Inner Circle Trader) concepts into a single, customizable tool:

- Break of Structure (BOS)
- Change of Character (CHOCH)
- Fair Value Gaps (FVG)
- Order Blocks (mitigation blocks)
- Liquidity grabs (equal highs/lows)
- Discount / Premium zones

Why this combination?
SMC traders rarely use these concepts in isolation. A complete workflow typically involves:
1. Identifying market structure direction (BOS) or reversal (CHOCH)
2. Locating high-probability entry zones (Order Blocks, FVGs)
3. Confirming institutional manipulation (liquidity grabs of equal highs/lows)
4. Understanding price positioning relative to value (discount = buy bias, premium = sell bias)

Putting them all in one script reduces chart clutter, improves confluence visibility, and helps newer SMC users see how the pieces connect — without needing 5–7 separate indicators.

Core Concepts & Detection Logic

1. Break of Structure (BOS)
- Bullish BOS: price closes above previous swing high
- Bearish BOS: price closes below previous swing low
- Swing points detected with user-defined lookback (default 5 bars left/right)

2. Change of Character (CHOCH)
- Bullish CHOCH: price makes lower low but closes above previous swing high (bearish structure broken → bullish reversal signal)
- Bearish CHOCH: price makes higher high but closes below previous swing low (bullish structure broken → bearish reversal signal)

3. Fair Value Gaps (FVG)
- Bullish FVG: gap up after a bearish candle (low > high[2])
- Bearish FVG: gap down after a bullish candle (high < low[2])
- Sensitivity controlled via ATR multiplier (default 0.1 × ATR(14))
- Dashed horizontal lines mark the gap boundaries

4. Order Blocks
- Bullish OB: previous swing low after bullish BOS (potential demand zone)
- Bearish OB: previous swing high after bearish BOS (potential supply zone)
- Drawn as semi-transparent boxes extending rightward (lookback period adjustable)

5. Liquidity Grabs
- Detects clusters of equal highs/lows (default 3-bar lookback)
- Labels appear when price reverses after touching equal levels (classic stop-hunt / liquidity raid)

6. Discount / Premium Zones
- Equilibrium proxy = (H + L + C) / 3
- Discount: price below ~0.5% of equilibrium (green tint – buy bias area)
- Premium: price above ~0.5% of equilibrium (red tint – sell bias area)

Visual Customization
- Toggle each element independently (BOS, CHOCH, FVG, OB, Liquidity, Disc/Prem)
- Separate bullish/bearish colors + dedicated FVG/OB/Liquidity colors
- Max lines/labels set high (500) to handle longer histories

Alerts (built-in conditions)
- Bullish / Bearish BOS
- Bullish / Bearish CHOCH
- Bullish / Bearish FVG formation

How to Use
- Best on 5m–4h timeframes for forex, indices, crypto, gold (high-liquidity instruments)
- Typical SMC workflow example:
1. Look for CHOCH → potential trend reversal
2. Wait for BOS in new direction → structure confirmation
3. Seek entry at Order Block or FVG mitigation in discount/premium zone
4. Liquidity grabs near swing extremes often precede strong moves
- Combine with session times, news events, or higher-timeframe bias — never trade signals in isolation
- Adjust swingLen (3–10) for sensitivity: lower = more signals, higher = cleaner structure

Publishing Recommendation
- Publish with a clean chart (recommended: 15m–1h EURUSD, XAUUSD, BTCUSD, or NQ1!)
- Show a recent CHOCH → BOS → OB/FVG confluence sequence
- Remove all other indicators, drawings, and unnecessary gridlines

Always use discretion, proper risk management, and backtest thoroughly.

Feedback welcome — especially on FVG sensitivity or OB refinement ideas!

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.