PHP Code://@version=6
indicator("(:)", overlay=true, max_lines_count=50, max_bars_back=50)
// ==========================================
// 1. YAPAY ZEKA (DL) ÇEKÝRDEÐÝ
// ==========================================
// Aktivasyon Fonksiyonlarý
tanh(v) => (1 - math.exp(-2 * v)) / (1 + math.exp(-2 * v))
td(s) => nz((s - nz(s[1])) / nz(s[1]))
// Aðýrlýk Matrisi (Senin Modelin)
var w_c = array.from(22.4271, -26.6917, 4.9371, 9.0349, -10.6929, -38.2880, 10.0500, -44.7063, -17.8163, 30.5662, -33.9954, 14.5017, -43.2865, -13.3874, 24.7080, -14.3929, 28.4830, -22.9793, -7.6582, -5.6505, 28.8379, -26.3544, 0.5206, 25.0049, -17.8832, -4.8113, -4.0364, -8.3327, -1.1571, 0.4667, -22.0533, 3.6525, -4.3904, 2.1030, 20.0272, 11.5101, -0.4150)
// Giriþ Verileri
n_in = array.from(tanh(td(open)), tanh(td(high)), tanh(td(low)), tanh(td(close)))
// Hesaplama Fonksiyonu
f_calc_dl(n_arr, w_arr) =>
float out = 0.0
for i = 0 to 5
float s = 0.0
for j = 0 to 3
s += array.get(n_arr, j) * array.get(w_arr, (i * 5) + j)
out += tanh(s + array.get(w_arr, (i * 5) + 4)) * array.get(w_arr, 30 + i)
tanh(out + array.get(w_arr, 36))
float dl_val = f_calc_dl(n_in, w_c) // AI Çýktýsý (-1 ile 1 arasý)
// ==========================================
// 2. SAR HESAPLAMALARI
// ==========================================
s1 = ta.sar(0.08, 0.05, 0.2) // Sarý (Hýzlý)
s2 = ta.sar(0.01, 0.05, 0.2) // Mavi (Denge)
s3 = ta.sar(0.04, 0.04, 0.2) // Kýrmýzý (Yavaþ)
// ==========================================
// 3. ATMOSFER KATMANLARI (SAR + AI)
// ==========================================
// AI Faktörü: DL deðeri arttýkça atmosfer þiþer (Volatilite Çarpaný)
// Normalde 1'dir, risk varsa 2'ye kadar çýkar.
float ai_factor = 0.1 + math.abs(dl_val)
// Mesafeleri Hesapla (ATR yerine geçecekler)
float dist_yellow = math.abs(close - s1) // Çekirdek Mesafesi
float dist_blue = math.abs(s1 - s2) // Manto Mesafesi
float dist_red = math.abs(s2 - s3) // Kabuk Mesafesi
// Katmanlarý Fiyatýn Etrafýna Ör (Merkezden Dýþa Doðru)
// 1. KATMAN (SARI - Çekirdek)
// Fiyattan s1 kadar uzaða git + AI etkisi
float l1_top = close + (dist_yellow * ai_factor)
float l1_bot = close - (dist_yellow * ai_factor)
// 2. KATMAN (MAVÝ - Manto)
// Sarý katmanýn bittiði yerden Mavi mesafe kadar daha açýl
float l2_top = l1_top + (dist_blue * ai_factor)
float l2_bot = l1_bot - (dist_blue * ai_factor)
// 3. KATMAN (KIRMIZI - Kabuk)
// Mavi katmanýn bittiði yerden Kýrmýzý mesafe kadar daha açýl
float l3_top = l2_top + (dist_red * ai_factor)
float l3_bot = l2_bot - (dist_red * ai_factor)
// ==========================================
// 4. GÖRSELLEÞTÝRME (RENKLÝ BARLAR)
// ==========================================
// En dýþtan en içe doðru çiziyoruz ki küçükler altta kalmasýn.
// DIÞ KABUK (Kýrmýzý)
plotcandle(l3_bot, l3_top, l3_bot, l3_top, title="Atmosfer (Kýrmýzý)", color=color.new(color.red, 70), bordercolor=na, wickcolor=na)
// ORTA KATMAN (Mavi)
plotcandle(l2_bot, l2_top, l2_bot, l2_top, title="Atmosfer (Mavi)", color=color.new(color.blue, 70), bordercolor=na, wickcolor=na)
// ÝÇ ÇEKÝRDEK (Sarý)
plotcandle(l1_bot, l1_top, l1_bot, l1_top, title="Atmosfer (Sarý)", color=color.new(color.yellow, 70), bordercolor=na, wickcolor=na)
// Referans için SAR noktalarýný da gösterelim (Ýncecik)
// ==========================================
// 2. LSMA ÖNCÜ HAT
// ==========================================
f_mirror_lsma(_sar_val, _len) =>
float _delta = math.abs(close - _sar_val)
bool _is_up = close > _sar_val
float _raw = _is_up ? close + _delta : close - _delta
ta.linreg(_raw, _len, 0)
// Hesaplama (Uzunluk: 20)
float oncu_hat = f_mirror_lsma(s1, 20)
// Renk Mantýðý
bool hat_ustte = oncu_hat > close
color col_oncu = hat_ustte ? color.red : color.lime
// Çizim
plot(oncu_hat, "Öncü", color=col_oncu, linewidth=2)
// ==========================================
// 3. YÖRÜK ÇÝZÝMLERÝ (SAR NOKTALARI)
// ==========================================
plot(s1, "SAR Hýzlý", style=plot.style_cross, color=color.yellow, linewidth=2)
plot(s2, "SAR Denge", style=plot.style_cross, color=color.blue, linewidth=2)
plot(s3, "SAR Yavaþ", style=plot.style_cross, color=color.red, linewidth=2)
// ==========================================
// 4. "3'LÜ KÝLÝT" SÝNYAL MANTIÐI
// ==========================================
// Sarý, Mavi ve Kýrmýzý eþit mi?
bool esit_1_2 = math.abs(s1 - s2) < syminfo.mintick
bool esit_2_3 = math.abs(s2 - s3) < syminfo.mintick
bool tam_kilit = esit_1_2 and esit_2_3
// Sinyaller
bool sinyal_al = tam_kilit and close > s1
bool sinyal_sat = tam_kilit and close < s1
// ==========================================
// 5. SÝNYAL GÖRSELLERÝ (ELMAS)
// ==========================================
// Etiket (Yazý) yerine sadece Þekil (Elmas) kullanýyoruz.
plotshape(sinyal_al, "KÝLÝT AL", shape.diamond, location.belowbar, color=color.lime, size=size.small)
plotshape(sinyal_sat, "KÝLÝT SAT", shape.diamond, location.abovebar, color=color.red, size=size.small)
////////////////////)/////
// ==========================================
// 1. SARKAÇ MERKEZÝ VE HESAPLAR
// ==========================================
//s1 = ta.sar(0.08, 0.05, 0.2)
//s2 = ta.sar(0.01, 0.05, 0.2)
//s3 = ta.sar(0.04, 0.04, 0.2)
float merkez = (s1 + s2 + s3) / 3
// ==========================================
// 2. ENERJÝ GÖRSELLERÝ (CANLI)
// ==========================================
// Burasý canlý veriyle çalýþýr, anlýk durumu gösterir.
// Potansiyel Enerji (Ýç Renk)
float dist_sar = math.abs(close - merkez) / close * 1000
color col_pot = color.from_gradient(dist_sar, 0, 5, color.new(color.gray, 30), close > merkez ? color.lime : color.red)
// Kinetik Enerji (Çerçeve Rengi)
float velocity = math.abs(close - open)
float max_vol = ta.highest(velocity, 20)
color col_kin = color.gray
if close > open
col_kin := color.from_gradient(velocity, 0, max_vol, color.blue, color.gray)
else
col_kin := color.from_gradient(velocity, 0, max_vol, color.orange, color.fuchsia)
// Akýþ Enerjisi (Yýlan Çizgisi)
float flow_line = ta.hma(close, 20)
color col_flow = flow_line > flow_line[1] ? color.lime : color.red
// ==========================================
// 3. SINYAL MANTIÐI (NO-REPAINT KÝLÝDÝ)
// ==========================================
// Sinyaller sadece BAR KAPANDIÐINDA (Confirmed) hesaplanýr.
// Kural: Akýþ Çizgisi (HMA) Yön Deðiþtirdiðinde
// Sarýdan Beyaza Dönüþ -> AL
// Beyazdan Sarýya Dönüþ -> SAT
bool akis_yukari1 = flow_line > flow_line[1]
bool akis_asagi1 = flow_line < flow_line[1]
// "Barstate.isconfirmed" komutu repaint'i engeller.
// Sinyal sadece mum kapandýðý saniye kesinleþir.
bool sinyal_al1 = akis_yukari1 and not akis_yukari1[1] and barstate.isconfirmed
bool sinyal_sat1 = akis_asagi1 and not akis_asagi1[1] and barstate.isconfirmed
// ==========================================
// 4. ÇÝZÝMLER
// ==========================================
// Özel Mumlar (Görsel)
//plotcandle(open, high, low, close, "Sarkaç", color=col_pot, wickcolor=col_kin, bordercolor=col_kin)
// Akýþ Hattý
plot(flow_line, "Akýþ", color=col_flow, linewidth=3)
// Merkez (Destek/Direnç)
plot(merkez, "Merkez", color=color.new(color.gray, 50), style=plot.style_stepline)
// Sinyal Oklarý (Asla Kaybolmaz)
plotshape(sinyal_al1, "KESÝN AL", shape.triangleup, location.belowbar, color=color.white, size=size.small, text="AL", textcolor=color.white)
plotshape(sinyal_sat1, "KESÝN SAT", shape.triangledown, location.abovebar, color=color.yellow, size=size.small, text="SAT", textcolor=color.yellow)
// ==========================================
// 5. PANEL (GÜNCEL DURUM)
// ==========================================
var table panel = table.new(position.bottom_right, 2, 4, bgcolor=color.new(color.black, 40))
if barstate.islast
table.cell(panel, 0, 0, "SARKAÇ (NO-REPAINT)", text_color=color.white, bgcolor=color.gray)
table.merge_cells(panel, 0, 0, 1, 0)
// Yön Bilgisi
string yon_txt = akis_yukari1 ? "YÜKSELÝÞ" : "DÜÞÜÞ"
color yon_col = akis_yukari1 ? color.lime : color.red
table.cell(panel, 0, 1, "ANA YÖN", text_color=color.white, text_halign=text.align_left)
table.cell(panel, 1, 1, yon_txt, text_color=yon_col, text_halign=text.align_right)
// Sinyal Durumu
string sinyal_txt = "BEKLÝYOR..."
if sinyal_al1
sinyal_txt := "AL ONAYLANDI"
if sinyal_sat1
sinyal_txt := "SAT ONAYLANDI"
table.cell(panel, 0, 2, "SON SÝNYAL", text_color=color.white, text_halign=text.align_left)
table.cell(panel, 1, 2, sinyal_txt, text_color=color.gray, text_halign=text.align_right)
///////////////
// ==========================================
// 1. HAM VERÝLER (SAR ve AYNA)
// ==========================================
//s1 = ta.sar(0.08, 0.05, 0.2)
//s2 = ta.sar(0.01, 0.05, 0.2)
//s3 = ta.sar(0.04, 0.04, 0.2)
avg_sar = (s1 + s2 + s3) / 3 // STOP NOKTASI
f_mirror(_sar, _len) =>
float _delta = math.abs(close - _sar)
float _raw = close > _sar ? close + _delta : close - _delta
ta.linreg(_raw, _len, 0)
m1 = f_mirror(s1, 20)
m2 = f_mirror(s2, 20)
m3 = f_mirror(s3, 20)
avg_mir = (m1 + m2 + m3) / 3 // MERKEZ HATTI
// ==========================================
// 2. GÖLGE HEDEF HESABI
// ==========================================
// Hedef = Ayna + (Fiyat - SAR Farký)
float vector_force = close - avg_sar
float shadow_target = avg_mir + vector_force
// ==========================================
// 3. RENK VE TREND MANTIÐI
// ==========================================
// Trendin yönünü belirliyoruz.
// Boða: Fiyat SAR'ýn üzerinde.
// Ayý: Fiyat SAR'ýn altýnda.
bool trend_bull = close > avg_sar
bool trend_bear = close < avg_sar
color col_shadow = trend_bull ? color.green : color.red
// ==========================================
// 4. SÝNYAL MANTIÐI (RENK DEÐÝÞÝMÝ)
// ==========================================
// Hedefe dokunma deðil, RENK DEÐÝÞÝMÝ (Trend Dönüþü) sinyaldir.
// Repaint olmamasý için barstate.isconfirmed kullanýyoruz.
bool signal_exit_long = false
bool signal_exit_short = false
if barstate.isconfirmed
// Yeþil'den Kýrmýzýya Dönüþ (Long Çýkýþ)
if trend_bull[1] and trend_bear
signal_exit_long := true
// Kýrmýzý'dan Yeþile Dönüþ (Short Çýkýþ)
if trend_bear[1] and trend_bull
signal_exit_short := true
// ==========================================
// 5. GÖRSELLEÞTÝRME
// ==========================================
// SAR (Gri Stop Çizgisi)
plot(avg_sar, "Stop Hattý (SAR)", color=color.gray, linewidth=2)
// AYNA (Mavi Merkez Hattý)
plot(avg_mir, "Denge Hattý (Ayna)", color=color.blue, linewidth=1)
// GÖLGE HEDEF (Renkli Noktalar)
plot(shadow_target, "Gölge Hedef", color=col_shadow, linewidth=2, style=plot.style_circles)
// Aradaki Alan (Potansiyel Vakum)
fill(plot(avg_mir, display=display.none), plot(shadow_target, display=display.none), color=color.new(col_shadow, 85), title="Potansiyel Alaný")
// SÝNYALLER (Trend Bitiþi / Renk Deðiþimi)
// Ofset -1 veriyoruz ki sinyalin oluþtuðu mumun tepesine koysun.
plotshape(signal_exit_long, "LONG ÇIKIÞ", shape.labeldown, location.abovebar, color=color.red, text="L\n(K)", textcolor=color.white, size=size.tiny, offset=-1)
plotshape(signal_exit_short, "SHORT ÇIKIÞ", shape.labelup, location.belowbar, color=color.green, text="S\n(K)", textcolor=color.white, size=size.tiny, offset=-1)
// ==========================================
// 6. DASHBOARD (SABÝT WIDGET)
// ==========================================
var table panel1 = table.new(position.middle_right, 2, 5, bgcolor=color.new(color.black, 40), frame_color=color.gray, border_width=1)
if barstate.islast
string yon_txt = "YATAY"
color yon_col = color.gray
if trend_bull
yon_txt := "YÜKSELÝÞ (YEÞÝL)"
yon_col := color.green
else
yon_txt := "DÜÞÜÞ (KIRMIZI)"
yon_col := color.red
// Baþlýk
table.cell(panel1, 0, 0, "GÖLGE TREND", text_color=color.white, bgcolor=color.new(color.gray, 20), text_size=size.small)
table.merge_cells(panel1, 0, 0, 1, 0)
// Yön
table.cell(panel1, 0, 1, "TREND YÖNÜ", text_color=color.white, text_size=size.small, text_halign=text.align_left)
table.cell(panel1, 1, 1, yon_txt, text_color=yon_col, text_size=size.small, text_halign=text.align_right)
// Hedef Fiyat (Potansiyel)
table.cell(panel1, 0, 2, "POTANSÝYEL HEDEF", text_color=color.white, text_size=size.small, text_halign=text.align_left)
table.cell(panel1, 1, 2, str.tostring(shadow_target, format.mintick), text_color=yon_col, text_size=size.small, text_halign=text.align_right)
// Stop (Trend Deðiþim Sýnýrý)
table.cell(panel1, 0, 3, "STOP (SAR)", text_color=color.gray, text_size=size.small, text_halign=text.align_left)
table.cell(panel1, 1, 3, str.tostring(avg_sar, format.mintick), text_color=color.gray, text_size=size.small, text_halign=text.align_right)
// Kalan Mesafe
float dist = math.abs(shadow_target - close)
table.cell(panel1, 0, 4, "KALAN POTANSÝYEL", text_color=color.gray, text_size=size.small, text_halign=text.align_left)
table.cell(panel1, 1, 4, str.tostring(dist, format.mintick), text_color=color.white, text_size=size.small, text_halign=text.align_right)
///////////////////
// ==========================================
// 1. MATEMATÝK MOTORU (Aynen Korundu)
// ==========================================
//s1 = ta.sar(0.08, 0.05, 0.2)
//s2 = ta.sar(0.01, 0.05, 0.2)
//s3 = ta.sar(0.04, 0.04, 0.2)
//avg_sar = (s1 + s2 + s3) / 3
//f_mirror(_sar, _len) =>
//float _delta = math.abs(close - _sar)
//float _raw = close > _sar ? close + _delta : close - _delta
//ta.linreg(_raw, _len, 0)
//m1 = f_mirror(s1, 9)
//m2 = f_mirror(s2, 21)
//m3 = f_mirror(s3, 50)
//avg_mir = (m1 + m2 + m3) / 3
// Hýz ve Ývme Hesabý
float raw_acc = math.abs(avg_sar - avg_sar[1]) / syminfo.mintick
float raw_vel = math.abs(avg_mir - avg_mir[1]) / syminfo.mintick
float vector_acc = ta.hma(raw_acc, 9)
float vector_vel = ta.hma(raw_vel, 9)
// ==========================================
// 2. MANTIK VE HAFIZA
// ==========================================
var float max_blue_peak = 0.0
if vector_vel > vector_acc
max_blue_peak := math.max(max_blue_peak, vector_vel)
if ta.crossover(vector_vel, vector_acc)
max_blue_peak := vector_vel
// Durum Analizi
bool red_zone = vector_acc > vector_vel
// MODLAR
bool is_turbo = red_zone and (vector_acc >= max_blue_peak) // Gri Noktalarýn ÜZERÝNDE
bool is_fatigue = red_zone and (vector_acc < max_blue_peak) // Gri Noktalarýn ALTINDA
bool is_efficient = not red_zone // Mavi Bölge
// ==========================================
// 3. SÝNYALLER
// ==========================================
bool signal_buy = ta.crossover(vector_vel, vector_acc) and barstate.isconfirmed
bool signal_sell = ta.crossunder(vector_acc, max_blue_peak) and red_zone and barstate.isconfirmed
// ==========================================
// 4. GÖRSELLEÞTÝRME (FÝYAT EKRANI MODU)
// ==========================================
// A. Bar Boyama (Osialtördeki Durumu Yansýtýr)
color bar_renk = na
if is_efficient
bar_renk := color.blue // Verimli (Al/Tut)
else if is_turbo
bar_renk := color.yellow // Turbo (Gri Noktalar Geçildi - TUT)
else
bar_renk := color.red // Yorgunluk (Gri Noktalar Kýrýldý - SAT)
barcolor(bar_renk)
// B. Sadece Sinyaller
//plotshape(signal_buy, "VERÝMLÝ BAÞLANGIÇ", shape.labelup, location.belowbar, color=color.blue, text="VERÝMLÝ", textcolor=color.white, size=size.small)
// Kritik Çýkýþ Sinyali
//plotshape(signal_sell, "TURBO BÝTTÝ", shape.labeldown, location.abovebar, color=color.red, text="TURBO\nBÝTTÝ", textcolor=color.white, size=size.small)
// Ýsteðe Baðlý: Gri Noktalarýn (Limitin) Sanal Varlýðý
// Eðer Turbo modundaysak, mumun üzerine küçük gri bir nokta koyarak "Limitin üzerindesin" mesajý verelim.
//plotshape(is_turbo, "Limit Üstü", shape.circle, location.abovebar, color=color.new(color.gray, 50), size=size.tiny)
//////////////////
// ==========================================
// 1. GÜNEÞ VE HALKALAR (HESAPLAMA MOTORU)
// ==========================================
//s1 = ta.sar(0.08, 0.05, 0.2) // Halka 1
//s2 = ta.sar(0.01, 0.05, 0.2) // Halka 2
//s3 = ta.sar(0.04, 0.04, 0.2) // Halka 3
// Ayna Hesabý
//f_mirror(_sar, _len) =>
//float _delta = math.abs(close - _sar)
//float _raw = close > _sar ? close + _delta : close - _delta
// ta.linreg(_raw, _len, 0)
//m1 = f_mirror(s1, 9)
//m2 = f_mirror(s2, 21)
//m3 = f_mirror(s3, 50)
// Güneþ (Merkez Fiyat)
float gunes = ((s1+s2+s3)/3 + (m1+m2+m3)/3) / 2
// ==========================================
// 2. KALKAN GÜCÜNÜ ÖLÇME
// ==========================================
int kalkan_gucu = 0 // 0 ile 3 arasý
if close > gunes // Güneþ Üstü (Boða)
if close > s1
kalkan_gucu += 1
if close > s2
kalkan_gucu += 1
if close > s3
kalkan_gucu += 1
else // Güneþ Altý (Ayý)
if close < s1
kalkan_gucu += 1
if close < s2
kalkan_gucu += 1
if close < s3
kalkan_gucu += 1
// ==========================================
// 3. BAR BOYAMA MANTIÐI (RENK PALETÝ)
// ==========================================
color bar_renk22 = na
string mod_text = ""
//if kalkan_gucu == 3
// TAM GÜÇ (Trend Yönüne Göre)
//bar_renk := close > gunes ? color.lime : color.red
//mod_text := "TAM GÜÇ"
//else if kalkan_gucu == 2
// HAFÝF HASAR (Uyarý)
//bar_renk := color.yellow
//mod_text := "YIPRANMA (2/3)"
if kalkan_gucu == 1
// AÐIR HASAR (Kritik)
bar_renk22 := color.new(color.fuchsia, 00) // Daha soluk turuncu
mod_text := "KRÝTÝK (1/3)"
//else
// KORUMASIZ (Kaos)
//bar_renk := color.gray
//mod_text := "KORUMASIZ"
// Mumlarý Boya
barcolor(bar_renk22)
// ==========================================
// 4. DESTEK/DÝRENÇ ÇÝZGÝLERÝ (GÖRSEL)
// ==========================================
// Sadece Güneþ Merkezini (Grand Master) çiziyoruz.
// Böylece fiyatýn "Merkezden" ne kadar uzakta olduðunu gözle görürsün.
plot(gunes, "Merkez", color=color.orange, linewidth=2)
// ==========================================
// ==========================================
// 2. ROCHE LÝMÝTLERÝ (YÖRÜNGE KUÞAÐI)
// ==========================================
// Histogramdaki 0.5 ve -0.5 çizgilerini fiyata uyarlýyoruz.
// Güneþ'in %0.5 üstü ve altý "Güvenli Yörünge"dir.
float roche_ust = gunes * 1.005 // +%0.5
float roche_alt = gunes * 0.995 // -%0.5
// B. Roche Limitleri (Yörünge Sýnýrlarý)
p1 = plot(roche_ust, "Roche Üst", color=color.gray, style=plot.style_circles)
p2 = plot(roche_alt, "Roche Alt", color=color.gray, style=plot.style_circles)
// C. Çekim Alaný (Güneþ ile Sýnýrlar Arasýný Boya)
// Fiyat bu gri alanýn içindeyse "Normal", dýþýna taþarsa "Sapma" baþlar.
//fill(p1, p2, color=color.new(color.gray, 90), title="Güvenli Yörünge Alaný")
// ==========================================
// ==========================================
// 1. MOTOR (SAR ve AYNA)
// ==========================================
//s1 = ta.sar(0.08, 0.05, 0.2)
//s2 = ta.sar(0.01, 0.05, 0.2)
//s3 = ta.sar(0.04, 0.04, 0.2)
//avg_sar = (s1 + s2 + s3) / 3
//f_mirror(_sar, _len) =>
//float _delta = math.abs(close - _sar)
//float _raw = close > _sar ? close + _delta : close - _delta
//ta.linreg(_raw, _len, 0)
//m1 = f_mirror(s1, 20)
//m2 = f_mirror(s2, 22)
//m3 = f_mirror(s3, 20)
//avg_mir = (m1 + m2 + m3) / 3
// ==========================================
// 2. GÜÇ METRÝÐÝ
// ==========================================
float power_sar = ta.hma((close - avg_sar) / syminfo.mintick, 9)
float power_mir = ta.hma((avg_mir - close) / syminfo.mintick, 5)
// ==========================================
// 3. OLAYLAR (HESAPLAMA)
// ==========================================
// Ters Pullback (Daireler)
bool event_bull = power_sar > 0 and ta.crossover(power_mir, power_sar) and power_mir > 0
bool event_bear = power_sar < 0 and ta.crossunder(power_mir, power_sar) and power_mir < 0
// Trend Deðiþimi (X Ýþaretleri)
bool event_trend_up = ta.crossover(power_sar, 0) // Trend Yukarý Döndü
bool event_trend_dn = ta.crossunder(power_sar, 0) // Trend Aþaðý Döndü
// ==========================================
// 4. SÝNYAL KÝLÝDÝ (NO-REPAINT)
// ==========================================
// Sadece mum kapandýðýnda (Confirmed) sinyal üret.
bool sig_rev_buy = event_bear and barstate.isconfirmed
bool sig_rev_sell = event_bull and barstate.isconfirmed
bool sig_trend_up = event_trend_up and barstate.isconfirmed
bool sig_trend_dn = event_trend_dn and barstate.isconfirmed
// ==========================================
// 5. GÖRSELLEÞTÝRME (FÝYAT ÜZERÝNDE)
// ==========================================
// Ters AL (Yeþil Daire)
plotshape(sig_rev_buy, "Ters AL", shape.labelup, location.belowbar, color=color.lime, size=size.small, text="P\nL", textcolor=color.white)
// Ters SAT (Kýrmýzý Daire)
plotshape(sig_rev_sell, "Ters SAT", shape.labeldown, location.abovebar, color=color.red, size=size.small, text="P\nS", textcolor=color.white)
// Trend Baþlangýcý (Yeþil X)
plotshape(sig_trend_up, "Trend Baþladý", shape.xcross, location.belowbar, color=color.green, size=size.normal)
// Trend Bitiþi (Kýrmýzý X)
plotshape(sig_trend_dn, "Trend Bitti", shape.xcross, location.abovebar, color=color.red, size=size.normal)
// ==========================================
// 6. AKILLI TABLO (SON SÝNYAL)
// ==========================================
// Hafýza Deðiþkenleri
var string last_txt = "BEKLENÝYOR..."
var float last_price = 0.0
var color last_col = color.gray
// Güncelleme Mantýðý (Hiyerarþi: En son ne olduysa o yazar)
if sig_rev_buy
last_txt := "TERS AL (DAÝRE)"
last_col := color.lime
last_price := close
else if sig_rev_sell
last_txt := "TERS SAT (DAÝRE)"
last_col := color.red
last_price := close
else if sig_trend_up
last_txt := "TREND BAÞLADI (X)"
last_col := color.green // Daha koyu yeþil
last_price := close
else if sig_trend_dn
last_txt := "TREND BÝTTÝ (X)"
last_col := color.maroon // Daha koyu kýrmýzý
last_price := close
// Tablo Çizimi
var table panel5 = table.new(position.top_right, 2, 2, bgcolor=color.new(color.black, 50), border_width=1, border_color=color.gray)
if barstate.islast
// Baþlýk
table.cell(panel5, 0, 0, "SON SÝNYAL:", text_color=color.white, text_size=size.small, text_halign=text.align_left)
// Sinyal Tipi (X veya Daire fark etmez, sonuncusu yazar)
table.cell(panel5, 1, 0, last_txt, text_color=last_col, text_size=size.small, text_halign=text.align_right)
// Fiyat
table.cell(panel5, 0, 1, "FÝYAT:", text_color=color.gray, text_size=size.small, text_halign=text.align_left)
table.cell(panel5, 1, 1, str.tostring(last_price, format.mintick), text_color=color.white, text_size=size.small, text_halign=text.align_right)
///////////ÝMZA//////////////
var table ytd_table = table.new(position.bottom_center, 1, 1)
if barstate.islast
table.cell(ytd_table, 0, 0, "Eðitim çalýþmasýdýr. YATIRIM TAVSÝYESÝ olarak KULLANILAMAZ.", text_color=color.new(color.white, 00), text_size=size.normal)
///////////////////////son/////////




Alýntý yaparak yanýtla
Yer Ýmleri