PHP Code:
//@version=6
indicator(":]", overlay=true, max_lines_count=50, max_labels_count=500)
// ==========================================
// 1. 5 KADEMEL EXTENDED SAR MOTORU
// ==========================================
sarext(simple float start_value=0.0, simple float offset_on_reverse=0.0,
simple float af_init_long=0.02, simple float af_long=0.02, simple float af_max_long=0.20,
simple float af_init_short=0.02, simple float af_short=0.02, simple float af_max_short=0.20) =>
if af_init_long < 0
runtime.error("AF init long must be >= 0")
if af_long < 0
runtime.error("AF long must be >= 0")
if af_max_long < af_init_long
runtime.error("AF max long must be >= AF init long")
if af_init_short < 0
runtime.error("AF init short must be >= 0")
if af_short < 0
runtime.error("AF short must be >= 0")
if af_max_short < af_init_short
runtime.error("AF max short must be >= AF init short")
var bool is_long = true
var float sar = na
var float ep = na
var float af = af_init_long
var float result = na
if bar_index == 0
result := na
else if bar_index == 1
if start_value > 0
is_long := true
sar := math.abs(start_value)
else if start_value < 0
is_long := false
sar := math.abs(start_value)
else
float plus_dm = high - high[1]
float minus_dm = low[1] - low
if plus_dm < 0
plus_dm := 0
if minus_dm < 0
minus_dm := 0
is_long := plus_dm > minus_dm
sar := is_long ? low[1] : high[1]
ep := is_long ? high : low
af := is_long ? af_init_long : af_init_short
if is_long
if sar > low[1]
sar := low[1]
if sar > low
sar := low
else
if sar < high[1]
sar := high[1]
if sar < high
sar := high
result := is_long ? sar : -sar
else
float new_sar = sar + af * (ep - sar)
if is_long
new_sar := math.min(new_sar, low[1])
new_sar := math.min(new_sar, low[2])
if low < new_sar
is_long := false
new_sar := ep
if offset_on_reverse != 0
new_sar := new_sar + offset_on_reverse
ep := low
af := af_init_short
else
if high > ep
ep := high
af := math.min(af + af_long, af_max_long)
else
new_sar := math.max(new_sar, high[1])
new_sar := math.max(new_sar, high[2])
if high > new_sar
is_long := true
new_sar := ep
if offset_on_reverse != 0
new_sar := new_sar - offset_on_reverse
ep := high
af := af_init_long
else
if low < ep
ep := low
af := math.min(af + af_short, af_max_short)
sar := new_sar
result := is_long ? new_sar : -new_sar
result
// vme (AF) Deerleri
i_af_h1 = 0.20 // Hzl 1
i_af_h2 = 0.05 // Hzl 2
i_af_de = 0.02 // Denge
i_af_y1 = 0.005 // Yava 1
i_af_y2 = 0.001 // Yava 2
i_af_mx = 0.2
// Motorlar altr
s_h1 = sarext(0.0, 0.0, i_af_h1, i_af_h1, math.max(i_af_h1, i_af_mx), i_af_h1, i_af_h1, math.max(i_af_h1, i_af_mx))
s_h2 = sarext(0.0, 0.0, i_af_h2, i_af_h2, math.max(i_af_h2, i_af_mx), i_af_h2, i_af_h2, math.max(i_af_h2, i_af_mx))
s_de = sarext(0.0, 0.0, i_af_de, i_af_de, math.max(i_af_de, i_af_mx), i_af_de, i_af_de, math.max(i_af_de, i_af_mx))
s_y1 = sarext(0.0, 0.0, i_af_y1, i_af_y1, math.max(i_af_y1, i_af_mx), i_af_y1, i_af_y1, math.max(i_af_y1, i_af_mx))
s_y2 = sarext(0.0, 0.0, i_af_y2, i_af_y2, math.max(i_af_y2, i_af_mx), i_af_y2, i_af_y2, math.max(i_af_y2, i_af_mx))
// ==========================================
// 2. HAKK AYNA (SMETRK HEDEF HESAPLAMASI)
// ==========================================
// Denge (0.02) motorunun mesafesini alp fiyatn kar tarafna yanstan Ayna Forml
float s_de_abs = math.abs(s_de)
bool is_de_up = s_de > 0
float delta_de = math.abs(close - s_de_abs)
float raw_mirror = is_de_up ? close + delta_de : close - delta_de
float ayna_hma = ta.hma(raw_mirror, 55) // Przszletirilmi Yansma Hedefi
// ==========================================
// 3. HAFIZA VE KIRILIM MANTII
// ==========================================
var float p_h1 = na, var float n_h1 = na
var float p_h2 = na, var float n_h2 = na
var float p_de = na, var float n_de = na
var float p_y1 = na, var float n_y1 = na
var float p_y2 = na, var float n_y2 = na
bool is_p_h1 = s_h1 > 0
bool is_p_h2 = s_h2 > 0
bool is_p_de = s_de > 0
bool is_p_y1 = s_y1 > 0
bool is_p_y2 = s_y2 > 0
if is_p_h1
p_h1 := math.abs(s_h1)
else
n_h1 := math.abs(s_h1)
if is_p_h2
p_h2 := math.abs(s_h2)
else
n_h2 := math.abs(s_h2)
if is_p_de
p_de := math.abs(s_de)
else
n_de := math.abs(s_de)
if is_p_y1
p_y1 := math.abs(s_y1)
else
n_y1 := math.abs(s_y1)
if is_p_y2
p_y2 := math.abs(s_y2)
else
n_y2 := math.abs(s_y2)
bool prev_h1 = bar_index > 0 ? is_p_h1[1] : is_p_h1
bool prev_h2 = bar_index > 0 ? is_p_h2[1] : is_p_h2
bool prev_de = bar_index > 0 ? is_p_de[1] : is_p_de
bool prev_y1 = bar_index > 0 ? is_p_y1[1] : is_p_y1
bool prev_y2 = bar_index > 0 ? is_p_y2[1] : is_p_y2
bool brk_h1_neg = prev_h1 and not is_p_h1
bool brk_h1_pos = not prev_h1 and is_p_h1
bool brk_h2_neg = prev_h2 and not is_p_h2
bool brk_h2_pos = not prev_h2 and is_p_h2
bool brk_de_neg = prev_de and not is_p_de
bool brk_de_pos = not prev_de and is_p_de
bool brk_y1_neg = prev_y1 and not is_p_y1
bool brk_y1_pos = not prev_y1 and is_p_y1
bool brk_y2_neg = prev_y2 and not is_p_y2
bool brk_y2_pos = not prev_y2 and is_p_y2
// ==========================================
// 4. AI EKRANA ZME VE HESAPLAMALAR
// ==========================================
plot(is_p_h1 ? math.abs(s_h1) : na, "H1 (+)", color=color.new(color.yellow, 0), style=plot.style_cross, linewidth=2)
plot(not is_p_h1 ? math.abs(s_h1) : na, "H1 (-)", color=color.new(color.yellow, 0), style=plot.style_cross, linewidth=2)
plot(is_p_h2 ? math.abs(s_h2) : na, "H2 (+)", color=color.new(color.yellow, 0), style=plot.style_cross, linewidth=2)
plot(not is_p_h2 ? math.abs(s_h2) : na, "H2 (-)", color=color.new(color.yellow, 0), style=plot.style_cross, linewidth=2)
plot(is_p_de ? math.abs(s_de) : na, "D(+)", color=color.new(color.lime, 0), style=plot.style_line, linewidth=2)
plot(not is_p_de ? math.abs(s_de) : na, "D(-)", color=color.new(color.red, 0), style=plot.style_line, linewidth=2)
// ALTIN AYNAYI ZME (Gelecek Hedefi)
//plot(ayna_hma, "SarAyna", color=color.new(#f700ff, 0), linewidth=2, style=plot.style_line)
plot(is_p_y1 ? math.abs(s_y1) : na, "Y1 (+)", color=color.new(color.blue, 0), style=plot.style_cross, linewidth=2)
plot(not is_p_y1 ? math.abs(s_y1) : na, "Y1 (-)", color=color.new(color.blue, 0), style=plot.style_cross, linewidth=2)
plot(is_p_y2 ? math.abs(s_y2) : na, "Y2 (+)", color=color.new(color.blue, 0), style=plot.style_cross, linewidth=2)
plot(not is_p_y2 ? math.abs(s_y2) : na, "Y2 (-)", color=color.new(color.blue, 0), style=plot.style_cross, linewidth=2)
float avg_sar_val = (math.abs(s_h1) + math.abs(s_h2) + math.abs(s_de) + math.abs(s_y1) + math.abs(s_y2)) / 5.0
// TEMZ HAVA SAHASI: DURUM HESAPLAMASI
bool durum_al = (close > n_de) and (close > p_h1) and (close > n_h1) and (close > p_h2) and (close > n_h2)
bool durum_sat = (close < p_de) and (close < p_h1) and (close < n_h1) and (close < p_h2) and (close < n_h2)
string durum_metni = durum_al ? "AL" : durum_sat ? "SAT" : "BEKLE"
color durum_rengi = durum_al ? color.lime : durum_sat ? color.red : color.gray
color durum_yazi_rengi = durum_al ? color.black : durum_sat ? color.white : color.black
// ==========================================
// 5. MOMENTUM RADARLI KOMUTA MERKEZ
// ==========================================
var table dash = table.new(position.top_right, 3, 16, border_width = 1, border_color = color.new(color.gray, 80))
if barstate.islast
table.cell(dash, 0, 0, "@yrk@ Yatrm Tavsiyesi DELDR.", text_color=color.white, bgcolor=color.new(color.black, 0), text_size=size.normal, text_halign=text.align_center)
table.merge_cells(dash, 0, 0, 2, 0)
table.cell(dash, 0, 1, "Anlk Fiyat:", text_color=color.white, bgcolor=color.new(color.black, 40), text_halign=text.align_left)
table.cell(dash, 1, 1, str.tostring(close, format.mintick), text_color=color.white, bgcolor=color.new(color.black, 40), text_halign=text.align_right)
table.merge_cells(dash, 1, 1, 2, 1)
table.cell(dash, 0, 2, "Ortak Merkez (Ort):", text_color=color.yellow, bgcolor=color.new(color.black, 40), text_halign=text.align_left)
table.cell(dash, 1, 2, str.tostring(avg_sar_val, format.mintick), text_color=color.yellow, bgcolor=color.new(color.black, 40), text_halign=text.align_right)
table.merge_cells(dash, 1, 2, 2, 2)
table.cell(dash, 0, 3, "Genel Durum:", text_color=color.white, bgcolor=color.new(color.black, 40), text_halign=text.align_left)
table.cell(dash, 1, 3, durum_metni, text_color=durum_yazi_rengi, bgcolor=durum_rengi, text_halign=text.align_right)
table.merge_cells(dash, 1, 3, 2, 3)
// ALTIN AYNA HEDEF SATIRI EKLEND
table.cell(dash, 0, 4, "Hedef (TP/SL):", text_color=#FFD700, bgcolor=color.new(color.black, 40), text_halign=text.align_left)
table.cell(dash, 1, 4, str.tostring(ayna_hma, format.mintick), text_color=#FFD700, bgcolor=color.new(color.black, 40), text_halign=text.align_right)
table.cell(dash, 2, 4, is_de_up ? "DREN" : "DESTEK", text_color=color.black, bgcolor=#FFD700, text_halign=text.align_center)
// --- HIZLI 1 (0.20) ---
c_bg_p1 = brk_h1_neg ? color.yellow : color.new(color.black, 40)
c_tx_p1 = brk_h1_neg ? color.black : (is_p_h1 ? color.lime : color.gray)
t_st_p1 = brk_h1_neg ? "KIRILDI!" : (is_p_h1 ? "AKTF (+)" : "Pasif")
table.cell(dash, 0, 5, "Hzl 1 (+):", text_color=color.gray, bgcolor=color.new(color.black, 40), text_halign=text.align_left)
table.cell(dash, 1, 5, str.tostring(p_h1, format.mintick), text_color=c_tx_p1, bgcolor=c_bg_p1, text_halign=text.align_right)
table.cell(dash, 2, 5, t_st_p1, text_color=c_tx_p1, bgcolor=c_bg_p1, text_halign=text.align_center)
c_bg_n1 = brk_h1_pos ? color.yellow : color.new(color.black, 40)
c_tx_n1 = brk_h1_pos ? color.black : (not is_p_h1 ? color.red : color.gray)
t_st_n1 = brk_h1_pos ? "KIRILDI!" : (not is_p_h1 ? "AKTF (-)" : "Pasif")
table.cell(dash, 0, 6, "Hzl 1 (-):", text_color=color.gray, bgcolor=color.new(color.black, 40), text_halign=text.align_left)
table.cell(dash, 1, 6, str.tostring(n_h1, format.mintick), text_color=c_tx_n1, bgcolor=c_bg_n1, text_halign=text.align_right)
table.cell(dash, 2, 6, t_st_n1, text_color=c_tx_n1, bgcolor=c_bg_n1, text_halign=text.align_center)
// --- HIZLI 2 (0.05) ---
c_bg_p2 = brk_h2_neg ? color.yellow : color.new(color.black, 40)
c_tx_p2 = brk_h2_neg ? color.black : (is_p_h2 ? color.lime : color.gray)
t_st_p2 = brk_h2_neg ? "KIRILDI!" : (is_p_h2 ? "AKTF (+)" : "Pasif")
table.cell(dash, 0, 7, "Hzl 2 (+):", text_color=color.gray, bgcolor=color.new(color.black, 40), text_halign=text.align_left)
table.cell(dash, 1, 7, str.tostring(p_h2, format.mintick), text_color=c_tx_p2, bgcolor=c_bg_p2, text_halign=text.align_right)
table.cell(dash, 2, 7, t_st_p2, text_color=c_tx_p2, bgcolor=c_bg_p2, text_halign=text.align_center)
c_bg_n2 = brk_h2_pos ? color.yellow : color.new(color.black, 40)
c_tx_n2 = brk_h2_pos ? color.black : (not is_p_h2 ? color.red : color.gray)
t_st_n2 = brk_h2_pos ? "KIRILDI!" : (not is_p_h2 ? "AKTF (-)" : "Pasif")
table.cell(dash, 0, 8, "Hzl 2 (-):", text_color=color.gray, bgcolor=color.new(color.black, 40), text_halign=text.align_left)
table.cell(dash, 1, 8, str.tostring(n_h2, format.mintick), text_color=c_tx_n2, bgcolor=c_bg_n2, text_halign=text.align_right)
table.cell(dash, 2, 8, t_st_n2, text_color=c_tx_n2, bgcolor=c_bg_n2, text_halign=text.align_center)
// --- DENGE (0.02) ---
c_bg_pd = brk_de_neg ? color.yellow : color.new(color.black, 40)
c_tx_pd = brk_de_neg ? color.black : (is_p_de ? color.lime : color.gray)
t_st_pd = brk_de_neg ? "KIRILDI!" : (is_p_de ? "AKTF (+)" : "Pasif")
table.cell(dash, 0, 9, "Denge (+):", text_color=color.gray, bgcolor=color.new(color.black, 40), text_halign=text.align_left)
table.cell(dash, 1, 9, str.tostring(p_de, format.mintick), text_color=c_tx_pd, bgcolor=c_bg_pd, text_halign=text.align_right)
table.cell(dash, 2, 9, t_st_pd, text_color=c_tx_pd, bgcolor=c_bg_pd, text_halign=text.align_center)
c_bg_nd = brk_de_pos ? color.yellow : color.new(color.black, 40)
c_tx_nd = brk_de_pos ? color.black : (not is_p_de ? color.red : color.gray)
t_st_nd = brk_de_pos ? "KIRILDI!" : (not is_p_de ? "AKTF (-)" : "Pasif")
table.cell(dash, 0, 10, "Denge (-):", text_color=color.gray, bgcolor=color.new(color.black, 40), text_halign=text.align_left)
table.cell(dash, 1, 10, str.tostring(n_de, format.mintick), text_color=c_tx_nd, bgcolor=c_bg_nd, text_halign=text.align_right)
table.cell(dash, 2, 10, t_st_nd, text_color=c_tx_nd, bgcolor=c_bg_nd, text_halign=text.align_center)
// --- YAVA 1 (0.005) ---
c_bg_py1 = brk_y1_neg ? color.yellow : color.new(color.black, 40)
c_tx_py1 = brk_y1_neg ? color.black : (is_p_y1 ? color.lime : color.gray)
t_st_py1 = brk_y1_neg ? "KIRILDI!" : (is_p_y1 ? "AKTF (+)" : "Pasif")
table.cell(dash, 0, 11, "Yava 1 (+):", text_color=color.gray, bgcolor=color.new(color.black, 40), text_halign=text.align_left)
table.cell(dash, 1, 11, str.tostring(p_y1, format.mintick), text_color=c_tx_py1, bgcolor=c_bg_py1, text_halign=text.align_right)
table.cell(dash, 2, 11, t_st_py1, text_color=c_tx_py1, bgcolor=c_bg_py1, text_halign=text.align_center)
c_bg_ny1 = brk_y1_pos ? color.yellow : color.new(color.black, 40)
c_tx_ny1 = brk_y1_pos ? color.black : (not is_p_y1 ? color.red : color.gray)
t_st_ny1 = brk_y1_pos ? "KIRILDI!" : (not is_p_y1 ? "AKTF (-)" : "Pasif")
table.cell(dash, 0, 12, "Yava 1 (-):", text_color=color.gray, bgcolor=color.new(color.black, 40), text_halign=text.align_left)
table.cell(dash, 1, 12, str.tostring(n_y1, format.mintick), text_color=c_tx_ny1, bgcolor=c_bg_ny1, text_halign=text.align_right)
table.cell(dash, 2, 12, t_st_ny1, text_color=c_tx_ny1, bgcolor=c_bg_ny1, text_halign=text.align_center)
// --- YAVA 2 (0.001) ---
c_bg_py2 = brk_y2_neg ? color.yellow : color.new(color.black, 40)
c_tx_py2 = brk_y2_neg ? color.black : (is_p_y2 ? color.lime : color.gray)
t_st_py2 = brk_y2_neg ? "KIRILDI!" : (is_p_y2 ? "AKTF (+)" : "Pasif")
table.cell(dash, 0, 13, "Yava 2 (+):", text_color=color.gray, bgcolor=color.new(color.black, 40), text_halign=text.align_left)
table.cell(dash, 1, 13, str.tostring(p_y2, format.mintick), text_color=c_tx_py2, bgcolor=c_bg_py2, text_halign=text.align_right)
table.cell(dash, 2, 13, t_st_py2, text_color=c_tx_py2, bgcolor=c_bg_py2, text_halign=text.align_center)
c_bg_ny2 = brk_y2_pos ? color.yellow : color.new(color.black, 40)
c_tx_ny2 = brk_y2_pos ? color.black : (not is_p_y2 ? color.red : color.gray)
t_st_ny2 = brk_y2_pos ? "KIRILDI!" : (not is_p_y2 ? "AKTF (-)" : "Pasif")
table.cell(dash, 0, 14, "Yava 2 (-):", text_color=color.gray, bgcolor=color.new(color.black, 40), text_halign=text.align_left)
table.cell(dash, 1, 14, str.tostring(n_y2, format.mintick), text_color=c_tx_ny2, bgcolor=c_bg_ny2, text_halign=text.align_right)
table.cell(dash, 2, 14, t_st_ny2, text_color=c_tx_ny2, bgcolor=c_bg_ny2, text_halign=text.align_center)
// ==========================================
// 6. SAVA BORUSU (ALARM ENTEGRASYONU)
// ==========================================
alertcondition(durum_al and barstate.isconfirmed, title="🟢 HCUM: Temiz Hava Sahas!", message="Btn direnler krld! Yn: YUKARI (AL)")
alertcondition(durum_sat and barstate.isconfirmed, title="🔴 D: Ar Bask!", message="Btn destekler krld! Yn: AAI (SAT)")
//////////////
// ┌──────────────────────────────────────────────────────────────────────────────┐
// │ 3. FT AYNALI OMURGA MOTORU (12 ve 32) │
// └──────────────────────────────────────────────────────────────────────────────┘
float s_start_sabit = 0.08
float s_inc_sabit = 0.05
float s_max_sabit = 0.2
f_katman_ana(_start, _inc, _max, _smooth) =>
float _sar = ta.sar(_start, _inc, _max)
float _delta = math.abs(close - _sar)
bool _is_up = close > _sar
float _raw_mirror = _is_up ? close + _delta : close - _delta
ta.hma(_raw_mirror, _smooth)
// GNE (32) VE AY (12) YRNGELER
float ayna_12 = f_katman_ana(s_start_sabit, s_inc_sabit, s_max_sabit, 22)
float ayna_32 = f_katman_ana(s_start_sabit, s_inc_sabit, s_max_sabit, 32)
bool makro_al_12 = ayna_12 > close
color col_ayna_12 = makro_al_12 ? (ayna_12 < ayna_12[1] ? color.blue : color.lime) : (ayna_12 > ayna_12[1] ? color.yellow : color.red)
bool makro_al_32 = ayna_32 > close
color col_ayna_32 = makro_al_32 ? (ayna_32 < ayna_32[1] ? color.blue : color.lime) : (ayna_32 > ayna_32[1] ? color.yellow : color.red)
aort= (ayna_12+ayna_32)/2
bool is_sari_12 = col_ayna_12 == color.yellow
bool is_mavi_12 = col_ayna_12 == color.blue
bool is_sari_32 = col_ayna_32 == color.yellow
bool is_mavi_32 = col_ayna_32 == color.blue
bool ikisi_sari = is_sari_12 and is_sari_32
bool ikisi_mavi = is_mavi_12 and is_mavi_32
//plot(ayna_12, "Ayna lk", color=col_ayna_12, linewidth=2, style=plot.style_stepline)
//plot(ayna_32, "Ayna Son", color=col_ayna_32, linewidth=2, style=plot.style_stepline)
plot(aort, "@yrk@", color=col_ayna_32, linewidth=2, style=plot.style_stepline)
// ==========================================
// ┌──────────────────────────────────────────────────────────────────────────────┐
// │ 1. SAR MOTORLARI (HIZLI VE YAVA) │
// └──────────────────────────────────────────────────────────────────────────────┘
float yemre = ta.sar(0.01, 0.01, 0.2)
float yusuf = ta.sar(0.01, 0.05, 0.2)
float fato = ta.sar(0.01, 0.09, 0.2)
float mf = (yemre + yusuf + fato) / 3
// ==========================================
// 5. KALKAN GC (MUM BOYAMA)
// ==========================================
int kalkan = 0
if close > yemre
kalkan += 1
if close > yusuf
kalkan += 1
if close > fato
kalkan += 1
if close < yemre and close < mf
kalkan += 1
if close < yusuf and close < mf
kalkan += 1
if close < fato and close < mf
kalkan += 1
color bar_col = na
if kalkan >= 3
bar_col := close > mf ? color.rgb(0, 255, 132, 50) : color.rgb(250, 4, 4, 50)
else if kalkan == 2
bar_col := color.rgb(21, 5, 249)
else
bar_col := color.rgb(212, 3, 249)
barcolor(bar_col)
// ==========================================
//////////////////
// MZA
var table ytd_table = table.new(position.bottom_center, 1, 1)
if barstate.islast
table.cell(ytd_table, 0, 0, "(A) Eitim almasdr. Yatrm tavsiyesi KULLANILAMAZ.", text_color=color.new(color.white, 00), text_size=size.normal)
/////////////////
// ─────────────────────────────────────────────────────────────────
// MTK-1-2-3 DARE FORMLU PSAR MOTORU
// ─────────────────────────────────────────────────────────────────
f_ozel_sar33(src_h, src_l, _start, _inc, _max, _reset_hiz) =>
var int trend = 0
var float sar_val = 0.0
var float ep = 0.0
var float af = 0.0
if trend == 0 and not na(src_h[1])
trend := src_h >= src_h[1] or src_l >= src_l[1] ? 1 : -1
sar_val := trend > 0 ? src_l[1] : src_h[1]
ep := trend > 0 ? src_h[1] : src_l[1]
af := _start
else
if _reset_hiz
af := _start
float nextsar = sar_val
if trend > 0
if src_h[1] > ep
ep := src_h[1]
af := math.min(_max, af + _inc)
nextsar := sar_val + af * (ep - sar_val)
nextsar := math.min(math.min(src_l[1], src_l[2]), nextsar)
if nextsar > src_l
trend := -1
nextsar := ep
ep := src_l
af := _start
else
if src_l[1] < ep
ep := src_l[1]
af := math.min(_max, af + _inc)
nextsar := sar_val + af * (ep - sar_val)
nextsar := math.max(math.max(src_h[1], src_h[2]), nextsar)
if nextsar < src_h
trend := 1
nextsar := ep
ep := src_h
af := _start
sar_val := nextsar
[sar_val, trend]
// ─────────────────────────────────────────────────────────────────
// HESAPLAMALAR VE EKM
// ─────────────────────────────────────────────────────────────────
yeni_gun = ta.change(time("D")) != 0
// Orijinal kodda belirtilen (0.01 - 0.02 - 0.03) ivme deerlerine gre ekimler
[roSarSlow, _] = f_ozel_sar33(high, low, 0., 0.01, 0.2, yeni_gun)
[roSarModerate, _] = f_ozel_sar33(high, low, 0., 0.02, 0.2, yeni_gun)
[roSarFast, _] = f_ozel_sar33(high, low, 0., 0.03, 0.2, yeni_gun)
// ─────────────────────────────────────────────────────────────────
// ZMLER
// ─────────────────────────────────────────────────────────────────
plot(roSarSlow, title="C", color=color.new(color.lime, 0), style=plot.style_cross, linewidth=1)
plot(roSarModerate, title="B", color=color.new(color.yellow, 0), style=plot.style_cross, linewidth=1)
plot(roSarFast, title="A", color=color.new(color.white, 0), style=plot.style_cross, linewidth=1)
Yer mleri