Artan
Azalan
lem
BIST 30
BIST 50
BIST 100
NASDAQ 100
Hisse Fiyat Fark% Hacim (TL) Dk / Yksek
119,90 10% 1,16 Mr 110,30 / 119,90
3,63 10% 501,00 Mn 3,31 / 3,63
8,14 10% 2,47 Mr 7,54 / 8,14
53,90 10% 982,81 Mn 47,32 / 53,90
34,80 9.99% 91,16 Mn 34,80 / 34,80
Hisse Fiyat Fark% Hacim (TL) Dk / Yksek
2,90 -9.94% 955,51 Mn 2,90 / 3,13
1.353,00 -9.68% 284,03 Mn 1.349,00 / 1.508,00
7,81 -8.12% 11,40 Mn 7,80 / 8,01
21,92 -7.74% 421,11 Mn 21,42 / 24,44
269,25 -7.16% 258,51 Mn 268,25 / 290,00
Hisse Fiyat Fark% Hacim (TL) Dk / Yksek
329,00 3.7% 35,57 Mr 317,75 / 335,00
3,14 2.61% 34,03 Mr 3,03 / 3,32
39,30 4.86% 15,25 Mr 37,14 / 39,36
15,11 4.64% 14,63 Mr 14,36 / 15,11
83,55 6.98% 13,83 Mr 77,40 / 83,85
Hisse Fiyat Fark% Hacim (TL) Dk / Yksek
19,42 4.52% 1,50 Mr 18,28 / 19,42
83,55 6.98% 13,83 Mr 77,40 / 83,85
414,00 0.73% 8,67 Mr 407,00 / 417,50
196,70 2.45% 9,71 Mr 189,40 / 197,60
765,00 2.55% 4,53 Mr 742,50 / 770,50
Hisse Fiyat Fark% Hacim (TL) Dk / Yksek
19,42 4.52% 1,50 Mr 18,28 / 19,42
83,55 6.98% 13,83 Mr 77,40 / 83,85
95,55 2.52% 697,12 Mn 92,75 / 95,95
118,70 2.33% 332,28 Mn 114,90 / 119,30
414,00 0.73% 8,67 Mr 407,00 / 417,50
Hisse Fiyat Fark% Hacim (TL) Dk / Yksek
19,42 4.52% 1,50 Mr 18,28 / 19,42
32,04 3.96% 257,43 Mn 30,62 / 32,14
83,55 6.98% 13,83 Mr 77,40 / 83,85
10,95 2.34% 240,15 Mn 10,71 / 10,95
80,10 -1.6% 845,03 Mn 78,55 / 82,95

Masrafsz Bankaclk + 1.000 TL Nakit! Enparadan ifte Avantaj

