OPEN-SOURCE SCRIPT

SMC Indicator

47
Title: Smart Money Concepts [SMC] Structure & ZigZag

Description: Master market structure with this precision Smart Money Concepts (SMC) tool. Unlike standard ZigZag indicators that repaint (change the past) as price moves, this indicator utilizes a robust, non-repainting detection engine to objectively map Swing Highs, Swing Lows, and structural breaks.

It is designed to help traders identify the true trend direction and spot critical reversal points without the confusion of disappearing signals.

How It Works:

1. Non-Repainting Pivots: The core of this indicator is a custom ZigZag algorithm that "locks in" Swing Highs (H) and Swing Lows (L) only after they are statistically confirmed by a user-defined deviation. Once a label appears, it stays there.

2. Break of Structure (BoS):

Signal: Trend Continuation.

Logic: Triggers when price breaks and closes past a confirmed pivot in the direction of the current trend.

Use Case: confirms the trend is healthy and identifies opportunities to join the move.

3. Change of Character (CHoCH):

Signal: Trend Reversal.

Logic: Triggers when price breaks a key pivot in the opposite direction of the current trend.

Use Case: Serves as an early warning signal that the trend may be ending or reversing.

4. The Ghost Line: A dotted line connects the last confirmed pivot to the current live price. This helps you visualize the developing leg of the structure before it is confirmed.

Visual Guide:

🔵 Blue Label: Bullish Break of Structure (BoS).

🔴 Maroon Label: Bearish Break of Structure (BoS).

🟢 Aqua Label: Bullish Change of Character (CHoCH).

🟠 Orange Label: Bearish Change of Character (CHoCH).

H / L: Confirmed Swing Highs and Lows.

Features:

Precision Tuning: "Deviation %" input supports values as low as 0.01 for scalping on 1-minute charts.

Smart Tooltips: Hover over settings to see recommended values for Daily, Hourly, and Minute timeframes.

Clean Visuals: Uses text-only labels to keep the chart clutter-free.

Alerts: Fully alert-enabled for Bullish/Bearish BoS and CHoCH signals.

Credits: This script is built upon classic Market Structure theory and Smart Money Concepts (SMC), optimized for real-time reliability.

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

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