Supertrend Multi Time Frame - Auto HTF calculation

There is already SuperTrend indicator and thanks to its developer.

This script draws supertrend for current and higher time frame, it automatically calculates higher time frame and you don't need to adjust it when you change the period.

it also change the color of bars according to current and HTF supertrend, so you can see the trend by looking at bars color.

Bar color is lime if trend is up and red if trend is down. but if you see white bars then there is movement opposite the main trend.

if you like it please comment.

Sürüm Notları: Added Alert for Buy/Sell Signals.
Sürüm Notları: Upgraded to Pine v4
Sürüm Notları: Repaint issue fixed
Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuyla, bu komut dosyasının yazarı açık kaynak olarak yayınladı, böylece yatırımcılar bunu anlayabilir ve doğrulayabilir. Yazara tebrikler! Ücretsiz olarak kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Kullanım Koşulları tarafından belirlenmektedir. Bir grafikte kullanmak için favorilerinize ekleyebilirsiniz.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?


you better use this one:
+28 Cevap Gönder
Great work.
But there is small problem about alert and repaint.
1. Once signal is plotted, and after few bars it's changed. It disappeared.
2. Sometimes the signal is plotted at previous few bars, so the alert does not work.
Could you please check & fix it?
+19 Cevap Gönder
@yeoyou, because it has repaint issue. I am writing new one without repaint issue
+11 Cevap Gönder
Om_Pattanaik LonesomeTheBlue
@LonesomeTheBlue, plz provide the ink for the NON-REPAINT VERSION OF THIS INDICATOR
+6 Cevap Gönder
Link was updated:
+11 Cevap Gönder
Any video posted on this about guidance
+6 Cevap Gönder
Can you create No-repaint version of this indicator??
I like the candle's coloring based on signals, that is not available in your new no-repaint indicator.
+5 Cevap Gönder
This works well, the ease of visuals and auto features in a simple form. Thanks
+5 Cevap Gönder
HI LonesomeTheBlue

Sorry if i dont understand, i am pretty new here, but if i understand this correctly: If i have a 5 minute chart, it calculates all other supertrends that is higher than that? 15 min, 30 min, 45 min, 1 hour, 2 hour, 3 hour, 4 hour, 1 day and son on. I think you know what i mean:) Or does it only calculate one time frame that is higer then that the one i am currently standing on? For example if i have a 4 hour chart it only calculates 1 day supertrend also? If i have a 5 minute chart on my chart and it calculates all the higher time frames then i should always use 5 minute chart right? And see the supertrend there.

Thanks in advance,

+2 Cevap Gönder
new version without repaint issue
+2 Cevap Gönder