Untitled
unknown
plain_text
a year ago
3.0 kB
15
Indexable
//@version=5 indicator("Arkadas", shorttitle="senkron24", overlay=true) // Sabit uzunluklar ma_length1 = 8 ma_length2 = 9 ma_length3 = 5 ma_length4 = 13 ma_length5 = 34 ma_length6 = 50 ma_length7 = 72 ma_length8 = 89 ma_length9 = 180 ma_length10 = 200 f_ma(malen) => ta.ema(close, malen) htf_ma1 = f_ma(ma_length1) htf_ma2 = f_ma(ma_length2) htf_ma3 = f_ma(ma_length3) htf_ma4 = f_ma(ma_length4) htf_ma5 = f_ma(ma_length5) htf_ma6 = f_ma(ma_length6) htf_ma7 = f_ma(ma_length7) htf_ma8 = f_ma(ma_length8) htf_ma9 = f_ma(ma_length9) htf_ma10 = f_ma(ma_length10) // Bulut Renkleri cloud_color1 = htf_ma1 >= htf_ma2 ? color.green : color.red cloud_color2 = htf_ma3 >= htf_ma4 ? color.green : color.red cloud_color3 = htf_ma5 >= htf_ma6 ? color.green : color.red cloud_color4 = htf_ma7 >= htf_ma8 ? color.green : color.red cloud_color5 = htf_ma9 >= htf_ma10 ? color.green : color.red // EMA çizgilerini ve bulutları çizme plot1 = plot(htf_ma1, color=color.blue, title='EMA 8') plot2 = plot(htf_ma2, color=color.red, title='EMA 9') plot3 = plot(htf_ma3, color=color.green, title='EMA 5') plot4 = plot(htf_ma4, color=color.orange, title='EMA 13') plot5 = plot(htf_ma5, color=color.purple, title='EMA 34') plot6 = plot(htf_ma6, color=color.yellow, title='EMA 50') plot7 = plot(htf_ma7, color=color.gray, title='EMA 72') plot8 = plot(htf_ma8, color=color.teal, title='EMA 89') plot9 = plot(htf_ma9, color=color.fuchsia, title='EMA 180') plot10 = plot(htf_ma10, color=color.olive, title='EMA 200') // Bulutları Renklendirme fill(plot3, plot5, color=cloud_color2, transp=70, title='Cloud 1') fill(plot5, plot7, color=cloud_color4, transp=70, title='Cloud 2') fill(plot7, plot9, color=cloud_color5, transp=70, title='Cloud 3') // Sinyalleri Hesaplama bull_signal1 = ta.crossover(htf_ma4, htf_ma6) bear_signal1 = ta.crossunder(htf_ma4, htf_ma6) bull_signal2 = ta.crossover(htf_ma3, htf_ma5) bear_signal2 = ta.crossunder(htf_ma3, htf_ma5) cloud2_avg = math.avg(htf_ma3, htf_ma4) cloud3_avg = math.avg(htf_ma5, htf_ma6) bull_signal3 = ta.crossover(cloud2_avg, cloud3_avg) bear_signal3 = ta.crossunder(cloud2_avg, cloud3_avg) // Sinyalleri Çizme plotshape(bull_signal1, color=color.green, style=shape.triangleup, size=size.small, location=location.belowbar, title='Bull Signal1') plotshape(bear_signal1, color=color.red, style=shape.triangledown, size=size.small, location=location.abovebar, title='Bear Signal1') plotshape(bull_signal2, color=color.green, style=shape.triangleup, size=size.small, location=location.belowbar, title='Bull Signal2') plotshape(bear_signal2, color=color.red, style=shape.triangledown, size=size.small, location=location.abovebar, title='Bear Signal2') plotshape(bull_signal3, color=color.green, style=shape.triangleup, size=size.small, location=location.belowbar, title='Bull Signal3') plotshape(bear_signal3, color=color.red, style=shape.triangledown, size=size.small, location=location.abovebar, title='Bear Signal3')
Editor is loading...
Leave a Comment