OPEN-SOURCE SCRIPT
已更新 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.
版本注释
Minor visual improvements and SMT display enhancements.版本注释
Minor visual improvements and SMT display enhancements.版本注释
Improved SMT detection logic with pivot tolerance, allowing clearer SMT divergences to be captured even when correlated pivots confirm a few candles apart.版本注释
Updated SMT logic to Pivot Fast detection with improved correlated swing comparison and refined SMT label positioning.版本注释
Improved SMT symbol matching to validate pairs by ticker name only, reducing dependency on broker/feed prefixes while avoiding false matches between similar symbols.版本注释
Refined SMT label positioning with ATR-based offset for more consistent text placement across different symbols and timeframes.版本注释
Refined SMT label positioning with ATR-based offset for more consistent text placement across different symbols and timeframes.版本注释
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.
版本注释
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.
版本注释
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.
版本注释
Improved forming SMT validation to reduce false signals. Confirmed SMT logic unchanged.开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。