OPEN-SOURCE SCRIPT
Обновлено

SMC Precision Master

1 303
# SMC Precision Master - Professional Smart Money Analysis

## Overview

SMC Precision Master combines Smart Money Concepts (SMC) methodology with institutional trading tools to create a multi-factor confluence system for discretionary trading. This indicator integrates Order Blocks, Fair Value Gaps, Premium/Discount zones, Market Structure, Ichimoku Cloud, Fibonacci retracements, and Previous Day levels into a unified analytical framework.

---

## Why This Combination? (Mashup Justification)

**The Problem with Single Indicators:**
- Order Blocks alone may trigger in Premium zones (low probability buy zones)
- Fair Value Gaps without supply/demand context lack directional bias
- Premium/Discount zones alone don't provide precise entry levels
- Market Structure can break repeatedly in ranging conditions

**The Solution - Multi-Factor Confluence:**
This mashup creates a **filtering system** where multiple independent factors must align before highlighting high-probability setups. Each component validates the others:

1. **Market Structure** (BOS/MSS/CHoCH) → Determines allowed trade direction
2. **Premium/Discount Zones** → Validates institutional buy/sell context
3. **Order Blocks + FVG** → Identifies precise entry zones with overlap
4. **Fibonacci OTE** → Targets the 61.8-78.6% optimal entry range
5. **Ichimoku Cloud** → Confirms higher timeframe trend alignment
6. **Previous Day Levels** → Adds ICT reference points for bias

**Result:** The indicator only shows high-confluence setups where 3-5 factors simultaneously confirm, significantly reducing false signals compared to using components separately.

---

## How It Works - Technical Methodology

### Order Block Detection (3-Criteria System)

**Criterion 1 - Pattern:**
- Bullish OB: Bearish candle (close < open) before upward impulse
- Bearish OB: Bullish candle (close > open) before downward impulse

**Criterion 2 - Impulse Validation:**
- Standard Mode: Impulse high > OB high (bullish) or low < OB low (bearish)
- Strict Mode: Impulse must fully engulf OB candle

**Criterion 3 - Volatility Filter:**
Displacement = |Impulse Close - OB extremity|
Minimum Required = ATR(14) × Multiplier (default 0.5)
Valid if: Displacement ≥ Minimum


**Mitigation:** OBs tracked until price reaches 50% midpoint (Close or Wick-based).

---

### Fair Value Gap Calculation

**Detection Logic:**
Bullish FVG:

Gap = Current Low - High


Valid if: Gap > ATR(14) × 0.3 AND no candle overlap

Bearish FVG:

Gap = Low - Current High


Valid if: Gap > ATR(14) × 0.3 AND no candle overlap


**Visualization:** 13 layered boxes per FVG to emphasize liquidity void depth.

**Mitigation:** FVG removed when price fully crosses the gap zone.

---

### Premium/Discount Zones

**Calculation:**
Range Source (configurable):

Daily: request.security("D", high/low)

Weekly: request.security("W", high/low)

Monthly: request.security("M", high/low)

Trailing: Updates on each BOS

5-Zone Fibonacci Mode:

Strong Premium: 78.6% - 100%

Premium: 61.8% - 78.6% (OTE zone)

Equilibrium: 38.2% - 61.8%

Discount: 23.6% - 38.2%

Strong Discount: 0% - 23.6%


**Purpose:** Institutional context - buy in Discount, sell in Premium.

---

### Market Structure (BOS/MSS/CHoCH)

**Logic:**
Swing Detection: ta.pivothigh/pivotlow with adjustable length (default 10)

BOS (Break of Structure):

Price breaks last swing high in uptrend = continuation

Price breaks last swing low in downtrend = continuation

MSS (Market Structure Shift):

BOS occurs opposite to current trend = reversal signal

CHoCH (Change of Character):

Price touches but doesn't break previous swing = early warning


---

