J.Dow

Double SuperTrend ATR

Double Super Trend ATR
Hilangkan dari Skrip-Skrip Favorit Tambahkan ke Skrip-Skrip Favorit
//Crée par J.Dow
//Double SuperTrend ATR, Le type ATR calcule la volatilité à partir de l'Average True Range (ATR), il est idéal pour le FOREX

study(title = "Double SuperTrend ATR", shorttitle = "Double SuperTrend ATR", overlay = true)

//Mode
Factor=input(title="Super Trend", defval=3, minval=1,maxval = 100)
ATR=input(title="ATR", defval=12, minval=1,maxval = 100)


//Super Trend ATR 1
Up=hl2-(Factor*atr(ATR))
Dn=hl2+(Factor*atr(ATR))

TUp=close[1]>TUp[1]? max(Up,TUp[1]) : Up
TDown=close[1]<TDown[1]? min(Dn,TDown[1]) : Dn

Trend = close > TDown[1] ? 1: close< TUp[1]? -1: nz(Trend[1],1)

Tsl1 = Trend==1? TUp: TDown
Tsl2 = Trend==1? TDown: TUp

linecolor = Trend == 1 ? green : red

//Affichage
P1 = plot(Tsl1, color = linecolor , style = line , linewidth = 1,title = "SuperTrend ATR-1")
P2 = plot(Tsl2, color = linecolor , style = line , linewidth = 1,title = "SuperTrend ATR-2")
fill(P1, P2, color = linecolor == red ? red : green)
Hey I just found about this indicator. Is it possible to alert me when it changes from green to red?
Thank you
+3 Jawab
Blopa Mauritcoin
@Mauritcoin, Yes. It is possible adding an "alertcondition" in the code. So you will have the condition that you want to set the alarm. But you will need to understand the code.
Jawab
I like this indicator a lot. Do you know how I could screen for trend changes on a website such as stock fetcher? Is the ATR breaking above a certain point when the trend turns from red to green/green to red?
+12 Jawab
Beranda Penyaring Saham Penyaring Forex Penyaring Crypto Kalender Ekonomi Bagaimana Cara Kerjanya Fitur-Fitur Chart Harga Akun Tata Tertib Moderator Solusi Website & Broker Widget-Widget Solusi Charting Dapatkan Bantuan Permintaan Fitur Blog & Berita Yang Sering di Tanyakan Wiki Twitter
Profil Pengaturan Profil Akun dan Penagihan Dapatkan Bantuan Ide Terpublikasikan Pengikut Telah Mengikuti Pesan Pribadi Obrolan Keluar