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.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.