OPEN-SOURCE SCRIPT
SuperTrend with 3 Inputs Satish

Why 3 Supertrends?
Short-term Supertrend (7, 1, 3) → reacts quickly, catches early trend changes but can give more false signals.
Medium-term Supertrend (14, 1, 2) → smoother, filters out noise.
Long-term Supertrend (21, 1, 3) → confirms major trend direction, fewer whipsaws.
How it Works
Trend Reversal Detection
If all three flip in the same direction → strong confirmation of trend change.
If only the short-term flips but others don’t → possible false signal, wait for confirmation.
Entry Signal Example
Buy when all three turn green (Supertrend below price).
Sell/short when all three turn red (Supertrend above price).
Exit / Partial Profit
Exit when the shortest one (7, 1, 3) flips against your position — protects profits in choppy markets.
TradingView Setup
You can do this by:
Adding Supertrend three times.
Setting their (Period, Multiplier, ATR Type) to:
ST1: 7, 1, 3
ST2: 14, 1, 2
ST3: 21, 1, 3
Use different colors or line styles for each so you can spot alignment quickly.
Short-term Supertrend (7, 1, 3) → reacts quickly, catches early trend changes but can give more false signals.
Medium-term Supertrend (14, 1, 2) → smoother, filters out noise.
Long-term Supertrend (21, 1, 3) → confirms major trend direction, fewer whipsaws.
How it Works
Trend Reversal Detection
If all three flip in the same direction → strong confirmation of trend change.
If only the short-term flips but others don’t → possible false signal, wait for confirmation.
Entry Signal Example
Buy when all three turn green (Supertrend below price).
Sell/short when all three turn red (Supertrend above price).
Exit / Partial Profit
Exit when the shortest one (7, 1, 3) flips against your position — protects profits in choppy markets.
TradingView Setup
You can do this by:
Adding Supertrend three times.
Setting their (Period, Multiplier, ATR Type) to:
ST1: 7, 1, 3
ST2: 14, 1, 2
ST3: 21, 1, 3
Use different colors or line styles for each so you can spot alignment quickly.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.