OPEN-SOURCE SCRIPT

viper-trade Al/Sat Sinyalleri - Heikin Ashi Hakan Dicel

//version=5
indicator("Güncel Al/Sat Sinyalleri - Heikin Ashi", overlay=true)

// Heikin Ashi Mumlarının Hesaplanması
var float ha_open = na
ha_close = (open + high + low + close) / 4
ha_open := na(ha_open[1]) ? (open + close) / 2 : (ha_open[1] + ha_close[1]) / 2
ha_high = math.max(high, math.max(ha_open, ha_close))
ha_low = math.min(low, math.min(ha_open, ha_close))

// Parametreler
length = input.int(14, title="Hareketli Ortalama Periyodu")
source = ha_close // Heikin Ashi kapanış fiyatını kullanıyoruz

// Hareketli Ortalama Hesaplama
sma_line = ta.sma(source, length)

// Al/Sat Şartları
buy_signal = ta.crossover(source, sma_line) // Fiyat SMA'yı yukarı keserse al
sell_signal = ta.crossunder(source, sma_line) // Fiyat SMA'yı aşağı keserse sat

// Alarmlar için Şartlar
alertcondition(buy_signal, title="AL Sinyali", message="AL Sinyali Geldi! Fiyat: {{close}}")
alertcondition(sell_signal, title="SAT Sinyali", message="SAT Sinyali Geldi! Fiyat: {{close}}")

// Grafik Üzerinde Görselleştirme
plot(sma_line, color=color.blue, title="Hareketli Ortalama", linewidth=2)
plotshape(series=buy_signal, title="Al", location=location.belowbar, color=color.green, style=shape.labelup, text="Al", size=size.small)
plotshape(series=sell_signal, title="Sat", location=location.abovebar, color=color.red, style=shape.labeldown, text="Sat", size=size.small)
Candlestick analysisChart patterns

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer