Artan
Azalan
İşlem
BIST 30
BIST 50
BIST 100
Hisse Fiyat Fark% Hacim (TL) Düşük / Yüksek
4,40 10% 4,67 Mn 4,40 / 4,40
539,00 10% 232,77 Mn 486,00 / 539,00
59,40 10% 442,53 Mn 52,00 / 59,40
13,31 10% 8,16 Mn 13,31 / 13,31
47,74 10% 4,39 Mr 42,44 / 47,74
Hisse Fiyat Fark% Hacim (TL) Düşük / Yüksek
118,80 -10% 643,70 Mn 118,80 / 132,00
44,48 -10% 315,74 Mn 44,48 / 49,24
66,60 -10% 209,22 Mn 66,60 / 70,85
17,23 -9.98% 2,20 Mr 17,23 / 19,90
33,56 -9.98% 20,79 Mn 33,56 / 36,78
Hisse Fiyat Fark% Hacim (TL) Düşük / Yüksek
250,25 -3% 17,04 Mr 248,10 / 277,25
282,00 1.9% 14,00 Mr 263,50 / 282,00
73,60 -0.61% 12,02 Mr 69,30 / 73,90
319,00 -4.35% 11,83 Mr 318,50 / 337,75
14,07 -1.05% 10,64 Mr 13,31 / 14,14
Hisse Fiyat Fark% Hacim (TL) Düşük / Yüksek
16,89 0% 1,14 Mr 15,68 / 16,89
73,60 -0.61% 12,02 Mr 69,30 / 73,90
319,00 -4.35% 11,83 Mr 318,50 / 337,75
180,90 2.38% 4,91 Mr 169,80 / 180,90
639,50 2.98% 3,66 Mr 607,50 / 640,00
Hisse Fiyat Fark% Hacim (TL) Düşük / Yüksek
16,89 0% 1,14 Mr 15,68 / 16,89
73,60 -0.61% 12,02 Mr 69,30 / 73,90
92,65 -0.43% 574,22 Mn 89,70 / 93,15
107,60 -1.28% 238,15 Mn 104,20 / 108,10
319,00 -4.35% 11,83 Mr 318,50 / 337,75
Hisse Fiyat Fark% Hacim (TL) Düşük / Yüksek
16,89 0% 1,14 Mr 15,68 / 16,89
29,08 -2.02% 148,99 Mn 27,98 / 29,22
73,60 -0.61% 12,02 Mr 69,30 / 73,90
9,96 -0.99% 226,40 Mn 9,80 / 10,27
67,00 -1.54% 453,42 Mn 65,95 / 68,65
Sayfa 387/387 İlkİlk ... 287337377385386387
Arama sonucu : 3094 madde; 3,089 - 3,094 arası.