Masrafsz Bankaclk + 1.000 TL Nakit! Enparadan ifte Avantaj
Sayfa 387/393 lklk ... 287337377385386387388389 ... SonSon
Arama sonucu : 3139 madde; 3,089 - 3,096 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"Genilik (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) MODL (SRTNMESZ)
    // ==========================================
    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. DNAMK 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 MANTII
    // ==========================================
    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 SNYAL MANTII VE TAKP
    // ==========================================
    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 "BEKLENYOR"
    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 YNL EVREKA MANTII (TAVAN VE ZEMN)
    // ==========================================
    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 DNAMK STOP (ESNEYEN ZIRH)
    // ==========================================
    // Yapay zeka ivmesine gre esneyen stop arpan (Trendde 1.0'a daralr, Testerede 2.5'e geniler)
    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 Grseli (Kk 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. HAFF VTES (REJM) ETKETLER
    // ==========================================
    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. GRSELLETRME 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 Balad (AL)"shape.labeluplocation.belowbarcolor.rgb(25523559), text="L"textcolor=color.blacksize=size.small)
    plotshape(kesin_sat"Mavi Balad (SAT)"shape.labeldownlocation.abovebarcolor.rgb(33150243), text="S"textcolor=color.whitesize=size.small)

    plotshape(evreka_direnc_kirilim"(@yrk@) DREN"shape.flaglocation.abovebarcolor.fuchsiatext="DR\n(@yrk@)"textcolor=color.fuchsiasize=size.small)
    plotshape(evreka_destek_kirilim"(@yrk@) DESTEK"shape.flaglocation.belowbarcolor.fuchsiatext="DES\n(@yrk@)"textcolor=color.fuchsiasize=size.small)

    alertcondition(evreka_direnc_kirilimtitle="💎 EVREKA (KOPU!)"message="Sistem: Ana Trend, ekirdek Tepeyi at!")
    alertcondition(evreka_destek_kirilimtitle="⚠️ EVREKA (K!)"message="Sistem: Ana Trend, ekirdek Dibi aa krd!")

    // ==========================================
    // 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"Yatrm Tavsiyesi DELDR."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)" "NTR (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 == "BEKLENYOR" "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: DNAMK 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) ? "BEKLENYOR" 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) ? "BEKLENYOR" 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 (@yrk@) ---"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 (@yrk@) ---"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) - Eitim almasdr. Yatrm 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"Genilik (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 DERN 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 "BEKLENYOR"
    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"Basn Balangc"group="MTK-3 Motoru")
    sarInc   input.float(0.02"Basn vmesi"group="MTK-3 Motoru")
    sarMax   input.float(0.2,  "Maksimum Tazyik"group="MTK-3 Motoru")
    direncPeriyodu input.int(2"Kapakk (Snr) Periyodu"group="MTK-3 Motoru")

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

    // kisini Birden Krma 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. GRSELLETRME VE ALARMLAR                                                │
    // └──────────────────────────────────────────────────────────────────────────────┘
    plot(mirror_ana"Ana Trend"color=col_mirror_analinewidth=3style=plot.style_stepline)
    plot(psarVal"@yrk@"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"(@yrk@) DREN"shape.flaglocation.abovebarcolor.fuchsiatext="DR\n(@yrk@)"textcolor=color.fuchsiasize=size.small)
    plotshape(ciftKirilimGevseme"(@yrk@) DESTEK"shape.flaglocation.belowbarcolor.fuchsiatext="DES\n(@yrk@)"textcolor=color.fuchsiasize=size.small)

    alertcondition(ciftKirilimAtimtitle="💎 EVREKA (KOPU!)"message="Sistem: ifte Krlm Gerekleti, Tazyik Yukar!")
    alertcondition(ciftKirilimGevsemetitle="⚠️ EVREKA (K!)"message="Sistem: ifte Krlm Gerekleti, Tazyik Aa!")

    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="Dng 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"Yatrm Tavsiyesi DELDR."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 == "BEKLENYOR" "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) ? "BEKLENYOR" 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) ? "BEKLENYOR" 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 (@yrk@) ---"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 (@yrk@) ---"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) - Eitim almasdr. Yatrm 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) MODL (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 katsays
    float ai_factor = (0.2 + (math.abs(dl_val) * 0.5)) * ayar_genislik

    // ==========================================
    // 4. DNAMK RENKL ATMOSFER (3 KADEMEL NANGAH)
    // ==========================================
    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 Oranlarn: 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 Hazrlanmas
    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 dtan (effaf) en ie (koyu) doru boyama yapyoruz 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 GC (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 MZAN (DENGE) AI (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) eitim almasdr. Yatrm 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 grnmeyecek ama arka planda SuperTrend kalkann (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. MZAN 100 (KADM EKSEN - GRNR)
    // ==========================================
    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 EKRDEK SUPERTREND VE TTFAK ONAYI (GRNR)
    // ==========================================
    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 BALI VTES OKLARI (GRNR)
    // ==========================================
    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 Aa",  style=shape.arrowdownlocation=location.abovebarcolor=ok_rengisize=size.small)

    // ==========================================
    // 7. EVREKA MANTII (DESTEK/DREN ZGLER GZLEND, 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 FONKSYONU VE ZM (GRNR)
    // ==========================================
    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="Geniletilmi SAR")
    i_offset_reverse  input.float(0.0,  "Offset on Reverse"minval=0.0step=0.1group="Geniletilmi SAR")
    i_af_init_long    input.float(0.002"AF Init Long",      minval=0.0maxval=1.0step=0.001group="Geniletilmi SAR")
    i_af_long         input.float(0.02"AF Long",           minval=0.0maxval=1.0step=0.001group="Geniletilmi SAR")
    i_af_max_long     input.float(0.20"AF Max Long",       minval=0.0maxval=1.0step=0.01group="Geniletilmi SAR")
    i_af_init_short   input.float(0.002"AF Init Short",     minval=0.0maxval=1.0step=0.001group="Geniletilmi SAR")
    i_af_short        input.float(0.02"AF Short",          minval=0.0maxval=1.0step=0.001group="Geniletilmi SAR")
    i_af_max_short    input.float(0.20"AF Max Short",      minval=0.0maxval=1.0step=0.01group="Geniletilmi 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 MHRLER VE SNYAL HAFIZASI (GRNR)
    // ==========================================
    var int sinyal_durumu 
    var string son_yon "BEKLENYOR"
    var float son_sinyal_fiyati na

    if barstate.isconfirmed 
        
    if ittifak_AL and sinyal_durumu != 1
            sinyal_durumu 
    := 1
            son_yon 
    := "MZAN+ST AL"
            
    son_sinyal_fiyati := close
        
    if ittifak_SAT and sinyal_durumu != -1
            sinyal_durumu 
    := -1
            son_yon 
    := "MZAN+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 KK (DASHBOARD TABLOSU)
    // ==========================================
    var table dash table.new(position.top_right315border_width 1border_color color.new(color.gray80))

    if 
    barstate.islast
        table
    .cell(dash00"Kaptan Kk (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 (HCUM)"
        
    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"Anlk 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 == "BEKLENYOR" "YOK" son_yon " @ " str.tostring(son_sinyal_fiyatiformat.mintick)
        
    color sig_color son_yon == "MZAN+ST AL" color.lime son_yon == "MZAN+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 (YKSEL)" : (oz_st_yon == -and mizan_SAT_onayi) ? "SAT ONAYLI (D)" "MZAN 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) eitim almasdr. Yatrm 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 GC                                               │
    // └──────────────────────────────────────────────────────────────────────────────┘
    float ayar_genislik input.float(0.3"Genilik (0.1 - 2.0)"minval=0.1maxval=2.0step=0.1)

    // itann 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 Alarndan Gelen Gerilme Gc (DL Modl)
    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 MENZL)                               │
    // └──────────────────────────────────────────────────────────────────────────────┘
    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. GRSEL AHTLK (KALKANLAR VE EKRDEK)                                   │
    // └──────────────────────────────────────────────────────────────────────────────┘
    plot(merkez"Yava"color=color.new(color.white00), style=plot.style_crosslinewidth=2)
    plot(merkez12"Hzl"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. MZAN (DENGE) HATTI (GECKMESZ VE GRSEL)                                │
    // └──────────────────────────────────────────────────────────────────────────────┘
    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 MANTII                                                  │
    // └──────────────────────────────────────────────────────────────────────────────┘
    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 TAZYK VE MTK-3 KIRILIM ──────────────┐
    float sarStart input.float(0.02"Basn Balangc")
    float sarInc   input.float(0.02"Basn vmesi")
    float sarMax   input.float(0.2"Maksimum Tazyik")
    float psarVal  ta.sar(sarStartsarIncsarMax)

    int direncPeriyodu input.int(2"Kapakk (Snr) 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"@yrk@"style=plot.style_crosscolor=close psarVal color.yellow color.redlinewidth=2)

    // ┌──────────────────────────────────────────────────────────────────────────────┐
    // │ 7. FT AYNALI OMURGA MOTORU (12 ve 32 KESM MANTII)                      │
    // └──────────────────────────────────────────────────────────────────────────────┘
    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)

    // GNE (32) VE AY (12) YRNGELER
    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 MANTII
    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 (GNE) RENK MANTII
    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)

    // HZALANMA 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 "BEKLENYOR"
    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 ZM
    plot(ayna_12"Aynanc"color=col_ayna_12linewidth=2style=plot.style_stepline)
    plot(ayna_32"AynaSon"color=col_ayna_32linewidth=3style=plot.style_stepline)

    // ┌──────────────────────────────────────────────────────────────────────────────┐
    // │ X. PSAR MOTORUNA BALI VTES OKLARI (ATIN DRTNALA KALKII)                  │
    // └──────────────────────────────────────────────────────────────────────────────┘
    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 Aa",  style=shape.arrowdownlocation=location.abovebarcolor=ok_rengisize=size.small)

    // ┌──────────────────────────────────────────────────────────────────────────────┐
    // │ 8. FT YNL EVREKA MANTII VE OTO DESTEK/DREN                            │
    // └──────────────────────────────────────────────────────────────────────────────┘
    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 == "BEKLENYOR" "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 (YKSEL)" ikisi_mavi "FT MAV (D)" "KARIIK (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 (@yrk@) ---"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 (@yrk@) ---"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) - Eitim almasdr. Yatrm tavsiyesi KULLANILAMAZ."text_color=color.new(color.white00), text_size=size.normal
    16.07.2024 - 10.12.2024

  6. #3071 nolu mesajdan itibaren...
    paylalan kod rnekleri....
    yapay zeka ile yazlmaya allan... kod denemeleridir.

    farkl kalplar ierir. denemek isteyen...kendini gelitirmek isteyenler...
    iin eitim amal paylalmtr.

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

  7. PHP Code:
    //@version=6
    indicator("ift plak Ayna [Saf izgi]"overlay=true)

    // ”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€
    //  1. GRDLER 
    // ”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€
    h_start input.float(0.06"Hzl SAR Balang"step=0.01group="Hzl Ayna (Kaln)")
    h_inc   input.float(0.06"Hzl SAR vme"step=0.01group="Hzl Ayna (Kaln)")
    h_max   input.float(0.30"Hzl SAR Max"step=0.1group="Hzl Ayna (Kaln)")

    y_start input.float(0.01"Yava SAR Balang"step=0.005group="Yava Ayna (nce)")
    y_inc   input.float(0.01"Yava SAR vme"step=0.005group="Yava Ayna (nce)")
    y_max   input.float(0.10"Yava SAR Max"step=0.1group="Yava Ayna (nce)")

    // ”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€
    //  2. GELM LONESOME SAR MOTORU
    // ”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€
    f_ozel_sar(src_hsrc_l_start_inc_max_reset_hiz) =>
        var 
    int trend 0
        
    var float sar_val 0.0
        
    var float ep 0.0
        
    var float af 0.0

        
    if trend == and not na(src_h[1])
            
    trend   := src_h >= src_h[1] or src_l >= src_l[1] ? : -1
            sar_val 
    := trend src_l[1] : src_h[1]
            
    ep      := trend src_h[1] : src_l[1]
            
    af      := _start
        
    else 
            if 
    _reset_hiz
                af 
    := _start

            float nextsar 
    sar_val
            
    if trend 0
                
    if src_h[1] > ep
                    ep 
    := src_h[1]
                    
    af := math.min(_maxaf _inc)
                
                
    nextsar := sar_val af * (ep sar_val)
                
    nextsar := math.min(math.min(src_l[1], src_l[2]), nextsar)
                
                if 
    nextsar src_l
                    trend   
    := -1
                    nextsar 
    := ep
                    ep      
    := src_l
                    af      
    := _start
            
    else 
                if 
    src_l[1] < ep
                    ep 
    := src_l[1]
                    
    af := math.min(_maxaf _inc)
                
                
    nextsar := sar_val af * (ep sar_val)
                
    nextsar := math.max(math.max(src_h[1], src_h[2]), nextsar)
                
                if 
    nextsar src_h
                    trend   
    := 1
                    nextsar 
    := ep
                    ep      
    := src_h
                    af      
    := _start
                    
            sar_val 
    := nextsar
        
        
    [sar_valtrend]

    // ”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€
    //  3. IPLAK AYNA HESAPLAMASI
    // ”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€
    yeni_gun ta.change(time("D")) != 0

    // Hzl Ayna
    [sar_hizlitrend_hizli] = f_ozel_sar(highlowh_starth_inch_maxyeni_gun)
    ayna_hizli trend_hizli close math.abs(close sar_hizli) : close math.abs(close sar_hizli)

    // Yava Ayna
    [sar_yavastrend_yavas] = f_ozel_sar(highlowy_starty_incy_maxyeni_gun)
    ayna_yavas trend_yavas close math.abs(close sar_yavas) : close math.abs(close sar_yavas)

    // ”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€
    //  4. RENK VE ZMLER
    // ”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€”€
    bool hizli_yesil ayna_hizli close
    bool yavas_yesil 
    ayna_yavas close

    color col_hizli 
    hizli_yesil color.lime color.red
    color col_yavas 
    yavas_yesil color.lime color.red

    plot
    (ayna_hizlititle="Trend"color=col_hizlistyle=plot.style_linelinewidth=1)
    //plot(ayna_yavas, title="Yava Ayna", color=col_yavas, style=plot.style_line, linewidth=1) 
    16.07.2024 - 10.12.2024

  8. PHP Code:
    //@version=6
    indicator("30'lu Modler SAR Radar"overlay=true)

    // ─────────────────────────────────────────────────────────────────
    //  0. TABLO KONUM AYARI (YAN YANA DZMEK N)
    // ─────────────────────────────────────────────────────────────────
    grp_pos "Tablo Konumu ve Yerleimi"
    pos_secim input.string("Sa Alt"title="Tabloyu Nereye Koyalm?"options=["Sol Alt""Orta Alt""Sa Alt"], group=grp_postooltip="Ayn indikatr 3 kere ekleyip her birini farkl konuma alarak 90 varlk izleyebilirsiniz.")

    var 
    pos_konum pos_secim == "Sol Alt" position.bottom_left pos_secim == "Orta Alt" position.bottom_center position.bottom_right

    // ─────────────────────────────────────────────────────────────────
    //  1. GRDLER (30 Farkl Varlk - Ayarlardan Deitirilebilir)
    // ─────────────────────────────────────────────────────────────────
    grp1 "Varlklar 1-10"
    s01 input.symbol("BIST:THYAO""01"group=grp1inline="1")
    s02 input.symbol("BIST:TUPRS""02"group=grp1inline="1")
    s03 input.symbol("BIST:ASELS""03"group=grp1inline="2")
    s04 input.symbol("BIST:KCHOL""04"group=grp1inline="2")
    s05 input.symbol("BIST:EREGL""05"group=grp1inline="3")
    s06 input.symbol("BIST:AKBNK""06"group=grp1inline="3")
    s07 input.symbol("BIST:YKBNK""07"group=grp1inline="4")
    s08 input.symbol("BIST:ISCTR""08"group=grp1inline="4")
    s09 input.symbol("BIST:GARAN""09"group=grp1inline="5")
    s10 input.symbol("BIST:SAHOL""10"group=grp1inline="5")

    grp2 "Varlklar 11-20"
    s11 input.symbol("BIST:SISE",  "11"group=grp2inline="6")
    s12 input.symbol("BIST:PETKM""12"group=grp2inline="6")
    s13 input.symbol("BIST:BIMAS""13"group=grp2inline="7")
    s14 input.symbol("BIST:PGSUS""14"group=grp2inline="7")
    s15 input.symbol("BIST:FROTO""15"group=grp2inline="8")
    s16 input.symbol("BIST:TOASO""16"group=grp2inline="8")
    s17 input.symbol("BIST:TCELL""17"group=grp2inline="9")
    s18 input.symbol("BIST:TTKOM""18"group=grp2inline="9")
    s19 input.symbol("BIST:ENKAI""19"group=grp2inline="10")
    s20 input.symbol("BIST:KOZAL""20"group=grp2inline="10")

    grp3 "Varlklar 21-30"
    s21 input.symbol("BIST:HEKTS""21"group=grp3inline="11")
    s22 input.symbol("BIST:SASA",  "22"group=grp3inline="11")
    s23 input.symbol("BIST:ASTOR""23"group=grp3inline="12")
    s24 input.symbol("BIST:ALARK""24"group=grp3inline="12")
    s25 input.symbol("BIST:TAVHL""25"group=grp3inline="13")
    s26 input.symbol("BIST:DOAS",  "26"group=grp3inline="13")
    s27 input.symbol("BIST:MGROS""27"group=grp3inline="14")
    s28 input.symbol("BIST:OTKAR""28"group=grp3inline="14")
    s29 input.symbol("BIST:VESBE""29"group=grp3inline="15")
    s30 input.symbol("BIST:ARCLK""30"group=grp3inline="15")

    // ─────────────────────────────────────────────────────────────────
    //  2. MTK-1-2-3 DARE FORMLU PSAR MOTORU
    // ─────────────────────────────────────────────────────────────────
    f_ozel_sar(src_hsrc_l_start_inc_max_reset_hiz) =>
        var 
    int trend 0
        
    var float sar_val 0.0
        
    var float ep 0.0
        
    var float af 0.0

        
    if trend == and not na(src_h[1])
            
    trend   := src_h >= src_h[1] or src_l >= src_l[1] ? : -1
            sar_val 
    := trend src_l[1] : src_h[1]
            
    ep      := trend src_h[1] : src_l[1]
            
    af      := _start
        
    else 
            if 
    _reset_hiz
                af 
    := _start

            float nextsar 
    sar_val
            
    if trend 0
                
    if src_h[1] > ep
                    ep 
    := src_h[1]
                    
    af := math.min(_maxaf _inc)
                
                
    nextsar := sar_val af * (ep sar_val)
                
    nextsar := math.min(math.min(src_l[1], src_l[2]), nextsar)
                
                if 
    nextsar src_l
                    trend   
    := -1
                    nextsar 
    := ep
                    ep      
    := src_l
                    af      
    := _start
            
    else 
                if 
    src_l[1] < ep
                    ep 
    := src_l[1]
                    
    af := math.min(_maxaf _inc)
                
                
    nextsar := sar_val af * (ep sar_val)
                
    nextsar := math.max(math.max(src_h[1], src_h[2]), nextsar)
                
                if 
    nextsar src_h
                    trend   
    := 1
                    nextsar 
    := ep
                    ep      
    := src_h
                    af      
    := _start
                    
            sar_val 
    := nextsar
        
        
    [sar_valtrend]

    // ─────────────────────────────────────────────────────────────────
    //  3. KAPSLLENM OKLU SAR SORGUSU
    // ─────────────────────────────────────────────────────────────────
    f_sar_data() =>
        
    yeni_gun ta.change(time("D")) != 0
        
        
    [sar_hizli_] = f_ozel_sar(highlow0.060.060.30yeni_gun)
        [
    sar_orta_]  = f_ozel_sar(highlow0.020.020.20yeni_gun)
        [
    sar_yavas_] = f_ozel_sar(highlow0.010.010.10yeni_gun)

        
    is_hizli_up close sar_hizli
        is_orta_up  
    close sar_orta
        is_yavas_up 
    close sar_yavas
        
        
    [sar_hizlisar_ortasar_yavasis_hizli_upis_orta_upis_yavas_up]

    // ─────────────────────────────────────────────────────────────────
    //  4. 30 VARLIKTAN KUSURSUZ VER EKM
    // ─────────────────────────────────────────────────────────────────
    [vh01vo01vy01bh01bo01by01] = request.security(s01timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh02vo02vy02bh02bo02by02] = request.security(s02timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh03vo03vy03bh03bo03by03] = request.security(s03timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh04vo04vy04bh04bo04by04] = request.security(s04timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh05vo05vy05bh05bo05by05] = request.security(s05timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh06vo06vy06bh06bo06by06] = request.security(s06timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh07vo07vy07bh07bo07by07] = request.security(s07timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh08vo08vy08bh08bo08by08] = request.security(s08timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh09vo09vy09bh09bo09by09] = request.security(s09timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh10vo10vy10bh10bo10by10] = request.security(s10timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh11vo11vy11bh11bo11by11] = request.security(s11timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh12vo12vy12bh12bo12by12] = request.security(s12timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh13vo13vy13bh13bo13by13] = request.security(s13timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh14vo14vy14bh14bo14by14] = request.security(s14timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh15vo15vy15bh15bo15by15] = request.security(s15timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh16vo16vy16bh16bo16by16] = request.security(s16timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh17vo17vy17bh17bo17by17] = request.security(s17timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh18vo18vy18bh18bo18by18] = request.security(s18timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh19vo19vy19bh19bo19by19] = request.security(s19timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh20vo20vy20bh20bo20by20] = request.security(s20timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh21vo21vy21bh21bo21by21] = request.security(s21timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh22vo22vy22bh22bo22by22] = request.security(s22timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh23vo23vy23bh23bo23by23] = request.security(s23timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh24vo24vy24bh24bo24by24] = request.security(s24timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh25vo25vy25bh25bo25by25] = request.security(s25timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh26vo26vy26bh26bo26by26] = request.security(s26timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh27vo27vy27bh27bo27by27] = request.security(s27timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh28vo28vy28bh28bo28by28] = request.security(s28timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh29vo29vy29bh29bo29by29] = request.security(s29timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)
    [
    vh30vo30vy30bh30bo30by30] = request.security(s30timeframe.periodf_sar_data(), lookahead=barmerge.lookahead_off)

    // ─────────────────────────────────────────────────────────────────
    //  5. DEVASA TABLO OLUTURMA VE DOLDURMA MOTORU
    // ─────────────────────────────────────────────────────────────────
    var string tab_size size.small
    // pos_konum deikeni sayesinde tabloyu ayarlardan nereye setiysen oraya izer
    var table radar table.new(pos_konum531border_width=1border_color=color.gray)

    f_hucre_boya(is_up) =>
        
    is_up color.new(color.lime40) : color.new(color.red40)

    f_karar_ver(h_upo_upy_up) =>
        if 
    h_up and o_up and y_up
            
    ["TAM HCUM"color.new(color.lime10)]
        else if 
    not h_up and not o_up and not y_up
            
    ["GER EKL"color.new(color.red10)]
        else
            [
    "BEKLE"color.new(color.gray10)]

    f_satir_ekle(r_idxsymvhvovyb_hb_ob_y) =>
        [
    kararcol] = f_karar_ver(b_hb_ob_y)
        
    sym_isim str.split(sym":").last()

        
    val_h_str str.tostring(vhformat.mintick) + (b_h " ▲" " ▼")
        
    val_o_str str.tostring(voformat.mintick) + (b_o " ▲" " ▼")
        
    val_y_str str.tostring(vyformat.mintick) + (b_y " ▲" " ▼")

        
    table.cell(radar0r_idxsym_isimtext_color=color.whitebgcolor=color.blacktext_size=tab_size)
        
    table.cell(radar1r_idxval_h_strtext_color=color.whitebgcolor=f_hucre_boya(b_h), text_size=tab_size)
        
    table.cell(radar2r_idxval_o_strtext_color=color.whitebgcolor=f_hucre_boya(b_o), text_size=tab_size)
        
    table.cell(radar3r_idxval_y_strtext_color=color.whitebgcolor=f_hucre_boya(b_y), text_size=tab_size)
        
    table.cell(radar4r_idxkarartext_color=color.whitebgcolor=coltext_size=tab_size)

    if 
    barstate.islast
        
    // Balklar
        
    table.cell(radar00"VARLIK"text_color=color.whitebgcolor=color.blacktext_size=tab_size)
        
    table.cell(radar10"HIZLI SAR",  text_color=color.whitebgcolor=color.blacktext_size=tab_size)
        
    table.cell(radar20"ORTA SAR",   text_color=color.whitebgcolor=color.blacktext_size=tab_size)
        
    table.cell(radar30"YAVA SAR",  text_color=color.whitebgcolor=color.blacktext_size=tab_size)
        
    table.cell(radar40"KARAR",  text_color=color.whitebgcolor=color.blacktext_size=tab_size)

        
    // 30 Satrn izdirilmesi
        
    f_satir_ekle(1,  s01vh01vo01vy01bh01bo01by01)
        
    f_satir_ekle(2,  s02vh02vo02vy02bh02bo02by02)
        
    f_satir_ekle(3,  s03vh03vo03vy03bh03bo03by03)
        
    f_satir_ekle(4,  s04vh04vo04vy04bh04bo04by04)
        
    f_satir_ekle(5,  s05vh05vo05vy05bh05bo05by05)
        
    f_satir_ekle(6,  s06vh06vo06vy06bh06bo06by06)
        
    f_satir_ekle(7,  s07vh07vo07vy07bh07bo07by07)
        
    f_satir_ekle(8,  s08vh08vo08vy08bh08bo08by08)
        
    f_satir_ekle(9,  s09vh09vo09vy09bh09bo09by09)
        
    f_satir_ekle(10s10vh10vo10vy10bh10bo10by10)
        
    f_satir_ekle(11s11vh11vo11vy11bh11bo11by11)
        
    f_satir_ekle(12s12vh12vo12vy12bh12bo12by12)
        
    f_satir_ekle(13s13vh13vo13vy13bh13bo13by13)
        
    f_satir_ekle(14s14vh14vo14vy14bh14bo14by14)
        
    f_satir_ekle(15s15vh15vo15vy15bh15bo15by15)
        
    f_satir_ekle(16s16vh16vo16vy16bh16bo16by16)
        
    f_satir_ekle(17s17vh17vo17vy17bh17bo17by17)
        
    f_satir_ekle(18s18vh18vo18vy18bh18bo18by18)
        
    f_satir_ekle(19s19vh19vo19vy19bh19bo19by19)
        
    f_satir_ekle(20s20vh20vo20vy20bh20bo20by20)
        
    f_satir_ekle(21s21vh21vo21vy21bh21bo21by21)
        
    f_satir_ekle(22s22vh22vo22vy22bh22bo22by22)
        
    f_satir_ekle(23s23vh23vo23vy23bh23bo23by23)
        
    f_satir_ekle(24s24vh24vo24vy24bh24bo24by24)
        
    f_satir_ekle(25s25vh25vo25vy25bh25bo25by25)
        
    f_satir_ekle(26s26vh26vo26vy26bh26bo26by26)
        
    f_satir_ekle(27s27vh27vo27vy27bh27bo27by27)
        
    f_satir_ekle(28s28vh28vo28vy28bh28bo28by28)
        
    f_satir_ekle(29s29vh29vo29vy29bh29bo29by29)
        
    f_satir_ekle(30s30vh30vo30vy30bh30bo30by30
    16.07.2024 - 10.12.2024

Sayfa 387/393 lklk ... 287337377385386387388389 ... SonSon

Yer mleri

Yer mleri

Gnderi Kurallar

  • Yeni konu aamazsnz
  • Konulara cevap yazamazsnz
  • Yazlara ek gnderemezsiniz
  • Yazlarnz deitiremezsiniz
  •