### Ichimoku Cloud (Multi-Timeframe)

**Calculation:**
Tenkan = (9-high + 9-low) / 2
Kijun = (26-high + 26-low) / 2
Senkou A = (Tenkan + Kijun) / 2
Senkou B = (52-high + 52-low) / 2

MTF: request.security() for higher timeframe if specified
Cloud color: Green if Senkou A ≥ B, Red otherwise


**Filter:** Price above cloud = bullish, below = bearish, in cloud = neutral.

---

### Fibonacci Auto-Retracement

**Method:**
SwingHigh = ta.highest(high, 80)
SwingLow = ta.lowest(low, 80)
Range = SwingHigh - SwingLow

Levels: 0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%
OTE Zone Box: 61.8% - 78.6% projected forward


---

### Previous Day Levels (ICT)

**Calculation:**
PDH = request.security("D", high, lookahead=on)

PDL = request.security("D", low, lookahead=on)

PDM = (PDH + PDL) / 2

Daily Bias:

Close > PDM = Bullish

Close < PDM = Bearish

Break PDH/PDL = Strong bias confirmation

---

## Dashboard - Real-Time Confluence Tracking

Displays current market state:
- **Trend:** Current structure (Bullish/Bearish/Neutral)
- **HTF Bias:** Higher timeframe direction
- **OB:** Active Order Block status
- **FVG:** Active Fair Value Gap status
- **OB+FVG:** Confluence confirmation (✓ = overlap)
- **P/D Zone:** Current Premium/Discount position
- **Fib OTE:** Inside 61.8-78.6% zone or not
- **Daily Bias:** ICT daily directional bias
- **RSI(14):** Oversold/Neutral/Overbought
- **Ichimoku:** Price position vs cloud

---

## How to Use

### Trading Workflow

**1. Market Context (Dashboard Check)**
- Identify trend direction (Trend + HTF Bias)
- Check Premium/Discount position
- Verify daily bias alignment

**2. Zone Identification**
- Locate active Order Blocks matching trend
- Check for FVG overlap (OB+FVG = ✓)
- Verify zone is in correct P/D area (LONG = Discount, SHORT = Premium)

**3. Entry Confirmation**
- Price enters identified OB zone
- Preferably within Fibonacci OTE zone
- Ichimoku cloud alignment (if enabled)
- Structure break in entry direction

**4. Risk Management**
- Stop: Outside OB zone + buffer
- Target: Opposite P/D zone or next OB
- Risk: 1-2% per trade maximum

---

## Settings Adjustment by Timeframe

**M1-M5 Scalping:**
- Swing Length: 5-7
- OB Filter: ATR 0.3x
- P/D Mode: Daily Range

**M15-H1 Day Trading:**
- Swing Length: 10 (default)
- OB Filter: ATR 0.5x (default)
- P/D Mode: Daily Range

**H4-D1 Swing Trading:**
- Swing Length: 15-20
- OB Filter: ATR 0.7-1.0x
- P/D Mode: Weekly/Monthly Range

---

## Key Features

✅ Anti-repaint: All signals confirmed on bar close
✅ Configurable filters: ATR/CMR for OB validation
✅ Multi-mode P/D: Daily/Weekly/Monthly/Trailing
✅ MTF Ichimoku: Use higher timeframe cloud on lower TF
✅ Complete alerts: BOS, OB formation, CHoCH
✅ Memory management: Auto-cleanup of old zones

---

## Important Notes

- This is an analytical tool, not a signal generator
- Requires understanding of SMC concepts
- Always use proper risk management
- Backtest before live trading
- No indicator guarantees profits

---

## Technical Specifications

- Pine Script™ v6
- Overlay: Yes
- Max Boxes: 500 | Max Lines: 150 | Max Labels: 150
- Repainting: No (barstate.isconfirmed)

---

© 2025-2026

снимок
Информация о релизе
MAJ V

Отказ от ответственности

Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.