OPEN-SOURCE SCRIPT
CRT+SMT

📊 Multi-Timeframe Key Levels + SMT Divergence Indicator
【Core Features】
This indicator displays horizontal ray lines of key high/low levels from multiple timeframes on the left side of the chart, helping traders quickly identify critical support and resistance levels. It also automatically detects SMT (Smart Money Technique) divergences between Gold and Silver.
【Displayed Timeframes】
• PWH/PWL - Previous Week High/Low
• PDH/PDL - Previous Day High/Low
• 4HH/4HL - Previous 4-Hour High/Low
• 1HH/1HL - Previous 1-Hour High/Low
【SMT Divergence Detection】
When Gold (XAUUSD) breaks the previous 1-hour high/low while Silver (XAGUSD) fails to follow, SMT divergence signals are automatically marked on the chart:
• 🔴 SMT High Divergence - Gold breaks previous high, Silver does not follow → Potential bearish signal
• 🔵 SMT Low Divergence - Gold breaks previous low, Silver does not follow → Potential bullish signal
【Customization Options】
✅ Independent on/off toggle for each timeframe
✅ Customizable colors and line widths for each period
✅ Adjustable SMT label sizes (Tiny/Small/Normal/Large)
✅ Adjustable left-side ray starting offset
✅ Real-time status table showing Gold/Silver breakout states in the bottom right corner
【Use Cases】
• Day trading and swing trading
• Key support/resistance level identification
• Gold and Silver correlation analysis
• SMT divergence trading strategy
【Recommended Instruments】
Gold (XAUUSD) as primary chart, Silver (XAGUSD) as comparison symbol
【Notes】
• Recommended for use on 15-minute or 1-hour charts
• SMT comparison symbol can be modified in settings
• Previous week/day levels are disabled by default, can be enabled as needed
【Core Features】
This indicator displays horizontal ray lines of key high/low levels from multiple timeframes on the left side of the chart, helping traders quickly identify critical support and resistance levels. It also automatically detects SMT (Smart Money Technique) divergences between Gold and Silver.
【Displayed Timeframes】
• PWH/PWL - Previous Week High/Low
• PDH/PDL - Previous Day High/Low
• 4HH/4HL - Previous 4-Hour High/Low
• 1HH/1HL - Previous 1-Hour High/Low
【SMT Divergence Detection】
When Gold (XAUUSD) breaks the previous 1-hour high/low while Silver (XAGUSD) fails to follow, SMT divergence signals are automatically marked on the chart:
• 🔴 SMT High Divergence - Gold breaks previous high, Silver does not follow → Potential bearish signal
• 🔵 SMT Low Divergence - Gold breaks previous low, Silver does not follow → Potential bullish signal
【Customization Options】
✅ Independent on/off toggle for each timeframe
✅ Customizable colors and line widths for each period
✅ Adjustable SMT label sizes (Tiny/Small/Normal/Large)
✅ Adjustable left-side ray starting offset
✅ Real-time status table showing Gold/Silver breakout states in the bottom right corner
【Use Cases】
• Day trading and swing trading
• Key support/resistance level identification
• Gold and Silver correlation analysis
• SMT divergence trading strategy
【Recommended Instruments】
Gold (XAUUSD) as primary chart, Silver (XAGUSD) as comparison symbol
【Notes】
• Recommended for use on 15-minute or 1-hour charts
• SMT comparison symbol can be modified in settings
• Previous week/day levels are disabled by default, can be enabled as needed
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.