PROTECTED SOURCE SCRIPT
[X342] Structure & Entry

[X342] Structure & Entry — SMC Toolkit
OVERVIEW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Structure & Entry is a Smart Money Concepts (SMC) indicator that identifies market structure, order blocks, and optimal trade entry zones based on institutional trading principles.
METHODOLOGY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The indicator implements core ICT/SMC concepts:
1. Market Structure Analysis
- Swing High/Low detection using pivot logic
- Market Structure Break (MSB) identification
- Bullish MSB: Price breaks above previous swing high
- Bearish MSB: Price breaks below previous swing low
- Tracks current market bias (bullish/bearish)
2. Order Block Detection
- Bullish OB: Last bearish candle before bullish MSB
- Bearish OB: Last bullish candle before bearish MSB
- Order blocks represent institutional entry zones
- Auto-extends to current bar
- Removed when mitigated (price passes through)
3. Optimal Trade Entry (OTE)
- Fibonacci retracement zone (0.618-0.786)
- Calculated from last swing high to swing low
- Adjusts direction based on current bias
- Premium zone for entry in direction of bias
WHY SMC?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Smart Money Concepts focus on identifying where institutions are likely to enter the market. Order blocks and OTE zones represent high-probability areas where large players accumulate or distribute positions.
FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ Dual language support (English / Türkçe)
✓ Auto MSB detection and labeling
✓ Dynamic Order Block zones
✓ OTE Fibonacci zones
✓ Mitigation tracking (Wick or Close)
✓ Market bias panel
✓ Comprehensive alerts
VISUAL ELEMENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Swing Points: Small circles at pivot highs/lows
• MSB Labels: "MSB ↑" or "MSB ↓" at structure breaks
• Order Blocks: Colored boxes at detected OB zones
- Green boxes: Bullish OBs (demand zones)
- Red boxes: Bearish OBs (supply zones)
• OTE Zone: Purple dashed box at Fibonacci retracement
SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Structure:
- Swing Length: Bars for pivot detection (default: 5)
- Show MSB: Toggle structure break labels
- Show Swing Points: Toggle pivot markers
Order Block:
- Show Order Blocks: Toggle OB zones
- OB Lookback: Bars to search for OB candle (default: 10)
- Max OB Count: Maximum active OBs (default: 5)
- Mitigation Type: Wick or Close-based removal
OTE:
- Show OTE Zone: Toggle Fibonacci zone
- OTE Upper: Upper boundary (default: 0.786)
- OTE Lower: Lower boundary (default: 0.618)
INFO PANEL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Displays:
- Current market bias (BULL/BEAR)
- Last MSB price level
- Active Order Block count
ALERTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Bullish MSB: Structure break to the upside
• Bearish MSB: Structure break to the downside
• Bullish OB Formed: New demand zone created
• Bearish OB Formed: New supply zone created
TRADING APPLICATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Wait for MSB to confirm direction
2. Look for price to retrace to OTE zone
3. Enter when price reacts at Order Block within OTE
4. Place stop beyond the Order Block
5. Target: Previous swing high/low or liquidity levels
BEST PRACTICES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Use higher timeframe for bias, lower for entry
- Fresh (untested) Order Blocks are stronger
- OTE + OB confluence = high probability setup
- Combine with Liquidity Hunter for targets
- Respect the current bias until new MSB
OVERVIEW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Structure & Entry is a Smart Money Concepts (SMC) indicator that identifies market structure, order blocks, and optimal trade entry zones based on institutional trading principles.
METHODOLOGY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The indicator implements core ICT/SMC concepts:
1. Market Structure Analysis
- Swing High/Low detection using pivot logic
- Market Structure Break (MSB) identification
- Bullish MSB: Price breaks above previous swing high
- Bearish MSB: Price breaks below previous swing low
- Tracks current market bias (bullish/bearish)
2. Order Block Detection
- Bullish OB: Last bearish candle before bullish MSB
- Bearish OB: Last bullish candle before bearish MSB
- Order blocks represent institutional entry zones
- Auto-extends to current bar
- Removed when mitigated (price passes through)
3. Optimal Trade Entry (OTE)
- Fibonacci retracement zone (0.618-0.786)
- Calculated from last swing high to swing low
- Adjusts direction based on current bias
- Premium zone for entry in direction of bias
WHY SMC?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Smart Money Concepts focus on identifying where institutions are likely to enter the market. Order blocks and OTE zones represent high-probability areas where large players accumulate or distribute positions.
FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ Dual language support (English / Türkçe)
✓ Auto MSB detection and labeling
✓ Dynamic Order Block zones
✓ OTE Fibonacci zones
✓ Mitigation tracking (Wick or Close)
✓ Market bias panel
✓ Comprehensive alerts
VISUAL ELEMENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Swing Points: Small circles at pivot highs/lows
• MSB Labels: "MSB ↑" or "MSB ↓" at structure breaks
• Order Blocks: Colored boxes at detected OB zones
- Green boxes: Bullish OBs (demand zones)
- Red boxes: Bearish OBs (supply zones)
• OTE Zone: Purple dashed box at Fibonacci retracement
SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Structure:
- Swing Length: Bars for pivot detection (default: 5)
- Show MSB: Toggle structure break labels
- Show Swing Points: Toggle pivot markers
Order Block:
- Show Order Blocks: Toggle OB zones
- OB Lookback: Bars to search for OB candle (default: 10)
- Max OB Count: Maximum active OBs (default: 5)
- Mitigation Type: Wick or Close-based removal
OTE:
- Show OTE Zone: Toggle Fibonacci zone
- OTE Upper: Upper boundary (default: 0.786)
- OTE Lower: Lower boundary (default: 0.618)
INFO PANEL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Displays:
- Current market bias (BULL/BEAR)
- Last MSB price level
- Active Order Block count
ALERTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Bullish MSB: Structure break to the upside
• Bearish MSB: Structure break to the downside
• Bullish OB Formed: New demand zone created
• Bearish OB Formed: New supply zone created
TRADING APPLICATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Wait for MSB to confirm direction
2. Look for price to retrace to OTE zone
3. Enter when price reacts at Order Block within OTE
4. Place stop beyond the Order Block
5. Target: Previous swing high/low or liquidity levels
BEST PRACTICES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Use higher timeframe for bias, lower for entry
- Fresh (untested) Order Blocks are stronger
- OTE + OB confluence = high probability setup
- Combine with Liquidity Hunter for targets
- Respect the current bias until new MSB
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由使用,沒有任何限制 — 點擊此處了解更多。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由使用,沒有任何限制 — 點擊此處了解更多。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。