borsacı selim Al-Sat Noktalarıpinescript
//@version=5
indicator("Al-Sat Noktaları", overlay=true)
// Zaman dilimi seçimi
timeframe = input.timeframe("D", title="Zaman Dilimi Seçimi")
// Hareketli Ortalama
length = input(14, title="Hareketli Ortalama Süresi")
ma = ta.sma(request.security(syminfo.tickerid, timeframe, close), length)
// Al-Sat Sinyalleri
longCondition = ta.crossover(request.security(syminfo.tickerid, timeframe, close), ma)
shortCondition = ta.crossunder(request.security(syminfo.tickerid, timeframe, close), ma)
// Al-Sat Noktalarını Göster
plotshape(longCondition, style=shape.labelup, location=location.belowbar, color=color.green, size=size.small, text="AL")
plotshape(shortCondition, style=shape.labeldown, location=location.abovebar, color=color.red, size=size.small, text="SAT")
// Hareketli Ortalamayı Göster
plot(ma, color=color.blue, title="Hareketli Ortalama")