OPEN-SOURCE SCRIPT
SuperTrend + 50/200 SMA By Vicky Mehta

Supertrend + Dual Supertrend + 50/200 SMA
This indicator combines two Supertrend indicators with 50 SMA and 200 SMA to help identify trend direction, momentum, and long-term market structure.
Features
• Supertrend (2,2) – Fast trend detection for early trend changes.
• Supertrend (7,3) – Slower trend confirmation to filter market noise.
• Individual On/Off toggle for each Supertrend.
• Automatic BUY and SELL labels based on the primary Supertrend reversal.
• 50 SMA for intermediate trend direction.
• 200 SMA for long-term trend identification.
• Golden Cross and Death Cross signals.
• Optional trend background coloring.
• Built-in TradingView alerts for:
Supertrend BUY
Supertrend SELL
Golden Cross
Death Cross
Typical Usage
Use the (2,2) Supertrend for quicker entries and exits.
Use the (7,3) Supertrend as a higher-confidence trend filter.
When both Supertrends align in the same direction, the trend is generally stronger.
Use the 50 SMA and 200 SMA to identify the broader market trend and key support/resistance areas.
Default Settings
Supertrend 1: ATR Length = 2, Multiplier = 2
Supertrend 2: ATR Length = 7, Multiplier = 3
SMA 50
SMA 200
Disclaimer
This indicator is intended for educational and analytical purposes only. It does not provide investment advice or guarantee trading outcomes. Always validate signals using your own trading plan, risk management rules, and additional market analysis before making any trading decisions.
This indicator combines two Supertrend indicators with 50 SMA and 200 SMA to help identify trend direction, momentum, and long-term market structure.
Features
• Supertrend (2,2) – Fast trend detection for early trend changes.
• Supertrend (7,3) – Slower trend confirmation to filter market noise.
• Individual On/Off toggle for each Supertrend.
• Automatic BUY and SELL labels based on the primary Supertrend reversal.
• 50 SMA for intermediate trend direction.
• 200 SMA for long-term trend identification.
• Golden Cross and Death Cross signals.
• Optional trend background coloring.
• Built-in TradingView alerts for:
Supertrend BUY
Supertrend SELL
Golden Cross
Death Cross
Typical Usage
Use the (2,2) Supertrend for quicker entries and exits.
Use the (7,3) Supertrend as a higher-confidence trend filter.
When both Supertrends align in the same direction, the trend is generally stronger.
Use the 50 SMA and 200 SMA to identify the broader market trend and key support/resistance areas.
Default Settings
Supertrend 1: ATR Length = 2, Multiplier = 2
Supertrend 2: ATR Length = 7, Multiplier = 3
SMA 50
SMA 200
Disclaimer
This indicator is intended for educational and analytical purposes only. It does not provide investment advice or guarantee trading outcomes. Always validate signals using your own trading plan, risk management rules, and additional market analysis before making any trading decisions.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.