OPEN-SOURCE SCRIPT
[ICT] [SMC] True Market Structure [TDT]

Introduction
The [ICT] [SMC] True Market Structure [TDT] indicator is designed to help Smart Money Concepts (SMC) and ICT traders visualize the "True" mechanical structure of the market. Unlike standard ZigZag indicators that often repaint or react to minor noise, this script utilizes a strict Fractal Swing algorithm to identify valid Highs and Lows.
It automatically maps out the market trend by distinguishing between BOS (Break of Structure) for trend continuation and CHoCH (Change of Character) for trend reversals, while highlighting the "Protected" or "Strong" structural points.
How It Works
The indicator relies on a generic fractal calculation (Swing High/Low) determined by the user-defined length.
Key Features
Settings Guide
How to Use (Trading Strategy)
Disclaimer
This tool is for educational purposes and market analysis only. It does not provide financial advice or guarantee future results. Always manage your risk.
The [ICT] [SMC] True Market Structure [TDT] indicator is designed to help Smart Money Concepts (SMC) and ICT traders visualize the "True" mechanical structure of the market. Unlike standard ZigZag indicators that often repaint or react to minor noise, this script utilizes a strict Fractal Swing algorithm to identify valid Highs and Lows.
It automatically maps out the market trend by distinguishing between BOS (Break of Structure) for trend continuation and CHoCH (Change of Character) for trend reversals, while highlighting the "Protected" or "Strong" structural points.
How It Works
The indicator relies on a generic fractal calculation (Swing High/Low) determined by the user-defined length.
- Trend Identification: The script tracks a state machine (Bullish/Bearish).
- Weak Structure (Target): In a bullish trend, the recent High is the "Weak High" (the target to break).
- Strong Structure (Protected): The Low responsible for breaking the High becomes the "Strong Low."
- BOS vs. CHoCH:
- BOS: When price breaks a Weak High (in an uptrend), it confirms continuation.
- CHoCH: When price breaks a Strong Low (in an uptrend), it signals a potential reversal.
Key Features
- True Fractal Detection: Uses a centered lookback period (Input: Swing Fractal Length) to find significant pivot points.
- Confirmation Modes: Choose between candle Close (more conservative, filters wicks) or High/Low (more aggressive) for structure breaks.
- Structure Mapping:
- Solid Lines: Represent BOS (Trend Continuation).
- Dashed Lines: Represent CHoCH (Trend Reversal).
- Origin Dots (Protected Levels):
- These dots mark the exact swing point that caused the break.
- Usage: In an uptrend, the dot marks the Strong Low. If price closes below this dot, the trend flips.
Settings Guide
- Swing Fractal Length: The lookback period to define a Swing High/Low.
- Default: 3 (Standard ICT Intermediate Term High/Low).
- Increase this number to see higher timeframe structure (e.g., set to 10-20 for major swings).
- Break Confirmation:
- Close: Price body must close beyond the structure level to confirm a break.
- High/Low: A wick breaking the level is sufficient.
- Visuals: Toggle lines and dots on/off and customize colors to fit your chart theme.
How to Use (Trading Strategy)
- Trend Following: Wait for a BOS (Solid Line). Identify the Origin Dot created by that move. This is your "Protected Low/High." Look for entries (FVG/Order Blocks) between the current price and that Dot.
- Reversal Trading: Watch for a CHoCH (Dashed Line). This indicates the "Strong Structure" has failed, and the bias has shifted.
- Stop Placement: The Origin Dots serve as excellent invalidation points for Stop Losses.
Disclaimer
This tool is for educational purposes and market analysis only. It does not provide financial advice or guarantee future results. Always manage your risk.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.