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.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.