Konu: Tradingview

  1. PHP Code:
    //@version=6
    indicator(":)"overlay=truemax_lines_count=50max_labels_count=50)

    // ==========================================
    // 1. AYARLAR
    // ==========================================
    float ayar_genislik input.float(1.0"Genişlik (0.1 - 2.0)"minval=0.1maxval=2.0step=0.1)

    // ==========================================
    // 2. ANA OMURGA MOTORU (HMA 55)
    // ==========================================
    float s_start_sabit 0.02
    float s_inc_sabit   
    0.02
    float s_max_sabit   
    0.2
    int s_smooth_sabit  
    55

    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)

    float mirror_ana f_katman_ana(s_start_sabits_inc_sabits_max_sabits_smooth_sabit)

    // ==========================================
    // 3. MOTOR BLOKLARI (SAR PARAMETRELERİ)
    // ==========================================
    float s_slow_1 ta.sar(0.020.020.2)
    float s_slow_2 ta.sar(0.0150.0150.15)
    float s_slow_3 ta.sar(0.010.010.1)

    float s_fast_1 ta.sar(0.080.050.2
    float s_fast_2 ta.sar(0.010.050.2)
    float s_fast_3 ta.sar(0.040.040.2)
    float avg_fast = (s_fast_1 s_fast_2 s_fast_3) / 3

    // ==========================================
    // 4. YAPAY ZEKA (DL) MODÜLÜ (SÜRTÜNMESİZ)
    // ==========================================
    tanh_fn(v) => (math.exp(-v)) / (math.exp(-v))
    td_fn(s)   => nz((nz(s[1])) / nz(s[1]))

    float in_o tanh_fn(td_fn(open))
    float in_h tanh_fn(td_fn(high))
    float in_l tanh_fn(td_fn(low))
    float in_c tanh_fn(td_fn(close))

    float h0 tanh_fn((in_o 22.4271) + (in_h * -26.6917) + (in_l 4.9371) + (in_c 9.0349) - 10.6929)
    float h1 tanh_fn((in_o * -38.2880) + (in_h 10.0500) + (in_l * -44.7063) + (in_c * -17.8163) + 30.5662)
    float h2 tanh_fn((in_o * -33.9954) + (in_h 14.5017) + (in_l * -43.2865) + (in_c * -13.3874) + 24.7080)
    float h3 tanh_fn((in_o * -14.3929) + (in_h 28.4830) + (in_l * -22.9793) + (in_c * -7.6582) - 5.6505)
    float h4 tanh_fn((in_o 28.8379) + (in_h * -26.3544) + (in_l 0.5206) + (in_c 25.0049) - 17.8832)
    float h5 tanh_fn((in_o * -4.8113) + (in_h * -4.0364) + (in_l * -8.3327) + (in_c * -1.1571) + 0.4667)

    float dl_val tanh_fn((h0 * -22.0533) + (h1 3.6525) + (h2 * -4.3904) + (h3 2.1030) + (h4 20.0272) + (h5 11.5101) - 0.4150)
        
    float ai_factor = (0.2 + (math.abs(dl_val) * 0.5)) * ayar_genislik

    // ==========================================
    // 5. DİNAMİK RENKLİ ATMOSFER VE KALKAN
    // ==========================================
    bool all_fast_below = (close s_fast_1) and (close s_fast_2) and (close s_fast_3
    bool all_fast_above = (close s_fast_1) and (close s_fast_2) and (close s_fast_3

    color core_color all_fast_below color.new(color.green75) : 
                       
    all_fast_above color.new(color.red75) : 
                       
    color.new(color.yellow75)

    float dist_1 math.abs(close s_fast_1) * ai_factor
    float l1_top 
    close dist_1
    float l1_bot 
    close dist_1

    p1_top 
    plot(l1_top"Üst"display=display.none)
    p1_bot plot(l1_bot"Alt"display=display.none)
    fill(p1_topp1_botcolor=core_colortitle="Dinamik Çekirdek")

    int kalkan 0
    if close s_fast_1 
        kalkan 
    += 1
    if close s_fast_2 
        kalkan 
    += 1
    if close s_fast_3 
        kalkan 
    += 1

    if close s_fast_1 and close avg_fast
        kalkan 
    += 1
    if close s_fast_2 and close avg_fast
        kalkan 
    += 1
    if close s_fast_3 and close avg_fast
        kalkan 
    += 1

    color bar_col 
    na
    if kalkan >= 3
        bar_col 
    := close avg_fast color.rgb(023011900) : color.rgb(255828200)
    else if 
    kalkan == 2
        bar_col 
    := color.blue
    else
        
    bar_col := color.fuchsia

    barcolor
    (bar_col)

    // ==========================================
    // 6. ANA OMURGA RENK MANTIĞI
    // ==========================================
    bool makro_al mirror_ana close
    color col_mirror_ana 
    na

    if makro_al
        
    if mirror_ana mirror_ana[1]
            
    col_mirror_ana := color.blue   
        
    else
            
    col_mirror_ana := color.lime   
    else
        if 
    mirror_ana mirror_ana[1]
            
    col_mirror_ana := color.yellow 
        
    else
            
    col_mirror_ana := color.red    

    // ==========================================
    // 7. HAFIZALI SİNYAL MANTIĞI VE TAKİP
    // ==========================================
    bool is_sari = (col_mirror_ana == color.yellow)
    bool is_mavi = (col_mirror_ana == color.blue)

    var 
    int sinyal_durumu 
    bool kesin_al 
    false
    bool kesin_sat 
    false

    var string son_yon "BEKLENİYOR"
    var float son_sinyal_fiyati na

    if barstate.isconfirmed
        
    if is_sari and sinyal_durumu != 1
            kesin_al 
    := true
            sinyal_durumu 
    := 1
            son_yon 
    := "AL"
            
    son_sinyal_fiyati := close
            
        
    if is_mavi and sinyal_durumu != -1
            kesin_sat 
    := true
            sinyal_durumu 
    := -1
            son_yon 
    := "SAT"
            
    son_sinyal_fiyati := close

    // ==========================================
    // 8. ÇİFT YÖNLÜ EVREKA MANTIĞI (TAVAN VE ZEMİN)
    // ==========================================
    var float evreka_tepe na
    var float evreka_dip na

    bool is_green_core 
    all_fast_below
    bool is_red_core 
    all_fast_above

    if is_green_core
        evreka_tepe 
    := na(evreka_tepe) ? l1_top math.max(evreka_tepel1_top)

    if 
    is_red_core
        evreka_dip 
    := na(evreka_dip) ? l1_bot math.min(evreka_dipl1_bot)

    if 
    close s_slow_1
        evreka_tepe 
    := na
    if close s_slow_1
        evreka_dip 
    := na

    bool evreka_direnc_kirilim 
    ta.crossover(mirror_anaevreka_tepe) and barstate.isconfirmed
    bool evreka_destek_kirilim 
    ta.crossunder(mirror_anaevreka_dip) and barstate.isconfirmed

    // ==========================================
    // 9. YENİ: Aİ TABANLI DİNAMİK STOP (ESNEYEN ZIRH)
    // ==========================================
    // Yapay zeka ivmesine göre esneyen stop çarpanı (Trendde 1.0'a daralır, Testerede 2.5'e genişler)
    float stop_genis 2.5
    float stop_dar 
    1.0
    float stop_carpan 
    stop_genis - (math.abs(dl_val) * (stop_genis stop_dar))
    float stop_mesafe ta.atr(14) * stop_carpan

    var float din_stop na

    if sinyal_durumu == // AL Sinyali aktifse (Long Stop Takipli)
        
    float ham_stop close stop_mesafe
        din_stop 
    := (sinyal_durumu[1] != 1) ? ham_stop math.max(nz(din_stop[1], ham_stop), ham_stop)
    else if 
    sinyal_durumu == -// SAT Sinyali aktifse (Short Stop Takipli)
        
    float ham_stop close stop_mesafe
        din_stop 
    := (sinyal_durumu[1] != -1) ? ham_stop math.min(nz(din_stop[1], ham_stop), ham_stop)

    // Dinamik Stop Görseli (Küçük Yuvarlak Noktalar)
    plot(sinyal_durumu == din_stop na"Dinamik Stop (AL)"color=color.new(color.lime30), style=plot.style_circleslinewidth=1)
    plot(sinyal_durumu == -din_stop na"Dinamik Stop (SAT)"color=color.new(color.red30), style=plot.style_circleslinewidth=1)

    // ==========================================
    // 10. HAFİF VİTES (REJİM) ETİKETLERİ
    // ==========================================
    float cross_val ta.cross(closes_fast_1) ? 1.0 0.0
    float flip_count 
    math.sum(cross_val100)

    int vites flip_count 15 : (flip_count 2)
    color vites_col vites == color.red : (vites == color.lime color.yellow)

    if 
    bar_index == 0
        label
    .new(bar_indexclose s_fast_1 s_fast_1 ta.atr(14)*0.5 s_fast_1 ta.atr(14)*0.5str.tostring(vites), style=label.style_nonetextcolor=color.new(vites_col30), size=size.small)

    // ==========================================
    // 11. GÖRSELLEŞTİRME VE ALARMLAR
    // ==========================================
    plot(mirror_ana"0"color=col_mirror_analinewidth=3style=plot.style_stepline)
    plot(evreka_tepe"+1"color=color.new(color.fuchsia100), style=plot.style_linebrlinewidth=2)
    plot(evreka_dip"-1"color=color.new(color.fuchsia100), style=plot.style_linebrlinewidth=2)

    plotshape(kesin_al"Sarı Başladı (AL)"shape.labeluplocation.belowbarcolor.rgb(25523559), text="L"textcolor=color.blacksize=size.small)
    plotshape(kesin_sat"Mavi Başladı (SAT)"shape.labeldownlocation.abovebarcolor.rgb(33150243), text="S"textcolor=color.whitesize=size.small)

    plotshape(evreka_direnc_kirilim"(@yörük@) DİRENÇ"shape.flaglocation.abovebarcolor.fuchsiatext="DİR\n(@yörük@)"textcolor=color.fuchsiasize=size.small)
    plotshape(evreka_destek_kirilim"(@yörük@) DESTEK"shape.flaglocation.belowbarcolor.fuchsiatext="DES\n(@yörük@)"textcolor=color.fuchsiasize=size.small)

    alertcondition(evreka_direnc_kirilimtitle="💎 EVREKA (KOPUŞ!)"message="Sistem: Ana Trend, Çekirdek Tepeyi aştı!")
    alertcondition(evreka_destek_kirilimtitle="⚠️ EVREKA (ÇÖKÜŞ!)"message="Sistem: Ana Trend, Çekirdek Dibi aşağı kırdı!")

    // ==========================================
    // 12. KOMUTA MERKEZİ (DASHBOARD)
    // ==========================================
    var table dash table.new(position.top_right316border_width 1border_color color.new(color.gray80))

    if 
    barstate.islast
        table
    .cell(dash00"Yatırım Tavsiyesi DEĞİLDİR."text_color=color.whitebgcolor=color.new(color.black20), text_size=size.normaltext_halign=text.align_center)
        
    table.merge_cells(dash0020)
        
        
    table.cell(dash01"Fiyat:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash11str.tostring(closeformat.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1121)

        
    string v_txt vites == "TESTERE (1)" vites == "TREND (3)" "NÖTR (2)"
        
    table.cell(dash02"Piyasa Vitesi:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash12v_txttext_color=vites_colbgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1222)

        
    string sig_text son_yon == "BEKLENİYOR" "YOK" son_yon " @ " str.tostring(son_sinyal_fiyatiformat.mintick)
        
    color sig_color son_yon == "AL" color.rgb(25523559) : son_yon == "SAT" color.rgb(33150243) : color.gray
        table
    .cell(dash03"Son Sinyal:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash13sig_texttext_color=sig_colorbgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1323)

        
    // YENİ: DİNAMİK STOP (ESNEYEN ZIRH) SATIRI
        
    string stop_txt na(din_stop) ? "HESAPLANIYOR" str.tostring(din_stopformat.mintick)
        
    color stop_renk sinyal_durumu == color.lime : (sinyal_durumu == -color.red color.gray)
        
    table.cell(dash04"Aİ Dinamik Stop:"text_color=color.yellowbgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash14stop_txttext_color=stop_renkbgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1424)

        
    table.cell(dash05"Trend:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash15str.tostring(mirror_anaformat.mintick), text_color=col_mirror_anabgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1525)

        
    string evreka_tepe_str na(evreka_tepe) ? "BEKLENİYOR" str.tostring(evreka_tepeformat.mintick)
        
    table.cell(dash06"Oto Direnç:"text_color=color.fuchsiabgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash16evreka_tepe_strtext_color=color.fuchsiabgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1626)

        
    string evreka_dip_str na(evreka_dip) ? "BEKLENİYOR" str.tostring(evreka_dipformat.mintick)
        
    table.cell(dash07"Oto Destek:"text_color=color.fuchsiabgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash17evreka_dip_strtext_color=color.fuchsiabgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1727)

        
    table.cell(dash08"--- Aİ-HIZLI (@yörük@) ---"text_color=color.yellowbgcolor=color.new(color.black20), text_halign=text.align_center)
        
    table.merge_cells(dash0828)

        
    table.cell(dash09"1:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash19str.tostring(s_fast_1format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash29close s_fast_1 "AL" "SAT"text_color=close s_fast_1 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

        
    table.cell(dash010"2:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash110str.tostring(s_fast_2format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash210close s_fast_2 "AL" "SAT"text_color=close s_fast_2 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

        
    table.cell(dash011"3:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash111str.tostring(s_fast_3format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash211close s_fast_3 "AL" "SAT"text_color=close s_fast_3 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

        
    table.cell(dash012"--- Aİ-YAVAŞ (@yörük@) ---"text_color=color.yellowbgcolor=color.new(color.black20), text_halign=text.align_center)
        
    table.merge_cells(dash012212)

        
    table.cell(dash013"4:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash113str.tostring(s_slow_1format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash213close s_slow_1 "AL" "SAT"text_color=close s_slow_1 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

        
    table.cell(dash014"5:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash114str.tostring(s_slow_2format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash214close s_slow_2 "AL" "SAT"text_color=close s_slow_2 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

        
    table.cell(dash015"6:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash115str.tostring(s_slow_3format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash215close s_slow_3 "AL" "SAT"text_color=close s_slow_3 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

    var 
    table ytd_table table.new(position.bottom_center11)
    if 
    barstate.islast
        table
    .cell(ytd_table00"(Aİ) - Eğitim çalışmasıdır. Yatırım tavsiyesi KULLANILAMAZ."text_color=color.new(color.white00), text_size=size.small
    16.07.2024 - 10.12.2024

  2. PHP Code:
    //@version=6
    indicator(":)"overlay=truemax_lines_count=50max_labels_count=50)

    // ┌──────────────────────────────────────────────────────────────────────────────┐
    // │ 1. AYARLAR VE ANA OMURGA (ATMOSFER)                                          │
    // └──────────────────────────────────────────────────────────────────────────────┘
    float ayar_genislik input.float(1.0"Genişlik (0.1 - 2.0)"minval=0.1maxval=2.0step=0.1)

    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)

    float mirror_ana f_katman_ana(0.020.020.221)

    // ┌──────────────────────────────────────────────────────────────────────────────┐
    // │ 2. Aİ MOTOR BLOKLARI VE DERİN ÖĞRENME HESAPLAMALARI                          │
    // └──────────────────────────────────────────────────────────────────────────────┘
    float s_slow_1 ta.sar(0.020.020.2)
    float s_slow_2 ta.sar(0.0150.0150.15)
    float s_slow_3 ta.sar(0.010.010.1)

    float s_fast_1 ta.sar(0.080.050.2
    float s_fast_2 ta.sar(0.010.050.2)
    float s_fast_3 ta.sar(0.040.040.2)
    float avg_fast = (s_fast_1 s_fast_2 s_fast_3) / 3

    tanh_fn
    (v) => (math.exp(-v)) / (math.exp(-v))
    td_fn(s)   => nz((nz(s[1])) / nz(s[1]))

    float in_o tanh_fn(td_fn(open))
    float in_h tanh_fn(td_fn(high))
    float in_l tanh_fn(td_fn(low))
    float in_c tanh_fn(td_fn(close))

    float h0 tanh_fn((in_o 22.4271) + (in_h * -26.6917) + (in_l 4.9371) + (in_c 9.0349) - 10.6929)
    float h1 tanh_fn((in_o * -38.2880) + (in_h 10.0500) + (in_l * -44.7063) + (in_c * -17.8163) + 30.5662)
    float h2 tanh_fn((in_o * -33.9954) + (in_h 14.5017) + (in_l * -43.2865) + (in_c * -13.3874) + 24.7080)
    float h3 tanh_fn((in_o * -14.3929) + (in_h 28.4830) + (in_l * -22.9793) + (in_c * -7.6582) - 5.6505)
    float h4 tanh_fn((in_o 28.8379) + (in_h * -26.3544) + (in_l 0.5206) + (in_c 25.0049) - 17.8832)
    float h5 tanh_fn((in_o * -4.8113) + (in_h * -4.0364) + (in_l * -8.3327) + (in_c * -1.1571) + 0.4667)

    float dl_val tanh_fn((h0 * -22.0533) + (h1 3.6525) + (h2 * -4.3904) + (h3 2.1030) + (h4 20.0272) + (h5 11.5101) - 0.4150)
    float ai_factor = (0.2 + (math.abs(dl_val) * 0.5)) * ayar_genislik

    // Ana Omurga Renk Mantığı
    bool makro_al mirror_ana close
    color col_mirror_ana 
    makro_al ? (mirror_ana mirror_ana[1] ? color.blue color.lime) : (mirror_ana mirror_ana[1] ? color.yellow color.red)

    var 
    string son_yon "BEKLENİYOR"
    var float son_sinyal_fiyati na
    if barstate.isconfirmed
        
    if col_mirror_ana == color.yellow and son_yon != "AL"
            
    son_yon := "AL"
            
    son_sinyal_fiyati := close
        
    if col_mirror_ana == color.blue and son_yon != "SAT"
            
    son_yon := "SAT"
            
    son_sinyal_fiyati := close

    // ┌──────────────────────────────────────────────────────────────────────────────┐
    // │ 3. SAF MTK-3 ÇİFTE KIRILIM MOTORU (MUSA'NIN ASASI)                           │
    // └──────────────────────────────────────────────────────────────────────────────┘
    sarStart input.float(0.01"Basınç Başlangıcı"group="MTK-3 Motoru")
    sarInc   input.float(0.02"Basınç İvmesi"group="MTK-3 Motoru")
    sarMax   input.float(0.2,  "Maksimum Tazyik"group="MTK-3 Motoru")
    direncPeriyodu input.int(2"Kapakçık (Sınır) Periyodu"group="MTK-3 Motoru")

    psarVal  ta.sar(sarStartsarIncsarMax)
    ustKapak ta.highest(highdirencPeriyodu)[1]
    altKapak ta.lowest(lowdirencPeriyodu)[1]

    // İkisini Birden Kırma Anı
    ciftKirilimAtim    ta.crossover(closepsarVal) and (close ustKapak)
    ciftKirilimGevseme ta.crossunder(closepsarVal) and (close altKapak)

    // Mutlak Hedefler (Yeni Evreka)
    var float tepeHedef na
    var float dipHedef  na

    if ciftKirilimAtim
        dipHedef 
    := ta.lowest(lowdirencPeriyodu 2)[1]
    if 
    ciftKirilimGevseme
        tepeHedef 
    := ta.highest(highdirencPeriyodu 2)[1]

    // ┌──────────────────────────────────────────────────────────────────────────────┐
    // │ 4. GÖRSELLEŞTİRME VE ALARMLAR                                                │
    // └──────────────────────────────────────────────────────────────────────────────┘
    plot(mirror_ana"Ana Trend"color=col_mirror_analinewidth=3style=plot.style_stepline)
    plot(psarVal"@yörük@"style=plot.style_crosscolor=close psarVal color.yellow color.bluelinewidth=2)

    plot(tepeHedef"O-Tepe"color=color.new(color.blue30), style=plot.style_linebrlinewidth=1)
    plot(dipHedef,  "O-Dip",  color=color.new(color.yellow30), style=plot.style_linebrlinewidth=1)

    plotshape(ciftKirilimAtim"(@yörük@) DİRENÇ"shape.flaglocation.abovebarcolor.fuchsiatext="DİR\n(@yörük@)"textcolor=color.fuchsiasize=size.small)
    plotshape(ciftKirilimGevseme"(@yörük@) DESTEK"shape.flaglocation.belowbarcolor.fuchsiatext="DES\n(@yörük@)"textcolor=color.fuchsiasize=size.small)

    alertcondition(ciftKirilimAtimtitle="💎 EVREKA (KOPUŞ!)"message="Sistem: Çifte Kırılım Gerçekleşti, Tazyik Yukarı!")
    alertcondition(ciftKirilimGevsemetitle="⚠️ EVREKA (ÇÖKÜŞ!)"message="Sistem: Çifte Kırılım Gerçekleşti, Tazyik Aşağı!")

    var 
    int mtkDongu 0
    if ciftKirilimAtim
        mtkDongu 
    := 1
    else if ciftKirilimGevseme
        mtkDongu 
    := -1

    bgcolor
    (mtkDongu == color.new(color.lime90) : mtkDongu == -color.new(color.red90) : natitle="Döngü Formu")

    // ┌──────────────────────────────────────────────────────────────────────────────┐
    // │ 5. KOMUTA MERKEZİ (DASHBOARD)                                                │
    // └──────────────────────────────────────────────────────────────────────────────┘
    var table dash table.new(position.top_right314border_width 1border_color color.new(color.gray80))

    if 
    barstate.islast
        table
    .cell(dash00"Yatırım Tavsiyesi DEĞİLDİR."text_color=color.whitebgcolor=color.new(color.black20), text_size=size.normaltext_halign=text.align_center)
        
    table.merge_cells(dash0020)
        
        
    table.cell(dash01"Fiyat:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash11str.tostring(closeformat.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1121)

        
    string sig_text son_yon == "BEKLENİYOR" "YOK" son_yon " @ " str.tostring(son_sinyal_fiyatiformat.mintick)
        
    color sig_color son_yon == "AL" color.rgb(25523559) : son_yon == "SAT" color.rgb(33150243) : color.gray
        table
    .cell(dash02"Son Sinyal:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash12sig_texttext_color=sig_colorbgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1222)

        
    table.cell(dash03"Trend:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash13str.tostring(mirror_anaformat.mintick), text_color=col_mirror_anabgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1323)

        
    string evreka_tepe_str na(tepeHedef) ? "BEKLENİYOR" str.tostring(tepeHedefformat.mintick)
        
    table.cell(dash04"Oto Direnç:"text_color=color.fuchsiabgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash14evreka_tepe_strtext_color=color.fuchsiabgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1424)

        
    string evreka_dip_str na(dipHedef) ? "BEKLENİYOR" str.tostring(dipHedefformat.mintick)
        
    table.cell(dash05"Oto Destek:"text_color=color.fuchsiabgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash15evreka_dip_strtext_color=color.fuchsiabgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1525)

        
    table.cell(dash06"--- Aİ-HIZLI (@yörük@) ---"text_color=color.yellowbgcolor=color.new(color.black20), text_halign=text.align_center)
        
    table.merge_cells(dash0626)

        
    table.cell(dash07"1:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash17str.tostring(s_fast_1format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash27close s_fast_1 "AL" "SAT"text_color=close s_fast_1 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

        
    table.cell(dash08"2:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash18str.tostring(s_fast_2format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash28close s_fast_2 "AL" "SAT"text_color=close s_fast_2 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

        
    table.cell(dash09"3:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash19str.tostring(s_fast_3format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash29close s_fast_3 "AL" "SAT"text_color=close s_fast_3 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

        
    table.cell(dash010"--- Aİ-YAVAŞ (@yörük@) ---"text_color=color.yellowbgcolor=color.new(color.black20), text_halign=text.align_center)
        
    table.merge_cells(dash010210)

        
    table.cell(dash011"4:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash111str.tostring(s_slow_1format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash211close s_slow_1 "AL" "SAT"text_color=close s_slow_1 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

        
    table.cell(dash012"5:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash112str.tostring(s_slow_2format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash212close s_slow_2 "AL" "SAT"text_color=close s_slow_2 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

        
    table.cell(dash013"6:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash113str.tostring(s_slow_3format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash213close s_slow_3 "AL" "SAT"text_color=close s_slow_3 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

    var 
    table ytd_table table.new(position.bottom_center11)
    if 
    barstate.islast
        table
    .cell(ytd_table00"(Aİ) - Eğitim çalışmasıdır. Yatırım tavsiyesi KULLANILAMAZ."text_color=color.new(color.white00), text_size=size.small
    16.07.2024 - 10.12.2024

  3. PHP Code:
    //@version=6
    indicator(":]"overlay=truemax_lines_count=50max_labels_count=500)

    // ==========================================
    // 1. AYARLAR
    // ==========================================
    float ayar_genislik input.float(1.0"Ana Atmosfer Çarpanı"minval=0.1maxval=2.0step=0.1)

    // ==========================================
    // 2. MOTOR BLOKLARI (PARAMETRELER)
    // ==========================================
    float s_slow_1 ta.sar(0.020.020.2)
    float s_slow_2 ta.sar(0.0150.0150.15)
    float s_slow_3 ta.sar(0.010.010.1)

    float s_fast_1 ta.sar(0.080.050.2
    float s_fast_2 ta.sar(0.010.050.2)
    float s_fast_3 ta.sar(0.040.040.2)
    float avg_fast = (s_fast_1 s_fast_2 s_fast_3) / 3

    // ==========================================
    // 3. YAPAY ZEKA (DL) MODÜLÜ (ATMOSFER ESNEKLİĞİ)
    // ==========================================
    tanh_fn(v) => (math.exp(-v)) / (math.exp(-v))
    td_fn(s)   => nz((nz(s[1])) / nz(s[1]))

    var 
    w_c = array.from(22.4271, -26.69174.93719.0349, -10.6929, -38.288010.0500, -44.7063, -17.816330.5662, -33.995414.5017, -43.2865, -13.387424.7080, -14.392928.4830, -22.9793, -7.6582, -5.650528.8379, -26.35440.520625.0049, -17.8832, -4.8113, -4.0364, -8.3327, -1.15710.4667, -22.05333.6525, -4.39042.103020.027211.5101, -0.4150)
    n_in = array.from(tanh_fn(td_fn(open)), tanh_fn(td_fn(high)), tanh_fn(td_fn(low)), tanh_fn(td_fn(close)))

    f_calc_dl(n_arrw_arr) =>
        
    float out 0.0
        
    for 0 to 5
            float s 
    0.0
            
    for 0 to 3
                s 
    += array.get(n_arrj) * array.get(w_arr, (5) + j)
            
    out += tanh_fn(+ array.get(w_arr, (5) + 4)) * array.get(w_arr30 i)
        
    tanh_fn(out + array.get(w_arr36))
        
    float dl_val f_calc_dl(n_inw_c)
    // Temel AI katsayısı
    float ai_factor = (0.2 + (math.abs(dl_val) * 0.5)) * ayar_genislik

    // ==========================================
    // 4. DİNAMİK RENKLİ ATMOSFER (3 KADEMELİ NİŞANGAH)
    // ==========================================
    bool all_fast_below = (close s_fast_1) and (close s_fast_2) and (close s_fast_3
    bool all_fast_above = (close s_fast_1) and (close s_fast_2) and (close s_fast_3

    // Ana Renk
    color base_color all_fast_below color.green all_fast_above color.maroon color.yellow

    // Sadece s_fast_1'i kullanarak temel mesafeyi (dist_base) buluyoruz
    float dist_base math.abs(close s_fast_1) * ai_factor

    // Senin Oranların: 0.5 (Vurkaç), 1.0 (Trend), 2.0 (Swing)
    float dist_vurkac dist_base 0.5
    float dist_trend  
    dist_base 1.0
    float dist_swing  
    dist_base 2.0

    // Çizgilerin Hazırlanması
    p_swing_top  plot(close dist_swingdisplay=display.none)
    p_swing_bot  plot(close dist_swingdisplay=display.none)

    p_trend_top  plot(close dist_trenddisplay=display.none)
    p_trend_bot  plot(close dist_trenddisplay=display.none)

    p_vurkac_top plot(close dist_vurkacdisplay=display.none)
    p_vurkac_bot plot(close dist_vurkacdisplay=display.none)

    // En dıştan (şeffaf) en içe (koyu) doğru boyama yapıyoruz ki renkler ezilmesin
    fill(p_swing_top,  p_swing_bot,  color=color.new(base_color75), title="Swing Alanı (2.0x)")
    fill(p_trend_top,  p_trend_bot,  color=color.new(base_color55), title="Trend Alanı (1.0x)")
    fill(p_vurkac_topp_vurkac_botcolor=color.new(base_color35), title="Vurkaç Alanı (0.5x)")

    // ==========================================
    // 5. KALKAN GÜCÜ (MUM BOYAMA)
    // ==========================================
    int kalkan 0
    if close s_fast_1 
        kalkan 
    += 1
    if close s_fast_2 
        kalkan 
    += 1
    if close s_fast_3 
        kalkan 
    += 1

    if close s_fast_1 and close avg_fast
        kalkan 
    += 1
    if close s_fast_2 and close avg_fast
        kalkan 
    += 1
    if close s_fast_3 and close avg_fast
        kalkan 
    += 1

    color bar_col 
    na
    if kalkan >= 3
        bar_col 
    := close avg_fast color.rgb(023011900) : color.rgb(255828200)
    else if 
    kalkan == 2
        bar_col 
    := color.blue
    else
        
    bar_col := color.fuchsia

    barcolor
    (bar_col)

    // ==========================================
    // 6. ÇOKLU MİZAN (DENGE) AĞI (7 - 14 - 21 - 55 - 100)
    // ==========================================
    f_hakiki_mizan(_sar_sm) =>
        
    float _delta math.abs(close _sar)
        
    float _raw close _sar close _delta close _delta
        float _mirror 
    ta.hma(_raw_sm)
        
        
    bool _dondu_asagi  _mirror _mirror[1] and _mirror[1] > _mirror[2]
        
    bool _dondu_yukari _mirror _mirror[1] and _mirror[1] < _mirror[2]
        
        var 
    float _tepe na
        
    var float _dip  na
        
        
    if _dondu_asagi
            _tepe 
    := _mirror[1]
        if 
    _dondu_yukari
            _dip 
    := _mirror[1]
            
        (
    _tepe _dip) / 2

    float mizan_7   
    f_hakiki_mizan(s_fast_13)
    float mizan_14  f_hakiki_mizan(s_fast_17)
    float mizan_21  f_hakiki_mizan(s_fast_121)
    float mizan_55  f_hakiki_mizan(s_fast_155)
    float mizan_100 f_hakiki_mizan(s_fast_1100)

    plot(mizan_7,   "Ayna-İlk",   color=color.new(color.white0),   linewidth=1)
    //plot(mizan_14,  "2",  color=color.new(color.aqua, 00),    linewidth=1)
    plot(mizan_21,  "Ayna -Denge",  color=color.new(color.yellow00),   linewidth=1)
    //plot(mizan_55,  "4",  color=color.new(color.orange, 00),   linewidth=1)
    plot(mizan_100"Ayna-Son"color=color.new(color.fuchsia0),  linewidth=1)

    // İMZA
    var table ytd_table table.new(position.bottom_center11)
    if 
    barstate.islast
        table
    .cell(ytd_table00"(Aİ) eğitim çalışmasıdır. Yatırım tavsiyesi KULLANILAMAZ."text_color=color.new(color.white00), text_size=size.normal)
    ///

    //@function Calculates Parabolic SAR Extended with asymmetric acceleration factors
    //@param start_value Explicit start value (0=auto-detect, >0=force long, <0=force short)
    //@param offset_on_reverse Offset applied to SAR on each reversal
    //@param af_init_long Initial AF for long positions
    //@param af_long AF increment per new high in long mode
    //@param af_max_long Maximum AF for long positions
    //@param af_init_short Initial AF for short positions
    //@param af_short AF increment per new low in short mode
    //@param af_max_short Maximum AF for short positions
    //@returns Sign-encoded SAR: positive=long (SAR below price), negative=short (SAR above price)
    //@optimized O(1) per bar state machine, asymmetric AF for long/short
    sarext(simple float start_value=0.0simple float offset_on_reverse=0.0,
           
    simple float af_init_long=0.02simple float af_long=0.02simple float af_max_long=0.20,
           
    simple float af_init_short=0.02simple float af_short=0.02simple 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
            
    // Bar 0: store first bar, no output yet (need 2 bars for DM)
            
    result := na
        
    else if bar_index == 1
            
    // Bar 1: determine initial direction
            
    if start_value 0
                
    // Forced long
                
    is_long := true
                sar 
    := math.abs(start_value)
            else if 
    start_value 0
                
    // Forced short
                
    is_long := false
                sar 
    := math.abs(start_value)
            else
                
    // Auto-detect from directional movement
                
    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
                
    // Initial SAR from prior bar extreme
                
    sar := is_long low[1] : high[1]

            
    // Set initial EP and AF
            
    ep := is_long high low
            af 
    := is_long af_init_long af_init_short

            
    // Clamp SAR
            
    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

            
    // Sign-encode
            
    result := is_long sar : -sar
        
    else
            
    // Bar 2+: standard SAR with asymmetric AF
            
    float new_sar sar af * (ep sar)

            if 
    is_long
                
    // Clamp to prior lows
                
    new_sar := math.min(new_sarlow[1])
                
    new_sar := math.min(new_sarlow[2])

                
    // Reversal check
                
    if low new_sar
                    
    // Reverse to short
                    
    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
                    
    // New extreme point?
                    
    if high ep
                        ep 
    := high
                        af 
    := math.min(af af_longaf_max_long)
            else
                
    // Short mode: clamp to prior highs
                
    new_sar := math.max(new_sarhigh[1])
                
    new_sar := math.max(new_sarhigh[2])

                
    // Reversal check
                
    if high new_sar
                    
    // Reverse to long
                    
    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
                    
    // New extreme point?
                    
    if low ep
                        ep 
    := low
                        af 
    := math.min(af af_shortaf_max_short)

            
    sar := new_sar
            result 
    := is_long new_sar : -new_sar

        result

    // ---------- Main loop ----------

    // Inputs
    i_start_value     input.float(0.0,  "Start Value",       step=0.1,                        tooltip="0=auto-detect, >0=force long, <0=force short")
    i_offset_reverse  input.float(0.0,  "Offset on Reverse"minval=0.0step=0.1,            tooltip="Buffer added to SAR on reversal")
    i_af_init_long    input.float(0.002"AF Init Long",      minval=0.0maxval=1.0step=0.001)
    i_af_long         input.float(0.02"AF Long",           minval=0.0maxval=1.0step=0.001)
    i_af_max_long     input.float(0.20"AF Max Long",       minval=0.0maxval=1.0step=0.01)
    i_af_init_short   input.float(0.002"AF Init Short",     minval=0.0maxval=1.0step=0.001)
    i_af_short        input.float(0.02"AF Short",          minval=0.0maxval=1.0step=0.001)
    i_af_max_short    input.float(0.20"AF Max Short",      minval=0.0maxval=1.0step=0.01)

    // Calculation
    sarext_val sarext(i_start_valuei_offset_reverse,
                        
    i_af_init_longi_af_longi_af_max_long,
                        
    i_af_init_shorti_af_shorti_af_max_short)

    // Decode sign: absolute value = SAR level, sign = direction
    sar_abs math.abs(sarext_val)
    sar_long  sarext_val sar_abs na
    sar_short 
    sarext_val sar_abs na

    // Plot
    plot(sar_long,  "+1",  color=color.whitestyle=plot.style_linebrlinewidth=4)
    plot(sar_short"-1"color=color.fuchsia,   style=plot.style_linebrlinewidth=4)
    /////////// 
    16.07.2024 - 10.12.2024

  4. PHP Code:
    //@version=6
    indicator(":]"overlay=truemax_lines_count=50max_labels_count=500)

    // ==========================================
    // 1. AYARLAR
    // ==========================================
    float ayar_genislik input.float(1.0"Ana Atmosfer Çarpanı"minval=0.1maxval=2.0step=0.1)

    // ==========================================
    // 2. MOTOR BLOKLARI (PSAR)
    // ==========================================
    float s_slow_1 ta.sar(0.020.020.2)
    float s_slow_2 ta.sar(0.0150.0150.15)
    float s_slow_3 ta.sar(0.010.010.1)

    float s_fast_1 ta.sar(0.080.050.2
    float s_fast_2 ta.sar(0.010.050.2)
    float s_fast_3 ta.sar(0.040.040.2)
    float avg_fast = (s_fast_1 s_fast_2 s_fast_3) / 3

    // ==========================================
    // 3. YAPAY ZEKA (DL) ATMOSFERİ (ARKA PLAN HESABI)
    // ==========================================
    // Atmosfer ekranda görünmeyecek ama arka planda SuperTrend kalkanını (dist_swing) hesaplayacak.
    tanh_fn(v) => (math.exp(-v)) / (math.exp(-v))
    td_fn(s)   => nz((nz(s[1])) / nz(s[1]))

    var 
    w_c = array.from(22.4271, -26.69174.93719.0349, -10.6929, -38.288010.0500, -44.7063, -17.816330.5662, -33.995414.5017, -43.2865, -13.387424.7080, -14.392928.4830, -22.9793, -7.6582, -5.650528.8379, -26.35440.520625.0049, -17.8832, -4.8113, -4.0364, -8.3327, -1.15710.4667, -22.05333.6525, -4.39042.103020.027211.5101, -0.4150)
    n_in = array.from(tanh_fn(td_fn(open)), tanh_fn(td_fn(high)), tanh_fn(td_fn(low)), tanh_fn(td_fn(close)))

    f_calc_dl(n_arrw_arr) =>
        
    float out 0.0
        
    for 0 to 5
            float s 
    0.0
            
    for 0 to 3
                s 
    += array.get(n_arrj) * array.get(w_arr, (5) + j)
            
    out += tanh_fn(+ array.get(w_arr, (5) + 4)) * array.get(w_arr30 i)
        
    tanh_fn(out + array.get(w_arr36))
        
    float dl_val f_calc_dl(n_inw_c)
    float ai_factor = (0.2 + (math.abs(dl_val) * 0.5)) * ayar_genislik

    float dist_base 
    math.abs(close s_fast_1) * ai_factor
    float dist_swing  
    dist_base 2.0
    float l1_top 
    close dist_base
    float l1_bot 
    close dist_base

    // ==========================================
    // 4. MİZAN 100 (KADİM EKSEN - GÖRÜNÜR)
    // ==========================================
    f_hakiki_mizan(_sar_sm) =>
        
    float _delta math.abs(close _sar)
        
    float _raw close _sar close _delta close _delta
        float _mirror 
    ta.hma(_raw_sm)
        
    bool _dondu_asagi  _mirror _mirror[1] and _mirror[1] > _mirror[2]
        
    bool _dondu_yukari _mirror _mirror[1] and _mirror[1] < _mirror[2]
        var 
    float _tepe na
        
    var float _dip  na
        
    if _dondu_asagi
            _tepe 
    := _mirror[1]
        if 
    _dondu_yukari
            _dip 
    := _mirror[1]
        (
    _tepe _dip) / 2

    float mizan_100 
    f_hakiki_mizan(s_fast_1100)
    plot(mizan_100"Mizan 100"color=color.new(color.fuchsia0), linewidth=3)

    // ==========================================
    // 5. ÖZ ÇEKİRDEK SUPERTREND VE İTTİFAK ONAYI (GÖRÜNÜR)
    // ==========================================
    float ust_band avg_fast dist_swing
    float alt_band 
    avg_fast dist_swing

    var int   oz_st_yon 1
    var float oz_st_cizgi na

    if oz_st_yon == 1
        oz_st_cizgi 
    := math.max(nz(oz_st_cizgi[1], alt_band), alt_band)
        if 
    close oz_st_cizgi
            oz_st_yon 
    := -1
            oz_st_cizgi 
    := ust_band
    else
        
    oz_st_cizgi := math.min(nz(oz_st_cizgi[1], ust_band), ust_band)
        if 
    close oz_st_cizgi
            oz_st_yon 
    := 1
            oz_st_cizgi 
    := alt_band

    bool mizan_AL_onayi  
    close mizan_100
    bool mizan_SAT_onayi 
    close mizan_100

    color oz_st_renk 
    = (oz_st_yon == and mizan_AL_onayi) ? color.new(color.lime0) : 
                       (
    oz_st_yon == -and mizan_SAT_onayi) ? color.new(color.red0) : 
                       
    color.new(color.gray80

    plot(oz_st_cizgi"SuperTrend"color=oz_st_renkstyle=plot.style_steplinelinewidth=2)

    bool st_AL_kesti  oz_st_yon == and oz_st_yon[1] == -1
    bool st_SAT_kesti 
    oz_st_yon == -and oz_st_yon[1] == 1

    bool ittifak_AL  
    st_AL_kesti and mizan_AL_onayi
    bool ittifak_SAT 
    st_SAT_kesti and mizan_SAT_onayi

    // ==========================================
    // 6. PSAR MOTORUNA BAĞLI VİTES OKLARI (GÖRÜNÜR)
    // ==========================================
    int bull_sar_sayisi = (close s_fast_1 0) + (close s_fast_2 0) + (close s_fast_3 0)
    int bear_sar_sayisi = (close s_fast_1 0) + (close s_fast_2 0) + (close s_fast_3 0)

    bool ok_yukari bull_sar_sayisi bear_sar_sayisi
    bool ok_asagi  
    bear_sar_sayisi bull_sar_sayisi

    int psar_vitesi 
    math.max(bull_sar_sayisibear_sar_sayisi)
    color ok_rengi psar_vitesi == color.new(color.red0) : psar_vitesi == color.new(color.yellow0) : color.new(color.lime0)

    plotshape(ok_yukarititle="Vites Yukarı"style=shape.arrowup,   location=location.belowbarcolor=ok_rengisize=size.small)
    plotshape(ok_asagi,  title="Vites Aşağı",  style=shape.arrowdownlocation=location.abovebarcolor=ok_rengisize=size.small)

    // ==========================================
    // 7. EVREKA MANTIĞI (DESTEK/DİRENÇ ÇİZGİLERİ GİZLENDİ, TABLODA DURUYOR)
    // ==========================================
    bool all_fast_below = (close s_fast_1) and (close s_fast_2) and (close s_fast_3
    bool all_fast_above = (close s_fast_1) and (close s_fast_2) and (close s_fast_3

    var 
    float evreka_tepe close
    var float evreka_dip  close

    if all_fast_below
        evreka_tepe 
    := math.max(evreka_tepel1_top)
    if 
    all_fast_above
        evreka_dip 
    := math.min(evreka_dipl1_bot)

    if 
    ta.crossunder(closes_slow_1)
        
    evreka_tepe := l1_top
    if ta.crossover(closes_slow_1)
        
    evreka_dip := l1_bot

    // ==========================================
    // 8. EXTENDED SAR FONKSİYONU VE ÇİZİMİ (GÖRÜNÜR)
    // ==========================================
    sarext(simple float start_value=0.0simple float offset_on_reverse=0.0,
           
    simple float af_init_long=0.02simple float af_long=0.02simple float af_max_long=0.20,
           
    simple float af_init_short=0.02simple float af_short=0.02simple 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_sarlow[1])
                
    new_sar := math.min(new_sarlow[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_longaf_max_long)
            else
                
    new_sar := math.max(new_sarhigh[1])
                
    new_sar := math.max(new_sarhigh[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_shortaf_max_short)

            
    sar := new_sar
            result 
    := is_long new_sar : -new_sar

        result

    i_start_value     
    input.float(0.0,  "Start Value",       step=0.1tooltip="0=auto, >0=long, <0=short"group="Genişletilmiş SAR")
    i_offset_reverse  input.float(0.0,  "Offset on Reverse"minval=0.0step=0.1group="Genişletilmiş SAR")
    i_af_init_long    input.float(0.002"AF Init Long",      minval=0.0maxval=1.0step=0.001group="Genişletilmiş SAR")
    i_af_long         input.float(0.02"AF Long",           minval=0.0maxval=1.0step=0.001group="Genişletilmiş SAR")
    i_af_max_long     input.float(0.20"AF Max Long",       minval=0.0maxval=1.0step=0.01group="Genişletilmiş SAR")
    i_af_init_short   input.float(0.002"AF Init Short",     minval=0.0maxval=1.0step=0.001group="Genişletilmiş SAR")
    i_af_short        input.float(0.02"AF Short",          minval=0.0maxval=1.0step=0.001group="Genişletilmiş SAR")
    i_af_max_short    input.float(0.20"AF Max Short",      minval=0.0maxval=1.0step=0.01group="Genişletilmiş SAR")

    sarext_val sarext(i_start_valuei_offset_reverse,
                        
    i_af_init_longi_af_longi_af_max_long,
                        
    i_af_init_shorti_af_shorti_af_max_short)

    sar_abs math.abs(sarext_val)
    sar_long  sarext_val sar_abs na
    sar_short 
    sarext_val sar_abs na

    plot
    (sar_long,  "+1 (Sarext)",  color=color.whitestyle=plot.style_linebrlinewidth=3)
    plot(sar_short"-1 (Sarext)"color=color.aqua,   style=plot.style_linebrlinewidth=3)

    // ==========================================
    // 9. KUSURSUZ MÜHÜRLER VE SİNYAL HAFIZASI (GÖRÜNÜR)
    // ==========================================
    var int sinyal_durumu 
    var string son_yon "BEKLENİYOR"
    var float son_sinyal_fiyati na

    if barstate.isconfirmed 
        
    if ittifak_AL and sinyal_durumu != 1
            sinyal_durumu 
    := 1
            son_yon 
    := "MİZAN+ST AL"
            
    son_sinyal_fiyati := close
        
    if ittifak_SAT and sinyal_durumu != -1
            sinyal_durumu 
    := -1
            son_yon 
    := "MİZAN+ST SAT"
            
    son_sinyal_fiyati := close

    plotshape
    (ittifak_AL,  title="İttifak AL",  text="AL",  style=shape.labelup,   location=location.belowbarcolor=color.rgb(0230119), textcolor=color.whitesize=size.normal)
    plotshape(ittifak_SATtitle="İttifak SAT"text="SAT"style=shape.labeldownlocation=location.abovebarcolor=color.rgb(2558282), textcolor=color.whitesize=size.normal)

    // ==========================================
    // 10. KAPTAN KÖŞKÜ (DASHBOARD TABLOSU)
    // ==========================================
    var table dash table.new(position.top_right315border_width 1border_color color.new(color.gray80))

    if 
    barstate.islast
        table
    .cell(dash00"Kaptan Köşkü (Mizan Motoru)"text_color=color.whitebgcolor=color.new(color.black20), text_size=size.normaltext_halign=text.align_center)
        
    table.merge_cells(dash0020)
        
        
    string vites_txt psar_vitesi == "1 (BEKLE)" psar_vitesi == "2 (HAZIR)" "3 (HÜCUM)"
        
    color vites_col  psar_vitesi == color.red psar_vitesi == color.yellow color.lime
        table
    .cell(dash01"PSAR Vites:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash11vites_txttext_color=vites_colbgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1121)

        
    table.cell(dash02"Anlık Fiyat:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash12str.tostring(closeformat.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1222)

        
    string sig_text son_yon == "BEKLENİYOR" "YOK" son_yon " @ " str.tostring(son_sinyal_fiyatiformat.mintick)
        
    color sig_color son_yon == "MİZAN+ST AL" color.lime son_yon == "MİZAN+ST SAT" color.red color.gray
        table
    .cell(dash03"Son İttifak:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash13sig_texttext_color=sig_colorbgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1323)

        
    string ayna_durum = (oz_st_yon == and mizan_AL_onayi) ? "AL ONAYLI (YÜKSELİŞ)" : (oz_st_yon == -and mizan_SAT_onayi) ? "SAT ONAYLI (DÜŞÜŞ)" "MİZAN VETOSU (BEKLE)"
        
    color ayna_renk = (oz_st_yon == and mizan_AL_onayi) ? color.lime : (oz_st_yon == -and mizan_SAT_onayi) ? color.red color.gray
        table
    .cell(dash04"Sistem Durumu:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash14ayna_durumtext_color=ayna_renkbgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1424)

        
    table.cell(dash05"Evreka Direnç (+):"text_color=color.tealbgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash15str.tostring(evreka_tepeformat.mintick), text_color=color.tealbgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1525)

        
    table.cell(dash06"Evreka Destek (-):"text_color=color.maroonbgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash16str.tostring(evreka_dipformat.mintick), text_color=color.maroonbgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1626)

        
    table.cell(dash07"--- Aİ-HIZLI MOTOR ---"text_color=color.yellowbgcolor=color.new(color.black20), text_halign=text.align_center)
        
    table.merge_cells(dash0727)

        
    table.cell(dash08"M1:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash18str.tostring(s_fast_1format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash28close s_fast_1 "AL" "SAT"text_color=close s_fast_1 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

        
    table.cell(dash09"M2:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash19str.tostring(s_fast_2format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash29close s_fast_2 "AL" "SAT"text_color=close s_fast_2 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

        
    table.cell(dash010"M3:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash110str.tostring(s_fast_3format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash210close s_fast_3 "AL" "SAT"text_color=close s_fast_3 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

    // İMZA
    var table ytd_table table.new(position.bottom_center11)
    if 
    barstate.islast
        table
    .cell(ytd_table00"(Aİ) eğitim çalışmasıdır. Yatırım tavsiyesi KULLANILAMAZ."text_color=color.new(color.white50), text_size=size.small
    16.07.2024 - 10.12.2024

  5. PHP Code:
    //@version=6
    indicator(":]"overlay=truemax_lines_count=50max_labels_count=500)
    // ┌──────────────────────────────────────────────────────────────────────────────┐
    // │ 1. AYARLAR VE DL ATMOSFER GÜCÜ                                               │
    // └──────────────────────────────────────────────────────────────────────────────┘
    float ayar_genislik input.float(0.3"Genişlik (0.1 - 2.0)"minval=0.1maxval=2.0step=0.1)

    // Çitanın Kalbi (Merkez Motor - Tazyik Barajları)
    float s_fast_1 ta.sar(0.010.010.2
    float s_fast_12 ta.sar(0.080.050.2

    // Sinir Ağlarından Gelen Gerilme Gücü (DL Modülü)
    tanh_fn(v) => (math.exp(-v)) / (math.exp(-v))
    td_fn(s)   => nz((nz(s[1])) / nz(s[1]))

    float in_o tanh_fn(td_fn(open))
    float in_h tanh_fn(td_fn(high))
    float in_l tanh_fn(td_fn(low))
    float in_c tanh_fn(td_fn(close))

    float h0 tanh_fn((in_o 22.4271) + (in_h * -26.6917) + (in_l 4.9371) + (in_c 9.0349) - 10.6929)
    float h1 tanh_fn((in_o * -38.2880) + (in_h 10.0500) + (in_l * -44.7063) + (in_c * -17.8163) + 30.5662)
    float h2 tanh_fn((in_o * -33.9954) + (in_h 14.5017) + (in_l * -43.2865) + (in_c * -13.3874) + 24.7080)
    float h3 tanh_fn((in_o * -14.3929) + (in_h 28.4830) + (in_l * -22.9793) + (in_c * -7.6582) - 5.6505)
    float h4 tanh_fn((in_o 28.8379) + (in_h * -26.3544) + (in_l 0.5206) + (in_c 25.0049) - 17.8832)
    float h5 tanh_fn((in_o * -4.8113) + (in_h * -4.0364) + (in_l * -8.3327) + (in_c * -1.1571) + 0.4667)

    float dl_val tanh_fn((h0 * -22.0533) + (h1 3.6525) + (h2 * -4.3904) + (h3 2.1030) + (h4 20.0272) + (h5 11.5101) - 0.4150)
    float ai_factor = (0.2 + (math.abs(dl_val) * 0.5)) * ayar_genislik

    // ┌──────────────────────────────────────────────────────────────────────────────┐
    // │ 2. MTK-3 İÇ VE DIŞ KALKANLAR (ÇİTANIN MENZİLİ)                               │
    // └──────────────────────────────────────────────────────────────────────────────┘
    float baz_mesafe math.abs(close s_fast_1) * ai_factor
    float merkez 
    s_fast_1 

    float baz_mesafe12 
    math.abs(close s_fast_12) * ai_factor
    float merkez12 
    s_fast_12 

    float ic_ust 
    merkez + (baz_mesafe 0.3)
    float ic_alt merkez - (baz_mesafe 0.3)

    float dis_ust merkez + (baz_mesafe 1.0)
    float dis_alt merkez - (baz_mesafe 1.0)

    float dist_1 math.abs(close s_fast_1) * ai_factor
    float l1_top 
    close dist_1
    float l1_bot 
    close dist_1

    // ┌──────────────────────────────────────────────────────────────────────────────┐
    // │ 3. GÖRSEL ŞAHİTLİK (KALKANLAR VE ÇEKİRDEK)                                   │
    // └──────────────────────────────────────────────────────────────────────────────┘
    plot(merkez"Yavaş"color=color.new(color.white00), style=plot.style_crosslinewidth=2)
    plot(merkez12"Hızlı"color=color.new(color.blue00), style=plot.style_crosslinewidth=2)

    p1_top plot(l1_top"Üst"display=display.none)
    p1_bot plot(l1_bot"Alt"display=display.none)

    // ┌──────────────────────────────────────────────────────────────────────────────┐
    // │ 4. MİZAN (DENGE) HATTI (GECİKMESİZ VE GÖRSEL)                                │
    // └──────────────────────────────────────────────────────────────────────────────┘
    var int sar_yon 0
    sar_yon 
    := close s_fast_1 close s_fast_1 ? -nz(sar_yon[1])
    bool sar_dondu sar_yon != nz(sar_yon[1])

    var 
    float sar_eski_vurus na
    var float sar_son_vurus  na

    if sar_dondu
        sar_eski_vurus 
    := nz(sar_son_vuruss_fast_1
        
    sar_son_vurus  := s_fast_1                    

    float mizan_hatti 
    = (sar_eski_vurus sar_son_vurus) / 2
    plot
    (mizan_hatti"Denge"color=color.new(color.orange100), style=plot.style_linebrlinewidth=2)

    // ┌──────────────────────────────────────────────────────────────────────────────┐
    // │ 5. SCALPING VUR-KAÇ MANTIĞI                                                  │
    // └──────────────────────────────────────────────────────────────────────────────┘
    bool scalping_AL_Gir  ta.crossover(closeic_ust) and (close mizan_hatti)
    bool scalping_SAT_Gir ta.crossunder(closeic_alt) and (close mizan_hatti)

    bool scalping_AL_Cik  high >= dis_ust
    bool scalping_SAT_Cik 
    low <= dis_alt

    // ┌────────────────────────────── 6. İÇSEL TAZYİK VE MTK-3 KIRILIM ──────────────┐
    float sarStart input.float(0.02"Basınç Başlangıcı")
    float sarInc   input.float(0.02"Basınç İvmesi")
    float sarMax   input.float(0.2"Maksimum Tazyik")
    float psarVal  ta.sar(sarStartsarIncsarMax)

    int direncPeriyodu input.int(2"Kapakçık (Sınır) Periyodu")
    float ustKapak ta.highest(highdirencPeriyodu)[1]
    float altKapak ta.lowest(lowdirencPeriyodu)[1]  

    bool ciftKirilimAtim    ta.crossover(closepsarVal) and (close ustKapak)
    bool ciftKirilimGevseme ta.crossunder(closepsarVal) and (close altKapak)

    plot(psarVal"@yörük@"style=plot.style_crosscolor=close psarVal color.yellow color.redlinewidth=2)

    // ┌──────────────────────────────────────────────────────────────────────────────┐
    // │ 7. ÇİFT AYNALI OMURGA MOTORU (12 ve 32 KESİŞİM MANTIĞI)                      │
    // └──────────────────────────────────────────────────────────────────────────────┘
    float s_start_sabit 0.02
    float s_inc_sabit   
    0.02
    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)

    // GÜNEŞ (32) VE AY (12) YÖRÜNGELERİ
    float ayna_12 f_katman_ana(s_start_sabits_inc_sabits_max_sabit45)
    float ayna_32 f_katman_ana(s_start_sabits_inc_sabits_max_sabit55)

    float s_slow_1 ta.sar(0.020.020.2)
    float s_slow_2 ta.sar(0.0150.0150.15)
    float s_slow_3 ta.sar(0.010.010.1)

    float s_fast_2 ta.sar(0.010.050.2)
    float s_fast_3 ta.sar(0.040.040.2)
    float avg_fast = (s_fast_1 s_fast_2 s_fast_3) / 3

    bool all_fast_below 
    = (close s_fast_1) and (close s_fast_2) and (close s_fast_3
    bool all_fast_above = (close s_fast_1) and (close s_fast_2) and (close s_fast_3

    int kalkan 0
    if close s_fast_1 
        kalkan 
    += 1
    if close s_fast_2 
        kalkan 
    += 1
    if close s_fast_3 
        kalkan 
    += 1
    if close s_fast_1 and close avg_fast
        kalkan 
    += 1
    if close s_fast_2 and close avg_fast
        kalkan 
    += 1
    if close s_fast_3 and close avg_fast
        kalkan 
    += 1

    color bar_col 
    na
    if kalkan >= 3
        bar_col 
    := close avg_fast color.rgb(023011900) : color.rgb(255828200)
    else if 
    kalkan == 2
        bar_col 
    := color.rgb(33624900)
    else
        
    bar_col := color.rgb(2236425100)

    barcolor(bar_col)

    // AYNA 12 (AY) RENK MANTIĞI
    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)

    // AYNA 32 (GÜNEŞ) RENK MANTIĞI
    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)

    // HİZALANMA DURUMLARI
    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

    var int sinyal_durumu 
    var string son_yon "BEKLENİYOR"
    var float son_sinyal_fiyati na

    if barstate.isconfirmed 
        
    if ikisi_sari and sinyal_durumu != 1
            sinyal_durumu 
    := 1
            son_yon 
    := "AL (Çift Sarı)"
            
    son_sinyal_fiyati := close
        
    if ikisi_mavi and sinyal_durumu != -1
            sinyal_durumu 
    := -1
            son_yon 
    := "SAT (Çift Mavi)"
            
    son_sinyal_fiyati := close

    // AYNANIN EKRANA ÇİZİMİ
    plot(ayna_12"AynaÖncü"color=col_ayna_12linewidth=2style=plot.style_stepline)
    plot(ayna_32"AynaSon"color=col_ayna_32linewidth=3style=plot.style_stepline)

    // ┌──────────────────────────────────────────────────────────────────────────────┐
    // │ X. PSAR MOTORUNA BAĞLI VİTES OKLARI (ATIN DÖRTNALA KALKIŞI)                  │
    // └──────────────────────────────────────────────────────────────────────────────┘
    int bull_sar_sayisi = (close s_fast_1 0) + (close s_fast_2 0) + (close s_fast_3 0)
    int bear_sar_sayisi = (close s_fast_1 0) + (close s_fast_2 0) + (close s_fast_3 0)

    bool ok_yukari bull_sar_sayisi bear_sar_sayisi
    bool ok_asagi  
    bear_sar_sayisi bull_sar_sayisi

    int psar_vitesi 
    math.max(bull_sar_sayisibear_sar_sayisi)
    color ok_rengi psar_vitesi == color.new(color.red0) : psar_vitesi == color.new(color.yellow0) : color.new(color.lime0)

    plotshape(ok_yukarititle="PSAR Yukarı"style=shape.arrowup,   location=location.belowbarcolor=ok_rengisize=size.small)
    plotshape(ok_asagi,  title="PSAR Aşağı",  style=shape.arrowdownlocation=location.abovebarcolor=ok_rengisize=size.small)

    // ┌──────────────────────────────────────────────────────────────────────────────┐
    // │ 8. ÇİFT YÖNLÜ EVREKA MANTIĞI VE OTO DESTEK/DİRENÇ                            │
    // └──────────────────────────────────────────────────────────────────────────────┘
    var float evreka_tepe close
    var float evreka_dip  close

    if all_fast_below
        evreka_tepe 
    := math.max(evreka_tepel1_top)
    if 
    all_fast_above
        evreka_dip 
    := math.min(evreka_dipl1_bot)

    if 
    ta.crossunder(closes_slow_1)
        
    evreka_tepe := l1_top
        
    if ta.crossover(closes_slow_1)
        
    evreka_dip := l1_bot

    plot
    (evreka_tepe"+1"color=color.new(color.teal100), style=plot.style_linebrlinewidth=2)
    plot(evreka_dip"-1"color=color.new(color.maroon100), style=plot.style_linebrlinewidth=2)

    // ┌──────────────────────────────────────────────────────────────────────────────┐
    // │ 9. KOMUTA MERKEZİ (DASHBOARD)                                                │
    // └──────────────────────────────────────────────────────────────────────────────┘
    var table dash table.new(position.top_right315border_width 1border_color color.new(color.gray80))

    if 
    barstate.islast
        table
    .cell(dash00"Strateji (Bot) Test Modu"text_color=color.whitebgcolor=color.new(color.black20), text_size=size.normaltext_halign=text.align_center)
        
    table.merge_cells(dash0020)
        
        
    string vites_txt psar_vitesi == "1 (BEKLE)" psar_vitesi == "2 (HAZIR)" "3 (DEVAM)"
        
    color vites_col  psar_vitesi == color.red psar_vitesi == color.yellow color.lime
        table
    .cell(dash01"Durum:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash11vites_txttext_color=vites_colbgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1121)

        
    table.cell(dash02"Fiyat:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash12str.tostring(closeformat.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1222)

        
    string sig_text son_yon == "BEKLENİYOR" "YOK" son_yon " @ " str.tostring(son_sinyal_fiyatiformat.mintick)
        
    color sig_color son_yon == "AL (Çift Sarı)" color.yellow son_yon == "SAT (Çift Mavi)" color.blue color.gray
        table
    .cell(dash03"Son Sinyal:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash13sig_texttext_color=sig_colorbgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1323)

        
    // Ayna Durumunu Tabloya Ekleme
        
    string ayna_durum ikisi_sari "ÇİFT SARI (YÜKSELİŞ)" ikisi_mavi "ÇİFT MAVİ (DÜŞÜŞ)" "KARIŞIK (BEKLE)"
        
    color ayna_renk ikisi_sari color.yellow ikisi_mavi color.blue color.gray
        table
    .cell(dash04"Aynalar:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash14ayna_durumtext_color=ayna_renkbgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1424)

        
    table.cell(dash05"Oto Direnç (+1):"text_color=color.fuchsiabgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash15str.tostring(evreka_tepeformat.mintick), text_color=color.fuchsiabgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1525)

        
    table.cell(dash06"Oto Destek (-1):"text_color=color.fuchsiabgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash16str.tostring(evreka_dipformat.mintick), text_color=color.fuchsiabgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.merge_cells(dash1626)

        
    table.cell(dash07"--- Aİ-HIZLI (@yörük@) ---"text_color=color.yellowbgcolor=color.new(color.black20), text_halign=text.align_center)
        
    table.merge_cells(dash0727)

        
    table.cell(dash08"1:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash18str.tostring(s_fast_1format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash28close s_fast_1 "AL" "SAT"text_color=close s_fast_1 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

        
    table.cell(dash09"2:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash19str.tostring(s_fast_2format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash29close s_fast_2 "AL" "SAT"text_color=close s_fast_2 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

        
    table.cell(dash010"3:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash110str.tostring(s_fast_3format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash210close s_fast_3 "AL" "SAT"text_color=close s_fast_3 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

        
    table.cell(dash011"--- Aİ-YAVAŞ (@yörük@) ---"text_color=color.yellowbgcolor=color.new(color.black20), text_halign=text.align_center)
        
    table.merge_cells(dash011211)

        
    table.cell(dash012"4:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash112str.tostring(s_slow_1format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash212close s_slow_1 "AL" "SAT"text_color=close s_slow_1 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

        
    table.cell(dash013"5:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash113str.tostring(s_slow_2format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash213close s_slow_2 "AL" "SAT"text_color=close s_slow_2 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

        
    table.cell(dash014"6:"text_color=color.graybgcolor=color.new(color.black40), text_halign=text.align_left)
        
    table.cell(dash114str.tostring(s_slow_3format.mintick), text_color=color.whitebgcolor=color.new(color.black40), text_halign=text.align_right)
        
    table.cell(dash214close s_slow_3 "AL" "SAT"text_color=close s_slow_3 color.lime color.redbgcolor=color.new(color.black40), text_halign=text.align_center)

    var 
    table ytd_table table.new(position.bottom_center11)
    if 
    barstate.islast
        table
    .cell(ytd_table00"(Aİ) - Eğitim çalışmasıdır. Yatırım tavsiyesi KULLANILAMAZ."text_color=color.new(color.white00), text_size=size.normal
    16.07.2024 - 10.12.2024

  6. #3071 nolu mesajdan itibaren...
    paylaşılan kod örnekleri....
    yapay zeka ile yazılmaya çalışılan... kod denemeleridir.

    farklı kalıplar içerir. denemek isteyen...kendini geliştirmek isteyenler...
    için eğitim amaçlı paylaşılmıştır.

    belki faydalanan olur... herkese selamlar....
    16.07.2024 - 10.12.2024

Sayfa 387/387 İlkİlk ... 287337377385386387

Yer İmleri

Yer İmleri

Gönderi Kuralları

  • Yeni konu açamazsınız
  • Konulara cevap yazamazsınız
  • Yazılara ek gönderemezsiniz
  • Yazılarınızı değiştiremezsiniz
  •