OPEN-SOURCE SCRIPT
Mis à jour MTF Mirror Candles + SMT

MTF Mirror Candles + SMT displays higher-timeframe mirror candles directly on the chart, allowing traders to monitor broader market structure without changing timeframes.
The indicator includes customizable HTF mirror candles, candle countdown timer, adjustable spacing, candle colors, and automatic mapping between lower and higher timeframes.
It also includes an SMT divergence module designed to compare correlated markets such as MNQ/MES, EURUSD/GBPUSD, NAS100/US500, XAUUSD/XAGUSD, BTC/ETH, or custom pairs.
Main features:
• Higher-timeframe mirror candles
• HTF candle countdown timer
• Adjustable candle quantity, spacing, and visual style
• SMT bullish and bearish divergence detection
• Manual or automatic correlation mode
• Custom correlation pairs
• Clean SMT labels with monitored pair names
• Designed for multi-timeframe and correlation-based analysis
This indicator is intended as a visual analysis tool and does not provide financial advice or buy/sell signals.
The indicator includes customizable HTF mirror candles, candle countdown timer, adjustable spacing, candle colors, and automatic mapping between lower and higher timeframes.
It also includes an SMT divergence module designed to compare correlated markets such as MNQ/MES, EURUSD/GBPUSD, NAS100/US500, XAUUSD/XAGUSD, BTC/ETH, or custom pairs.
Main features:
• Higher-timeframe mirror candles
• HTF candle countdown timer
• Adjustable candle quantity, spacing, and visual style
• SMT bullish and bearish divergence detection
• Manual or automatic correlation mode
• Custom correlation pairs
• Clean SMT labels with monitored pair names
• Designed for multi-timeframe and correlation-based analysis
This indicator is intended as a visual analysis tool and does not provide financial advice or buy/sell signals.
Notes de version
Minor visual improvements and SMT display enhancements.Notes de version
Minor visual improvements and SMT display enhancements.Notes de version
Improved SMT detection logic with pivot tolerance, allowing clearer SMT divergences to be captured even when correlated pivots confirm a few candles apart.Notes de version
Updated SMT logic to Pivot Fast detection with improved correlated swing comparison and refined SMT label positioning.Notes de version
Improved SMT symbol matching to validate pairs by ticker name only, reducing dependency on broker/feed prefixes while avoiding false matches between similar symbols.Notes de version
Refined SMT label positioning with ATR-based offset for more consistent text placement across different symbols and timeframes.Notes de version
Refined SMT label positioning with ATR-based offset for more consistent text placement across different symbols and timeframes.Notes de version
Added temporary “forming SMT” lines in red.They show potential SMT setups before confirmation, can be limited from 0 to 5, disappear if invalidated, and convert to the regular SMT style once confirmed.
Notes de version
Added temporary “forming SMT” lines in red.They show potential SMT setups before confirmation, can be limited from 0 to 5, disappear if invalidated, and convert to the regular SMT style once confirmed.
Notes de version
Updated version released.This version includes improvements to the SMT in formation logic and the visual display of the True Day Open and Midnight Open levels.
SMT in formation has been refined to better represent a developing divergence before the original SMT confirmation occurs. The confirmed SMT logic remains unchanged and continues to follow the original pivot-based structure. A new display mode allows the user to choose between real-time SMT formation and SMT formation after candle close.
In real-time mode, the forming SMT line appears as soon as a valid divergence is detected and is displayed as a dashed red line while the current candle is still open. If the divergence remains valid after the candle closes, the line becomes solid. In after-close mode, the forming SMT line only appears once the candle has closed.
The True Day Open and Midnight Open display has also been improved. Both levels can now be shown automatically with separate color settings, adjustable line width, right-side extension, text visibility, and the number of previous days to display. The labels are now positioned in front of the line, creating a cleaner and more readable chart layout.
The confirmed SMT markings remain unchanged from the original version.
Notes de version
Improved forming SMT validation to reduce false signals. Confirmed SMT logic unchanged.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.