Artan
Azalan
İşlem
BIST 30
BIST 50
BIST 100
NASDAQ 100
Hisse Fiyat Fark% Hacim (TL) Düşük / Yüksek
56,10 10% 380,78 Mn 50,50 / 56,10
193,70 9.99% 291,87 Mn 183,00 / 193,70
15,19 9.99% 25,77 Mn 14,83 / 15,19
38,58 9.98% 798,03 Mn 36,00 / 38,58
38,34 9.98% 611,72 Mn 34,22 / 38,34
Hisse Fiyat Fark% Hacim (TL) Düşük / Yüksek
45,64 -9.98% 52,02 Mn 45,64 / 45,64
23,10 -9.98% 551,31 Mn 23,10 / 25,00
22,54 -9.98% 394,21 Mn 22,54 / 25,28
9,14 -9.95% 288,02 Mn 9,14 / 10,28
7,98 -9.93% 135,97 Mn 7,98 / 8,72
Hisse Fiyat Fark% Hacim (TL) Düşük / Yüksek
241,30 -3.67% 10,44 Mr 236,50 / 242,80
294,75 0.08% 8,41 Mr 291,75 / 296,50
190,70 2.14% 7,55 Mr 186,40 / 191,40
339,75 0.67% 6,94 Mr 335,00 / 343,25
202,50 -3.2% 6,92 Mr 201,50 / 213,80
Hisse Fiyat Fark% Hacim (TL) Düşük / Yüksek
17,19 -2.55% 347,48 Mn 17,15 / 17,82
67,15 -2.26% 5,36 Mr 66,75 / 69,90
339,75 0.67% 6,94 Mr 335,00 / 343,25
202,50 -3.2% 6,92 Mr 201,50 / 213,80
679,50 -3.62% 2,98 Mr 678,00 / 705,00
Hisse Fiyat Fark% Hacim (TL) Düşük / Yüksek
17,19 -2.55% 347,48 Mn 17,15 / 17,82
67,15 -2.26% 5,36 Mr 66,75 / 69,90
88,35 -1.83% 213,69 Mn 88,15 / 90,05
112,70 -1.57% 223,88 Mn 111,50 / 114,00
339,75 0.67% 6,94 Mr 335,00 / 343,25
Hisse Fiyat Fark% Hacim (TL) Düşük / Yüksek
17,19 -2.55% 347,48 Mn 17,15 / 17,82
27,38 -1.01% 95,92 Mn 27,28 / 27,82
67,15 -2.26% 5,36 Mr 66,75 / 69,90
11,27 4.26% 456,40 Mn 10,76 / 11,44
75,10 -1.83% 215,15 Mn 74,85 / 76,60

Masrafsız Bankacılık + 1.000 TL Nakit! Enpara’dan Çifte Avantaj

Masrafsız Bankacılık + 1.000 TL Nakit! Enpara’dan Çifte Avantaj
Sayfa 6/11 İlkİlk ... 45678 ... SonSon
Arama sonucu : 87 madde; 41 - 48 arası.

Konu: @yörük@’ün Heybesinden

  1. PHP Code:
    //@version=6
    indicator("Crescent Markov-Fusion Elite"overlay true)

    // ==================== GİRDİLER ====================
    tlm_lookback input.int(20"TLM Hassasiyeti")
    mc_period    input.int(50"Monte Carlo/Markov Periyodu")
    radius_mult  input.int(25"Hilal Menzili")
    col_high     input.color(color.new(#ff0055, 20), "Direnç Kalkanı")
    col_low      input.color(color.new(#00ffbb, 20), "Destek Kalkanı")

    // ==================== MARKOV REJİM ANALİZİ (BASİTLEŞTİRİLMİŞ) ====================
    // Fiyatın ardışık mumlardaki değişimine göre "Durum Geçiş" olasılığı hesaplar
    up_move   close close[1] ? 0
    down_move 
    close close[1] ? 0

    // Boğa ve Ayı durumlarının son periyottaki yoğunluğu (Geçiş Olasılığı)
    bull_prob ta.sma(up_movemc_period)
    bear_prob ta.sma(down_movemc_period)
    market_regime bull_prob 0.55 "Bull" bear_prob 0.55 "Bear" "Neutral"

    // ==================== TLM & MONTE CARLO MOTORU ====================
    ph ta.pivothigh(tlm_lookbacktlm_lookback)
    pl ta.pivotlow(tlm_lookbacktlm_lookback)

    returns math.log(close close[1])
    sigma   ta.stdev(returnsmc_period)
    expected_vol sigma math.sqrt(radius_mult) * 1.96

    // ==================== MARKOV ONAYLI HİLAL ÇİZİMİ ====================
    ease_out(t) => * (t)

    // Üst Hilal (Markov "Bear" veya "Neutral" iken daha güçlü)
    var polyline hi_c na
    if not na(ph) and (market_regime == "Bear" or market_regime == "Neutral")
        
    pts = array.new<chart.point>()
        for 
    0 to 20
            float t 
    20.0
            float angle 
    math.pi + (ease_out(t) * math.pi)
            
    int x int(math.round(math.cos(angle) * radius_mult)) + bar_index radius_mult
            float y 
    math.sin(angle) * (expected_vol close) + high[tlm_lookback]
            
    pts.push(chart.point.from_index(xy))
        
        
    polyline.delete(hi_c)
        
    hi_c := polyline.new(ptscurved=trueline_color=col_highline_width=4)

    // Alt Hilal (Markov "Bull" veya "Neutral" iken daha güçlü)
    var polyline lo_c na
    if not na(pl) and (market_regime == "Bull" or market_regime == "Neutral")
        
    pts = array.new<chart.point>()
        for 
    0 to 20
            float t 
    20.0
            float angle 
    = (ease_out(t) * math.pi)
            
    int x int(math.round(math.cos(angle) * radius_mult)) + bar_index radius_mult
            float y 
    math.sin(angle) * (expected_vol close) + low[tlm_lookback]
            
    pts.push(chart.point.from_index(xy))
        
        
    polyline.delete(lo_c)
        
    lo_c := polyline.new(ptscurved=trueline_color=col_lowline_width=4)

    // ==================== GÖRSELLEŞTİRME & PANEL ====================
    var table board table.new(position.top_right22bgcolor=color.new(color.black80), border_width=1)
    if 
    barstate.islast
        regime_col 
    market_regime == "Bull" color.lime market_regime == "Bear" color.red color.gray
        table
    .cell(board00"Piyasa Rejimi:"text_color=color.white)
        
    table.cell(board10market_regimetext_color=regime_col)
        
    table.cell(board01"Boğa Olasılığı:"text_color=color.white)
        
    table.cell(board11"%" str.tostring(bull_prob 100"##.#"), text_color=color.lime
    16.07.2024 - 10.12.2024

  2. PHP Code:
    //@version=6
    indicator("Hatasız Çift Hilal Sistemi"overlay true)

    // --- GİRDİLER ---
    radius_mult input.int(25"Hilal Menzili")
    pivot_len   input.int(40"Pivot Hassasiyeti")
    col_high    input.color(color.new(#ff0055, 20), "Üst Ay (Direnç)")
    col_low     input.color(color.new(#00ffbb, 20), "Alt Ay (Destek)")

    // --- HESAPLAMALAR ---
    ph ta.pivothigh(pivot_lenpivot_len)
    pl ta.pivotlow(pivot_lenpivot_len)
    atr ta.atr(14)

    // --- ÜST AY MOTORU ---
    var polyline hi_crescent na
    if not na(ph)
        
    // Noktaları dizi olarak tanımlıyoruz
        
    array<chart.pointhi_points = array.new<chart.point>()
        for 
    0 to 20
            float angle 
    math.pi + (math.pi) / 20 
            int x 
    int(math.round(math.cos(angle) * radius_mult)) + bar_index[pivot_len] + radius_mult
            float y 
    math.sin(angle) * radius_mult * (atr 0.5) + high[pivot_len]
            
    hi_points.push(chart.point.from_index(xy))
        
        
    // Eski çizimi temizle ve yenisini ekle
        
    if not na(hi_crescent)
            
    polyline.delete(hi_crescent)
        
    hi_crescent := polyline.new(hi_pointscurved=trueline_color=col_highline_width=2)

    // --- ALT AY MOTORU ---
    var polyline lo_crescent na
    if not na(pl)
        array<
    chart.pointlo_points = array.new<chart.point>()
        for 
    0 to 20
            float angle 
    = (math.pi) / 20
            int x 
    int(math.round(math.cos(angle) * radius_mult)) + bar_index[pivot_len] + radius_mult
            float y 
    math.sin(angle) * radius_mult * (atr 0.5) + low[pivot_len]
            
    lo_points.push(chart.point.from_index(xy))
        
        if 
    not na(lo_crescent)
            
    polyline.delete(lo_crescent)
        
    lo_crescent := polyline.new(lo_pointscurved=trueline_color=col_lowline_width=2)

    // --- GÖRSEL İŞARETLER ---
    //plot(ph ? high[pivot_len] : na, "Üst Merkez", color.red, 4, plot.style_cross, offset=-pivot_len)
    //plot(pl ? low[pivot_len] : na, "Alt Merkez", color.lime, 4, plot.style_cross, offset=-pivot_len) 
    16.07.2024 - 10.12.2024

  3. PHP Code:
    //@version=6
    indicator("Crescent Monte Carlo Fusion"overlay true)

    // ==================== GİRDİLER ====================
    vpc_len     input.int(20"VPC/Hacim Periyodu")
    mc_period   input.int(50"Monte Carlo Simülasyon Periyodu")
    radius_mult input.int(25"Hilal Menzili (Olasılık Alanı)")
    col_high    input.color(color.new(#ff0055, 20), "Üst Olasılık Kalkanı")
    col_low     input.color(color.new(#00ffbb, 20), "Alt Olasılık Kalkanı")

    // ==================== MONTE CARLO (BEKLENEN DEĞER) ====================
    // Basit bir Monte Carlo simülasyonu: Standart sapma ve ortalama ile gelecek olasılık tahmini
    returns math.log(close close[1])
    mu      ta.sma(returnsmc_period)
    sigma   ta.stdev(returnsmc_period)
    // %95 Güven Aralığı (1.96 Standart Sapma)
    expected_volatility sigma math.sqrt(radius_mult) * 1.96

    // ==================== VPC & HACİM MOTORU ====================
    hst ta.highest(vpc_len), lst ta.lowest(vpc_len)
    new_h high == hstnew_l low == lst
    h_vwap 
    ta.vwap(highnew_h), l_vwap ta.vwap(lownew_l)

    var 
    float v_up na, var float v_lo na
    v_up 
    := new_h hst : (hst == hst[1] ? v_up[1] : math.min(hstnz(v_up[1])))
    v_lo := new_l lst : (lst == lst[1] ? v_lo[1] : math.max(lstnz(v_lo[1])))

    // ==================== OLASILIK TABANLI HİLAL ÇİZİMİ ====================
    // Math Easing: Quadratic Ease-Out
    ease_out_quad(t) => * (t)

    // Üst Hilal (Olasılık Üst Sınırı)
    var polyline hi_c na
    if new_h
        pts 
    = array.new<chart.point>()
        for 
    0 to 20
            float t 
    20.0
            float eased_t 
    ease_out_quad(t)
            
    float angle math.pi + (eased_t math.pi)
            
    int x int(math.round(math.cos(angle) * radius_mult)) + bar_index radius_mult
            
    // Y-ekseni Monte Carlo'dan gelen volatilite ile genişliyor
            
    float y math.sin(angle) * (expected_volatility close) + v_up
            pts
    .push(chart.point.from_index(xy))
        
        if 
    not na(hi_c)
            
    polyline.delete(hi_c)
        
    hi_c := polyline.new(ptscurved=trueline_color=col_highline_width=4)

    // Alt Hilal (Olasılık Alt Sınırı)
    var polyline lo_c na
    if new_l
        pts 
    = array.new<chart.point>()
        for 
    0 to 20
            float t 
    20.0
            float eased_t 
    ease_out_quad(t)
            
    float angle = (eased_t math.pi)
            
    int x int(math.round(math.cos(angle) * radius_mult)) + bar_index radius_mult
            float y 
    math.sin(angle) * (expected_volatility close) + v_lo
            pts
    .push(chart.point.from_index(xy))
        
        if 
    not na(lo_c)
            
    polyline.delete(lo_c)
        
    lo_c := polyline.new(ptscurved=trueline_color=col_lowline_width=4)

    // ==================== GÖRSELLEŞTİRME ====================
    plot(v_up"VPC Üst"color.new(col_high75), 1plot.style_linebr)
    plot(v_lo"VPC Alt"color.new(col_low75), 1plot.style_linebr)

    // Güven Skoru Paneli (Dashboard)
    var table board table.new(position.top_right11bgcolor=color.new(color.black80), border_width=1)
    if 
    barstate.islast
        confidence 
    = (sigma) * 100
        table
    .cell(board00"Olasılık Güveni: %" str.tostring(confidence"##.##"), text_color=color.white
    16.07.2024 - 10.12.2024

  4. PHP Code:
    //@version=5
    indicator("Crescent 4D: Neural Sentinel & TLM Vector"overlay=truemax_bars_back=1000max_lines_count=500max_boxes_count=500)

    // --- 1. DERİN ÖĞRENME (ANN) HESAPLAMALARI ---
    tangentdiff(_src) => nz((_src _src[1]) / _src[1])
    ActivationFunctionTanh(v1) => (math.exp(-v1)) / (math.exp(-v1))

    _ind1 = (open open[1]) / open[1], _ind2 = (high high[1]) / high[1]
    n_0 ActivationFunctionTanh(_ind1), n_1 ActivationFunctionTanh(_ind2)

    f_open  open  * (- (ActivationFunctionTanh(0.03 n_0 5.11 n_1) - tangentdiff(open) * 1000) / 1000)
    f_high  high  * (- (ActivationFunctionTanh(10.1 n_0 30.9 n_1) - tangentdiff(high) * 1000) / 1000)
    f_low   low   * (- (ActivationFunctionTanh(4.36 n_0 18.3 n_1) - tangentdiff(low) * 1000) / 1000)
    f_close close * (- (ActivationFunctionTanh(22.4 n_0 26.6 n_1) - tangentdiff(close) * 1000) / 1000)

    // --- 2. KADEMELİ ZIRH VE SENTINEL HESABI ---
    f_get_kalkan(_len) =>
        
    _stdev ta.stdev(f_close_len)
        
    _basis ta.sma(f_close_len)
        [
    _basis + (_stdev 2.5), _basis - (_stdev 2.5), _basis]

    [
    up100dn100b100]     = f_get_kalkan(100)
    [
    up250dn250b250]     = f_get_kalkan(250)
    [
    up500dn500b500]     = f_get_kalkan(500)
    [
    up750dn750b750]     = f_get_kalkan(750)
    [
    up1000dn1000b1000]   = f_get_kalkan(1000)

    // --- 3. TLM VEKTÖR SİSTEMİ (GEOMETRİK İSTİKAMET) ---
    ph ta.pivothigh(f_high1515), pl ta.pivotlow(f_low1515)
    var 
    int last_ph_x 0, var float last_ph_y 0.0
    var int last_pl_x 0, var float last_pl_y 0.0
    var float tlm_slope 0.0

    if not na(ph)
        if 
    last_ph_x != 0
            line
    .new(last_ph_xlast_ph_ybar_index 15phcolor=color.new(color.red50), width=1style=line.style_dashed)
            
    tlm_slope := (ph last_ph_y) / (bar_index 15 last_ph_x)
        
    last_ph_x := bar_index 15last_ph_y := ph

    if not na(pl)
        if 
    last_pl_x != 0
            line
    .new(last_pl_xlast_pl_ybar_index 15plcolor=color.new(color.green50), width=1style=line.style_dashed)
            
    tlm_slope := (pl last_pl_y) / (bar_index 15 last_pl_x)
        
    last_pl_x := bar_index 15last_pl_y := pl

    // --- 4. TLM TABANLI SİNYAL MOTORU ---
    // Sinyal: Fiyat zırhla etkileşime girmeli VE TLM eğimi (vektör) dönüşü onaylamalı
    bool buy_signal  ta.crossover(f_closedn100) and (f_close last_pl_y)
    bool sell_signal ta.crossunder(f_closeup100) and (f_close last_ph_y)

    plotshape(buy_signal,  title="AL",  style=shape.triangleup,   location=location.belowbarcolor=color.new(#00ffbb, 0), size=size.small, text="TLM BUY")
    plotshape(sell_signaltitle="SAT"style=shape.triangledownlocation=location.abovebarcolor=color.new(#ff0055, 0), size=size.small, text="TLM SELL")

    // --- 5. BACKTEST MOTORU (1000 BAR) ---
    var int total_trades 0, var int win_trades 0
    var float last_entry_price 0.0, var int last_trade_dir 0

    if buy_signal or sell_signal
        
    if last_trade_dir != 0
            
    if (last_trade_dir == and f_close last_entry_price) or (last_trade_dir == -and f_close last_entry_price)
                
    win_trades += 1
        total_trades 
    += 1
        last_entry_price 
    := f_closelast_trade_dir := buy_signal : -1

    float win_rate 
    total_trades ? (win_trades total_trades) * 100 0

    // --- 6. GÖRSELLEŞTİRME ---
    plotcandle(f_openf_highf_lowf_closetitle="Neural Ghost Bars"color=f_close f_open color.new(#00ffbb, 85) : color.new(#ff0055, 85), bordercolor=na)
    plotcandle(up100up100dn100dn100title="Sentinel Block"color=f_close b100 color.new(color.orange88) : color.new(color.purple88), bordercolor=na)

    // --- 7. MONTE CARLO VE MARKOV ---
    returns math.log(f_close f_close[1])
    mu ta.sma(returns50), sigma ta.stdev(returns50)
    mc_upper f_close math.exp(mu sigma 2.326), mc_lower f_close math.exp(mu sigma 2.326)
    markov_state f_close b500 ? (f_close up100 "AŞIRI BOĞA" "BOĞA") : (f_close dn100 "AŞIRI AYI" "AYI")

    // --- 8. ANALİZ DASHBOARD (TABLO) ---
    var table stats_table table.new(position.top_right212border_width 1frame_color=color.gray)
    f_near_color(_val) => math.abs(close _val) / _val 0.003 color.new(color.yellow30) : color.new(color.gray90)

    if 
    barstate.islast
        table
    .cell(stats_table00"DASHBOARD"bgcolor=color.blacktext_color=color.white)
        
    table.cell(stats_table10"ANALİZ"bgcolor=color.blacktext_color=color.white)
        
        
    table.cell(stats_table01"MARKOV REJİMİ"bgcolor=color.new(color.gray80))
        
    table.cell(stats_table11markov_statebgcolor=f_close b500 color.green color.redtext_color=color.white)
        
        
    table.cell(stats_table02"MONTE CARLO (%99)"bgcolor=color.new(color.blue70), text_color=color.white)
        
    table.cell(stats_table12str.format("{0,number,#.#}-{1,number,#.#}"mc_uppermc_lower))
        
        
    table.cell(stats_table03"100'LÜ ZIRH"bgcolor=f_near_color(up100))
        
    table.cell(stats_table13str.format("{0,number,#.#} / {1,number,#.#}"up100dn100))
        
        
    table.cell(stats_table07"1000'Lİ SENTINEL"bgcolor=color.purpletext_color=color.white)
        
    table.cell(stats_table17str.format("{0,number,#.#} / {1,number,#.#}"up1000dn1000))
        
        
    // BACKTEST SONUCU (TABLONUN EN SONUNDA)
        
    table.cell(stats_table08"BACKTEST (1000 BAR)"bgcolor=color.orangetext_color=color.black)
        
    table.cell(stats_table18str.format("WR: %{0,number,#.#} | İŞLEM: {1}"win_ratetotal_trades), bgcolor=color.orangetext_color=color.black)

    // --- 9. QUANTUM-ZONE BÖLGELERİ ---
    if not na(ph)
        
    box.new(bar_index 15phbar_index 5ph 0.998border_color=nabgcolor=color.new(color.red95))
    if 
    not na(pl)
        
    box.new(bar_index 15plbar_index 5pl 1.002border_color=nabgcolor=color.new(color.green95)) 
    16.07.2024 - 10.12.2024

  5. olasılık barlarıyla-5bar olasılık
    PHP Code:
    //@version=5
    indicator("Aİ"overlay truebehind_chart falsemax_lines_count=500max_labels_count=500max_polylines_count=100max_boxes_count=100,  max_bars_back 500)
    /////////////////////////////////////
    // --- Derin Öğrenme ve Bar Hesaplamaları ---
    src7778 closeo7778 openh7778 highl7778 lowc7778 close
    tangentdiff
    (_src8) => nz((_src8 _src8[1]) / _src8[1])
    ActivationFunctionTanh(v1) => (math.exp(-v1)) / (math.exp(-v1))

    _indicator18 = (o7778 o7778[1]) / o7778[1]
    _indicator28 = (h7778 h7778[1]) / h7778[1]

    n_08 ActivationFunctionTanh(_indicator18), n_18 ActivationFunctionTanh(_indicator28)

    f_open8  o7778 * (- (ActivationFunctionTanh(0.03 n_08 5.11 n_18) - tangentdiff(o7778) * 1000) / 1000)
    f_high8  h7778 * (- (ActivationFunctionTanh(10.1 n_08 30.9 n_18) - tangentdiff(h7778) * 1000) / 1000)
    f_low8   l7778 * (- (ActivationFunctionTanh(4.36 n_08 18.3 n_18) - tangentdiff(l7778) * 1000) / 1000)
    f_close8 c7778 * (- (ActivationFunctionTanh(22.4 n_08 26.6 n_18) - tangentdiff(c7778) * 1000) / 1000)

    //////////////////////////////////
    var string vanity_group "Visual Settings"

    magic_wand_toggle input.bool(true"Show Active CISD Level (Plot)"group=vanity_group)

    drama_filter input.string("Both""Triggered CISD Display"options=["Both""Bullish Only""Bearish Only""None"], group=vanity_group)

    amnesia_mode input.bool(false"Limit Displayed Historical Lines"group=vanity_group)
    short_term_memory input.int(10"Max Lines to Show"minval=1group=vanity_group)

    yell_at_me input.bool(true"Show Labels"group=vanity_group)
    girth_units input.int(4"Line Width"minval=1group=vanity_group)
    scream_volume input.string(size.normal"Label Size"options=[size.tinysize.smallsize.normalsize.large], group=vanity_group)

    hipster_font_toggle input.string("Default""Font Family"options=["Default""Monospace"], group=vanity_group)
    fashion_choice input.string("Solid""Triggered Line Style"options=["Solid""Dashed""Dotted"], group=vanity_group)

    crayon_box "Colors"
    shrek_mode input.color(color.new(#2ffb01, 00), "Bullish CISD", group=crayon_box)
    blood_bath input.color(color.new(#ff0000, 00), "Bearish CISD", group=crayon_box)

    nerd_stats "Debug"
    paranoia_switch input.bool(false"Debug: Show Extreme Tracking"group=nerd_stats)

    gossip_column "HTF Trend Panel" 
    stalker_mode input.bool(true"Show Multi-Timeframe Table"group=gossip_column)
    feng_shui input.string("Bottom Right""Table Position"options=["Top Right""Middle Right""Bottom Right""Bottom Left"], group=gossip_column)
    eye_test input.string("Small""Table Size"options=["Tiny""Small""Normal""Large"], group=gossip_column)
    // ---------------------------------------------------------

    var string fancy_typeface hipster_font_toggle == "Monospace" font.family_monospace font.family_default

    decode_fashion_statement
    (outfit) =>
        switch 
    outfit
            
    "Solid"  => line.style_solid
            
    "Dashed" => line.style_dashed
            
    => line.style_dotted

    chosen_style 
    decode_fashion_statement(fashion_choice)

    var 
    int vibes 0
    var float bagholder_entry na
    var int time_machine_setting na
    var float pain_threshold na

    var label sticky_note_of_shame na
    var array<linegraveyard_of_hopes = array.new<line>()
    var array<
    labelchoir_of_screams = array.new<label>()

    consult_the_crystal_ball(int bias) =>
        
    int temporal_shift 0
        float ancient_price 
    open
        
    for 0 to 500
            int candle_attitude 
    close[i] > open[i] ? close[i] < open[i] ? -0
            
    if candle_attitude == 0
                
    continue
            
    bool mood_match candle_attitude == bias
            
    if not mood_match
                
    break
            
    temporal_shift := i
            ancient_price 
    := open[i]
        [
    ancient_pricebar_index temporal_shift]

    archaeologist_jones(int bias) =>
        
    int i 1
        bool artifact_found 
    false
        int dig_site_idx 
    0
        float artifact_value 
    na
        
    for 1 to 500
            i 
    := j
            int candle_attitude 
    close[i] > open[i] ? close[i] < open[i] ? -0
            
    if candle_attitude == 0
                
    continue
            
    bool is_correct_era candle_attitude == bias
            
    if not artifact_found
                
    if is_correct_era
                    artifact_found 
    := true
                    dig_site_idx 
    := i
                    artifact_value 
    := open[i]
            else
                if 
    not is_correct_era
                    
    break
                
    dig_site_idx := i
                artifact_value 
    := open[i]
        [
    artifact_valuebar_index dig_site_idx]

    if 
    vibes == and bar_index 10
        int first_impression 
    close open close open ? -0
        
    if first_impression == 0
            
    for 1 to 50
                first_impression 
    := close[k] > open[k] ? close[k] < open[k] ? -0
                
    if first_impression != 0
                    
    break
        if 
    first_impression != 0
            vibes 
    := first_impression
            
    [origin_priceorigin_time] = consult_the_crystal_ball(first_impression)
            
    bagholder_entry := origin_price
            time_machine_setting 
    := origin_time
            pain_threshold 
    := first_impression == high low

    int candle_personality 
    close open close open ? -0
    float fresh_hopium 
    na
    int fresh_timestamp 
    na

    if vibes == 1
        
    if high pain_threshold
            pain_threshold 
    := high
            
    if candle_personality == 1
                
    [p_pricep_idx] = consult_the_crystal_ball(1)
                
    fresh_hopium := p_price
                fresh_timestamp 
    := p_idx
            
    else
                [
    p_pricep_idx] = archaeologist_jones(1)
                
    fresh_hopium := p_price
                fresh_timestamp 
    := p_idx
            bagholder_entry 
    := fresh_hopium
            time_machine_setting 
    := fresh_timestamp

    else if vibes == -1
        
    if low pain_threshold
            pain_threshold 
    := low
            
    if candle_personality == -1
                
    [p_pricep_idx] = consult_the_crystal_ball(-1)
                
    fresh_hopium := p_price
                fresh_timestamp 
    := p_idx
            
    else
                [
    p_pricep_idx] = archaeologist_jones(-1)
                
    fresh_hopium := p_price
                fresh_timestamp 
    := p_idx
            bagholder_entry 
    := fresh_hopium
            time_machine_setting 
    := fresh_timestamp

    bool shorts_squeezed 
    vibes == -and close bagholder_entry
    bool longs_rekt 
    vibes == and close bagholder_entry

    if shorts_squeezed or longs_rekt
        bool should_i_paint_it 
    false
        
        
    if drama_filter == "Both"
            
    should_i_paint_it := true
        
    else if drama_filter == "Bullish Only"
            
    should_i_paint_it := shorts_squeezed
        
    else if drama_filter == "Bearish Only"
            
    should_i_paint_it := longs_rekt

        
    if should_i_paint_it
            color mood_ring 
    shorts_squeezed shrek_mode blood_bath
            
    //line tragedy_line = line.new(time_machine_setting, bagholder_entry, bar_index, bagholder_entry, color=mood_ring, width=girth_units, style=chosen_style)
            //array.push(graveyard_of_hopes, tragedy_line)

            
    label loud_noise na
            
    //if yell_at_me
                //int middle_of_nowhere = math.round((time_machine_setting + bar_index) / 2)
                //string gibberish = shorts_squeezed ? "+ALL" : "-SAT"
                //color ink_color = shorts_squeezed ? shrek_mode : blood_bath
                //loud_noise := label.new(middle_of_nowhere, bagholder_entry, gibberish, style=shorts_squeezed ? label.style_label_down : label.style_label_up, color=color.new(#000000, 100), textcolor=ink_color, size=scream_volume, text_font_family = fancy_typeface)
            
            //array.push(choir_of_screams, loud_noise)

        
    int new_emotional_state shorts_squeezed : -1
        vibes 
    := new_emotional_state
        
    [reset_pricereset_time] = consult_the_crystal_ball(new_emotional_state)
        
    bagholder_entry := reset_price
        time_machine_setting 
    := reset_time
        pain_threshold 
    := new_emotional_state == high low

    color active_crayon 
    vibes == shrek_mode blood_bath

    plot
    (magic_wand_toggle bagholder_entry na"0"color=active_crayonlinewidth=girth_unitsstyle=plot.style_line)
    /////////////////////////////////////////
    // --- 1. Dalga Mantığı ---
    isClosed barstate.isconfirmed
    spaceUp 
    = (high close) * 0.65
    spaceDown 
    = (open low) * 0.65
    // Ham Koşullar (Senin formülün)
    bullRaw12 isClosed and close[3] < open[3] and close open and close low[3]
    bearRaw12 isClosed and close[3] > open[3] and close open and close high[3]

    // Son 6 bar içinde herhangi bir siyah veya beyaz sinyal var mı?
    hasSiyahIn6 ta.highest(bullRaw12 06) > 0
    hasBeyazIn6 
    ta.highest(bearRaw12 06) > 0

    // Karar Yapısı
    isZit hasSiyahIn6 and hasBeyazIn6
    isAl  
    hasBeyazIn6 and not hasSiyahIn6
    isSat 
    hasSiyahIn6 and not hasBeyazIn6

    // --- 4. Durum Bildirimleri ---
    if isZit and not isZit[1]
        
    label.new(bar_index-3high + (spaceUp 4), ""color=color.orangetextcolor=color.whitestyle=label.style_label_down)

    // --- 2. KİLİTLEME MEKANİZMASI (LOCK) ---
    var bool lockAL false
    var bool lockSAT false

    if bearRaw12
        lockAL 
    := true
        lockSAT 
    := false 

    if bullRaw12
        lockSAT 
    := true
        lockAL 
    := false 

    // --- 3. 6 Bar Hafıza ve Karar ---
    hasSiyahIn63 ta.highest(bullRaw12 06) > 0
    hasBeyazIn63 
    ta.highest(bearRaw12 06) > 0

    // --- C. 1-0 Mühürleri ---

    bullRaw isClosed and close[1] < open[1] and close open and close low[1]
    bearRaw isClosed and close[1] > open[1] and close open and close high[1]

    if 
    bullRaw
        label
    .new(bar_index 1high[1] + spaceUp'1'style=label.style_nonetextcolor=color.rgb(000), size=size.huge)
        
    label.new(bar_index 1high spaceUp'0'style=label.style_nonetextcolor=color.rgb(24933), size=size.huge)

    if 
    bearRaw
        label
    .new(bar_index 1low[1] - spaceDown'1'style=label.style_nonetextcolor=color.rgb(000), size=size.huge)
        
    label.new(bar_index 1low spaceDown'0'style=label.style_nonetextcolor=color.rgb(24933), size=size.huge)


    // --- 2. ZAMANIN MİZANI (18:05 ve 09:55) ---
    isPrevClose time(timeframe.period"1805-1810:1234567")
    isTodayOpen time(timeframe.period"0955-1000:1234567")

    var 
    float anchorYesterday na
    var float anchorToday na

    if isPrevClose
        anchorYesterday 
    := f_close8
    if isTodayOpen
        anchorToday 
    := f_close8

    // // Ana Mihenkler
    plot(anchorYesterday"Dün"color=color.new(color.gray20), linewidth=2style=plot.style_linebr)
    plot(anchorToday"Bugün"color=color.new(color.white20), linewidth=2style=plot.style_linebr)
    ///////////sonnnnnnnnnnnnnnnnnnnnn////////
    //@version=6

    // ==========================================
    // 1. AYARLAR (GİRDİLER)
    // ==========================================
    // --- Aİ Ayarları ---
    sar_start  input.float(0.02"SAR Başlangıç"step=0.01group="Aİ Ayarları")
    sar_inc    input.float(0.02"SAR Artış"step=0.01group="Aİ Ayarları")
    sar_max    input.float(0.2,  "SAR Maks"step=0.01group="Aİ Ayarları")

    // --- JayRogers Future Lines Ayarları ---
    INP_offsetTime input.int(-20"Zaman Ofseti (Bar)"group="Future Lines (JayRogers)")
    INP_fastLength input.int(1"Hızlı SMA Uzunluğu"minval=1group="Future Lines (JayRogers)")
    INP_slowLength input.int(201"Yavaş SMA Uzunluğu"minval=1group="Future Lines (JayRogers)")
    INP_vertLength input.int(1"Dikey Çizgi Çarpanı"group="Future Lines (JayRogers)")

    // ==========================================
    // 2. TEMEL MATEMATİK & FONKSİYONLAR
    // ==========================================
    // Aİ Fonksiyonları
    tanh(v) => (math.exp(-v)) / (math.exp(-v))
    td(s)   => nz((nz(s[1])) / nz(s[1]))

    calc_dl(float[] n_arrfloat[] w_arr) =>
        
    = array.new_float(0)
        for 
    0 to 5
            float s 
    0.0
            
    for 0 to 3
                s 
    += array.get(n_arrj) * array.get(w_arr, (5) + j)
            array.
    push(htanh(+ array.get(w_arr, (5) + 4)))
        
    float out = array.get(w_arr36)
        for 
    0 to 5
            out 
    += array.get(hi) * array.get(w_arr30 i)
        
    tanh(out)

    // JayRogers Zaman Ofset Fonksiyonu
    f_offsetTime(_userOffsetInput) =>
        
    int _timeNow time
        int _timeSeg 
    time time[1]
        
    int _segMult _timeSeg _userOffsetInput
        _timeNow 
    _segMult

    // ==========================================
    // 3. Aİ HESAPLAMALARI (DL & SAR)
    // ==========================================
    // Ağırlıklar
    w_o = array.from(0.03055.1130, -26.0857, -5.32027.35474.16797.2258, -0.8712, -8.8945, -7.0647, -0.8062, -0.3044, -3.9097, -5.00995.1275, -29.736028.66840.1384, -57.58852.8249, -0.42930.4827, -0.7897, -2.9874, -4.31071.7583, -0.61802.4493, -1.58311.1658, -0.6530, -4.6469, -1.6789, -17.07760.8754, -6.67246.9407)
    w_h = array.from(10.1865, -30.964821.6723, -40.89587.9574, -15.252314.845410.6214, -23.81782.9475, -15.1790, -30.011835.6504, -61.48043.898535.6564, -11.1343, -28.07152.9239, -1.80573.4623, -13.6440, -30.2263, -1.083923.0328, -47.265819.021810.5652, -27.52076.9475, -0.6965, -1.349427.2629, -1.0423, -0.5401, -10.73551.3032)
    w_l = array.from(4.3631, -18.3014, -15.376821.2085, -0.4581, -2.65185.2054, -5.9209, -4.84748.315513.8853, -5.5179, -15.2411, -8.6732, -4.954010.4904, -25.201510.2621, -1.1161, -5.2541, -14.68779.0302, -17.33248.06800.75510.8951, -1.73774.8991, -7.71845.49364.1329, -17.50154.6174, -28.4768, -5.8882, -24.434541.3187)
    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(td(open)), tanh(td(high)), tanh(td(low)), tanh(td(close)))
    f_v(pwdivn_arr) => * (- (calc_dl(n_arrw) - td(p) * div) / div)

    // DL Verileri
    o100 f_v(openw_o100n_in), h100 f_v(highw_h100n_in), l100 f_v(loww_l100n_in), c100 f_v(closew_c100n_in)
    o1000 f_v(openw_o1000n_in), c1000 f_v(closew_c1000n_in)

    // SAR Verileri
    psar_fast ta.sar(sar_startsar_incsar_max)
    psar_mid  ta.sar(sar_start 2sar_inc 2sar_max)
    psar_slow ta.sar(sar_start 4sar_inc 4sar_max)

    // ==========================================
    // 4. JAYROGERS FUTURE LINES HESAPLAMA
    // ==========================================
    _fastMA ta.sma(close[1], INP_fastLength)
    _slowMA ta.sma(close[1], INP_slowLength)

    // Hatlar için değişkenler
    var line _fastExtention na
    var line _slowExtention na

    // Zaman Ofseti
    int _offsetTime f_offsetTime(INP_offsetTime)

    // ==========================================

    // --- B. DL Barlar ---
    plotcandle(o100h100l100c100"5"color=c100 c100[1] ? color.rgb(243244237100) : color.rgb(24844100), bordercolor=color.new(#000000, 55))
    plotcandle(f_v(open,w_o,250,n_in), f_v(high,w_h,250,n_in), f_v(low,w_l,250,n_in), f_v(close,w_c,250,n_in), "4"color=nabordercolor=color.new(#000000, 55))
    plotcandle(f_v(open,w_o,500,n_in), f_v(high,w_h,500,n_in), f_v(low,w_l,500,n_in), f_v(close,w_c,500,n_in), "3"color=nabordercolor=color.new(#000000, 55))
    plotcandle(f_v(open,w_o,750,n_in), f_v(high,w_h,750,n_in), f_v(low,w_l,750,n_in), f_v(close,w_c,750,n_in), "2"color=nabordercolor=color.new(#000000, 55))

    isBull1000 c1000 o1000
    //plotcandle(o1000 + (c1000 - o1000) * 0.33, f_v(high,w_h,1000,n_in), f_v(low,w_l,1000,n_in), o1000 + (c1000 - o1000) * 0.66, "1", color=color.new(isBull1000 ? color.lime : color.red, 00), bordercolor=color.new(color.fuchsia, 100))

    // ==========================================
    // 6. GÖRSELLEŞTİRME (JAYROGERS FUTURE LINES)
    // ==========================================
    // Hızlı SMA Çizgisi
    if na(_fastExtention)
        
    _fastExtention := line.new(time_fastMA_offsetTime_fastMAxloc.bar_timeextend.none)
    line.set_xy1(_fastExtentiontime_fastMA)
    line.set_xy2(_fastExtention_offsetTime_fastMA)
    line.set_color(_fastExtentioncolor.blue)
    line.set_width(_fastExtention4)

    // Yavaş SMA Çizgisi
    //if na(_slowExtention)
       // _slowExtention := line.new(time, _slowMA, _offsetTime, _slowMA, xloc.bar_time, extend.none)
    //line.set_xy1(_slowExtention, time, _slowMA)
    //line.set_xy2(_slowExtention, _offsetTime, _slowMA)
    //line.set_color(_slowExtention, color.blue)
    //line.set_width(_slowExtention, 4)

    // Dikey Çizgiler ve Etiketler (Extra Fluff)
    var line _startLineVertical     na
    var line _finishLineVertical    na

    float _min 
    math.min(_fastMA_slowMA)
    float _max math.max(_fastMA_slowMA)
    float _len = (_max _min)
    float _top _max + (_len INP_vertLength)
    float _bot _min - (_len INP_vertLength)

    if 
    na(_startLineVertical)
        
    _startLineVertical := line.new(time_toptime_botxloc.bar_timeextend.nonewidth 4)
    line.set_xy1(_startLineVerticaltime_top)
    line.set_xy2(_startLineVerticaltime_bot)

    //if na(_finishLineVertical)
       // _finishLineVertical := line.new(_offsetTime, _top, _offsetTime, _bot, xloc.bar_time, extend.none)
    //line.set_xy1(_finishLineVertical, _offsetTime, _top)
    //line.set_xy2(_finishLineVertical, _offsetTime, _bot)

    //var label   _offsetLabel    = na
    //string _direction = INP_offsetTime > 0 ? " İleri" : INP_offsetTime < 0 ? " Geri" : ""
    //string _labelText = str.tostring(INP_offsetTime) + " " + _direction + " "

    //if na(_offsetLabel)
       // _offsetLabel := label.new(_offsetTime, _top, _labelText, xloc.bar_time)
    //label.set_xy(_offsetLabel, _offsetTime, _top)
    //label.set_text(_offsetLabel, _labelText)
    //label.set_style(_offsetLabel, INP_vertLength >= 0 ? label.style_label_down : label.style_label_up)

    // ==========================================
    // 7. İMZA TABLOSU
    // ==========================================
    var table tb table.new(position.bottom_right11bgcolor #161114)
    if barstate.islast
        sarTxt 
    "H: " str.tostring(psar_fastformat.mintick) + " | O: " str.tostring(psar_midformat.mintick) + " | Y: " str.tostring(psar_slowformat.mintick)
        
    finalTxt sarTxt " | YATIRIM TAVSİYESİ OLARAK KULLANILAMAZ. | @yörük@ 2026"
        
    table.cell(tb00finalTxttext_color color.whitetext_size size.large)
    ////////////////////
    //@version=6
    // --- 3. Zaman Fonksiyonu ---
    f_offset_time(b) => int(time + (time nz(time[1])) * b)

    // --- 4. Temizlik ve Kayıt  ---
    var box[] boxes = array.new_box()
    var 
    line[] lines = array.new_line()

    if 
    barstate.islast
        
    // Güvenli silme nizamı
        
    if array.size(boxes) > 0
            
    for 0 to array.size(boxes) - 1
                box
    .delete(array.get(boxesi))
            array.
    clear(boxes)
        if array.
    size(lines) > 0
            
    for 0 to array.size(lines) - 1
                line
    .delete(array.get(linesi))
            array.
    clear(lines)

        
    // Giriş verileri (Normalize)
        
    in_o tanh(td(open)), in_h tanh(td(high)), in_l tanh(td(low)), in_c tanh(td(close))
        
    divs = array.from(1000.0750.0500.0250.0100.0)

        
    // 5 Hayalet Bar Döngüsü
        
    for 0 to 4
            d 
    = array.get(divsi)
            
    float pred_o 0.0float pred_h 0.0float pred_l 0.0float pred_c 0.0
            
            
    // DL Hesaplama (Safe Indexing)
            
    for 0 to 5
                idx 
    5
                pred_o 
    += tanh(in_o * array.get(w_oidx) + in_h * array.get(w_oidx+1) + in_l * array.get(w_oidx+2) + in_c * array.get(w_oidx+3) + array.get(w_oidx+4)) * array.get(w_o30+n)
                
    pred_h += tanh(in_o * array.get(w_hidx) + in_h * array.get(w_hidx+1) + in_l * array.get(w_hidx+2) + in_c * array.get(w_hidx+3) + array.get(w_hidx+4)) * array.get(w_h30+n)
                
    pred_l += tanh(in_o * array.get(w_lidx) + in_h * array.get(w_lidx+1) + in_l * array.get(w_lidx+2) + in_c * array.get(w_lidx+3) + array.get(w_lidx+4)) * array.get(w_l30+n)
                
    pred_c += tanh(in_o * array.get(w_cidx) + in_h * array.get(w_cidx+1) + in_l * array.get(w_cidx+2) + in_c * array.get(w_cidx+3) + array.get(w_cidx+4)) * array.get(w_c30+n)

            
    // De-normalize Fiyat Tahminleri
            
    vo open * (- (tanh(pred_o + array.get(w_o36)) - td(open) * d) / d)
            
    vh high * (- (tanh(pred_h + array.get(w_h36)) - td(high) * d) / d)
            
    vl low  * (- (tanh(pred_l + array.get(w_l36)) - td(low)  * d) / d)
            
    vc close * (- (tanh(pred_c + array.get(w_c36)) - td(close) * d) / d)

            
    // --- Görselleştirme ---
            
    t1 f_offset_time(1)
            
    t2 f_offset_time(2)
            
    transp 30 + (12)
            
    b_col vc >= vo color.new(color.rgb(0230119100), transp) : color.new(color.rgb(2558282100), transp)
            
            
    // Kutular ve İğneler
            
    array.push(boxesbox.new(t1math.max(vovc), t2math.min(vovc), border_color=color.new(color.gray60), bgcolor=b_colxloc=xloc.bar_time))
            array.
    push(linesline.new(f_offset_time(1.5), vhf_offset_time(1.5), vlcolor=color.new(color.gray50), xloc=xloc.bar_time))

    // --- Momentum  Entegrasyonu ---
        
    sp // Hassasiyet
        
    dt time time[1]
        for 
    1 to 3
            dx 
    sp
            dy 
    close close[dx]
            array.
    push(linesline.new(timeclosetime dx dtclose dyxloc=xloc.bar_timecolor=color.new(color.black00), style=line.style_dashed))

    //plot(close, color=color.new(color.white, 100))
    ///// 
    fibo-sentinel olasılık....
    PHP Code:
    //@version=5
    indicator("Ai"overlay=truemax_bars_back=1000max_lines_count=500max_boxes_count=500)

    // --- 1. DERİN ÖĞRENME (ANN) HESAPLAMALARI ---
    tangentdiff(_src) => nz((_src _src[1]) / _src[1])
    ActivationFunctionTanh(v1) => (math.exp(-v1)) / (math.exp(-v1))

    _ind1 = (open open[1]) / open[1], _ind2 = (high high[1]) / high[1]
    n_0 ActivationFunctionTanh(_ind1), n_1 ActivationFunctionTanh(_ind2)

    f_open  open  * (- (ActivationFunctionTanh(0.03 n_0 5.11 n_1) - tangentdiff(open) * 1000) / 1000)
    f_high  high  * (- (ActivationFunctionTanh(10.1 n_0 30.9 n_1) - tangentdiff(high) * 1000) / 1000)
    f_low   low   * (- (ActivationFunctionTanh(4.36 n_0 18.3 n_1) - tangentdiff(low) * 1000) / 1000)
    f_close close * (- (ActivationFunctionTanh(22.4 n_0 26.6 n_1) - tangentdiff(close) * 1000) / 1000)

    // --- 2. KADEMELİ ZIRH VE SENTINEL HESABI ---
    f_get_kalkan(_len) =>
        
    _stdev ta.stdev(f_close_len)
        
    _basis ta.sma(f_close_len)
        [
    _basis + (_stdev 2.5), _basis - (_stdev 2.5), _basis]

    [
    up100dn100b100]     = f_get_kalkan(100)
    [
    up250dn250b250]     = f_get_kalkan(250)
    [
    up500dn500b500]     = f_get_kalkan(500)
    [
    up750dn750b750]     = f_get_kalkan(750)
    [
    up1000dn1000b1000]   = f_get_kalkan(1000)

    // --- 3. TLM VEKTÖR HESABI (GÖRÜNMEZ ANALİZ) ---
    ph ta.pivothigh(f_high1515), pl ta.pivotlow(f_low1515)
    var 
    float vector_direction 0.0
    if not na(ph)
        
    vector_direction := 1.0 // Ayı baskısı / Direnç
    if not na(pl)
        
    vector_direction := -1.0 // Boğa baskısı / Destek

    // --- 4. GÖRSELLEŞTİRME (ÇİZGİSİZ) ---
    plotcandle(f_openf_highf_lowf_closetitle="1"color=f_close f_open color.new(#00ffbb, 75) : color.new(#ff0055, 75), bordercolor=na)
    plotcandle(up100up100dn100dn100title="6"color=f_close b100 color.new(#faf9f8, 90) : color.new(#080808, 90), bordercolor=na)

    // --- 5. MONTE CARLO VE MARKOV REJİM ---
    returns math.log(f_close f_close[1])
    mu ta.sma(returns50), sigma ta.stdev(returns50)
    mc_upper f_close math.exp(mu sigma 2.326), mc_lower f_close math.exp(mu sigma 2.326)

    markov_state f_close b500 ? (f_close up100 "AŞIRI BOĞA" "BOĞA") : (f_close dn100 "AŞIRI AYI" "AYI")
    markov_col f_close b500 color.green color.red

    // --- 6. ULTIMATE DASHBOARD (TÜM VERİ BURADA) ---
    var table stats_table table.new(position.top_right211border_width 1frame_color=color.gray)
    f_near_color(_val) => math.abs(close _val) / _val 0.003 color.new(color.yellow30) : color.new(color.white50)

    if 
    barstate.islast
        table
    .cell(stats_table00"SİSTEM DURUMU"bgcolor=color.blacktext_color=color.white)
        
    table.cell(stats_table10"VERİ / ANALİZ"bgcolor=color.blacktext_color=color.white)
        
        
    table.cell(stats_table01"MARKOV "bgcolor=color.new(markov_col80))
        
    table.cell(stats_table11markov_statebgcolor=markov_coltext_color=color.white)

        
    table.cell(stats_table02"TLM "bgcolor=color.new(color.white80))
        
    table.cell(stats_table12vector_direction "DİRENÇ BASKISI" "DESTEK GÜCÜ"bgcolor=vector_direction color.new(color.red70) : color.new(color.green70), text_color=color.white)
        
        
    table.cell(stats_table03"MONTE CARLO "bgcolor=color.new(color.blue70), text_color=color.white)
        
    table.cell(stats_table13str.format("{0,number,#.#}-{1,number,#.#}"mc_uppermc_lower))
        
        
    table.cell(stats_table04"100'LÜ SENTINEL"bgcolor=f_near_color(up100))
        
    table.cell(stats_table14str.format("{0,number,#.#} / {1,number,#.#}"up100dn100))
        
        
    table.cell(stats_table05"250'Lİ SENTINEL"bgcolor=f_near_color(up250))
        
    table.cell(stats_table15str.format("{0,number,#.#} / {1,number,#.#}"up250dn250))
        
        
    table.cell(stats_table06"500'LÜ SENTINEL"bgcolor=f_near_color(up500))
        
    table.cell(stats_table16str.format("{0,number,#.#} / {1,number,#.#}"up500dn500))
        
        
    table.cell(stats_table07"750'Lİ SENTINEL"bgcolor=f_near_color(up750))
        
    table.cell(stats_table17str.format("{0,number,#.#} / {1,number,#.#}"up750dn750))
        
        
    table.cell(stats_table08"1000'Lİ SENTINEL"bgcolor=color.purpletext_color=color.white)
        
    table.cell(stats_table18str.format("{0,number,#.#} / {1,number,#.#}"up1000dn1000))

    // --- 7. QUANTUM-ZONE KUTULARI (ÇİZGİSİZ BÖLGELER) ---
    if not na(ph)
        
    box.new(bar_index 15phbar_index 5ph 0.998border_color=nabgcolor=color.new(color.red35))
    if 
    not na(pl)
        
    box.new(bar_index 15plbar_index 5pl 1.002border_color=nabgcolor=color.new(color.green35))
    ///////    /////////////////
    //@version=6

    // ==================== GİRDİLER ====================
    tlm_lookback input.int(15"TLM Pivot Hassasiyeti")
    mc_period    input.int(50"Monte Carlo Olasılık Periyodu")
    radius_mult  input.int(25"Hilal Menzili")
    col_high     input.color(color.new(#000000, 20), "Direnç Kalkanı")
    col_low      input.color(color.new(#ffffff, 20), "Destek Kalkanı")

    // ==================== TLM FİLTRE MOTORU (Saf Fiyat) ====================
    // Sadece güçlü, "noksansız" pivot noktalarını seçer
    ph33 ta.pivothigh(tlm_lookbacktlm_lookback)
    pl33 ta.pivotlow(tlm_lookbacktlm_lookback)

    // Filtre: Her pivotu değil, sadece yeni bir kanal sınırı oluşturanı kabul et
    new_h not na(ph33)
    new_l not na(pl33)

    // ==================== MONTE CARLO & VOLATİLİTE ====================
    returns33math.log(close close[1])
    sigma33   ta.stdev(returns33mc_period)
    expected_vol33 sigma33 math.sqrt(radius_mult) * 1.96

    // ==================== PRICE ACTION KANAL MANTIĞI ====================
    var float pa_upper na
    var float pa_lower na

    if new_h
        pa_upper 
    := high[tlm_lookback]
    if 
    new_l
        pa_lower 
    := low[tlm_lookback]

    // ==================== ELİTE HİLAL ÇİZİMİ (TLM ONAYLI) ====================
    ease_out(t) => * (t)

    // Üst Hilal (TLM Filtresinden Geçmiş Güçlü Direnç)
    var polyline hi_c na
    if new_h
        pts 
    = array.new<chart.point>()
        for 
    0 to 20
            float t 
    20.0
            float angle 
    math.pi + (ease_out(t) * math.pi)
            
    int x int(math.round(math.cos(angle) * radius_mult)) + bar_index radius_mult
            float y 
    math.sin(angle) * (expected_vol33 close) + pa_upper
            pts
    .push(chart.point.from_index(xy))
        
        
    polyline.delete(hi_c)
        
    hi_c := polyline.new(ptscurved=trueline_color=col_highline_width=2)

    // Alt Hilal (TLM Filtresinden Geçmiş Güçlü Destek)
    var polyline lo_c na
    if new_l
        pts 
    = array.new<chart.point>()
        for 
    0 to 20
            float t 
    20.0
            float angle 
    = (ease_out(t) * math.pi)
            
    int x int(math.round(math.cos(angle) * radius_mult)) + bar_index radius_mult
            float y 
    math.sin(angle) * (expected_vol33 close) + pa_lower
            pts
    .push(chart.point.from_index(xy))
        
        
    polyline.delete(lo_c)
        
    lo_c := polyline.new(ptscurved=trueline_color=col_lowline_width=2)

    // ==================== GÖRSELLEŞTİRME ====================
    plot(pa_upper"TLM Üst"color.new(col_high80), 2plot.style_linebroffset=-tlm_lookback)
    plot(pa_lower"TLM Alt"color.new(col_low80), 2plot.style_linebroffset=-tlm_lookback)
    ////////////////////
    //@version=6

    // --- GİRDİLER ---
    radius_mult555 input.int(5"Daire Büyüklüğü")
    pivot_len555   input.int(2"Pivot Hassasiyeti")
    //col_high    = input.color(color.new(color.red, 60), "Üst Daire Rengi")
    //col_low     = input.color(color.new(color.lime, 60), "Alt Daire Rengi")

    // --- HESAPLAMALAR ---
    ph55 ta.pivothigh(pivot_len555pivot_len555)
    pl55 ta.pivotlow(pivot_len555pivot_len555)
    atr ta.atr(14)

    // --- ÜST DAİRE MOTORU (Pivot High) ---
    var int hi_index na
    var float hi_price na
    var polyline hi_circle na

    if not na(ph55)
        
    hi_index := bar_index[pivot_len555]
        
    hi_price := high[pivot_len555]
        
        
    hi_points = array.new<chart.point>()
        for 
    0 to 40
            float angle 
    = (math.pi) / 40
            int x 
    int(math.round(math.cos(angle) * radius_mult555)) + hi_index
            float y 
    math.sin(angle) * radius_mult555 * (atr 0.5) + hi_price
            hi_points
    .push(chart.point.from_index(xy))
        
        if 
    not na(hi_circle)
            
    polyline.delete(hi_circle)
        
    hi_circle := polyline.new(hi_pointscurved=trueline_color=col_highfill_color=color.new(col_high93), line_width=2)

    // --- ALT DAİRE MOTORU (Pivot Low) ---
    var int lo_index na
    var float lo_price na
    var polyline lo_circle na

    if not na(pl55)
        
    lo_index := bar_index[pivot_len555]
        
    lo_price := low[pivot_len555]
        
        
    lo_points = array.new<chart.point>()
        for 
    0 to 40
            float angle 
    = (math.pi) / 40
            int x 
    int(math.round(math.cos(angle) * radius_mult555)) + lo_index
            float y 
    math.sin(angle) * radius_mult555 * (atr 0.5) + lo_price
            lo_points
    .push(chart.point.from_index(xy))
        
        if 
    not na(lo_circle)
            
    polyline.delete(lo_circle)
        
    lo_circle := polyline.new(lo_pointscurved=trueline_color=col_lowfill_color=color.new(col_low93), line_width=2)

    // --- MERKEZ İŞARETLERİ ---
    //plot(hi_price, "FiboÜst", color.rgb(255, 82, 82, 100), 2, plot.style_cross, offset=-pivot_len555, ****=false)
    //plot(lo_price, "FiboAlt", color.rgb(0, 230, 119, 100), 2, plot.style_cross, offset=-pivot_len555, ****=false)
    ///////////////////////// 
    16.07.2024 - 10.12.2024

  6. PHP Code:
    //@version=6
    indicator(".",  overlay=truemax_bars_back=500max_polylines_count=100max_boxes_count=500)

    // ==========================================
    // 1. DL MOTORU & HESAPLAMA
    // ==========================================
    tanh(v) => (math.exp(-v)) / (math.exp(-v))
    td(s)   => nz((nz(s[1])) / nz(s[1]))

    calc_dl(float[] n_arrfloat[] w_arr) =>
        
    = array.new_float(0)
        for 
    0 to 5
            float s 
    0.0
            
    for 0 to 3
                s 
    += array.get(n_arrj) * array.get(w_arr, (5) + j)
            array.
    push(htanh(+ array.get(w_arr, (5) + 4)))
        
    float out = array.get(w_arr36)
        for 
    0 to 5
            out 
    += array.get(hi) * array.get(w_arr30 i)
        
    tanh(out)

    w_o = array.from(0.03055.1130, -26.0857, -5.32027.35474.16797.2258, -0.8712, -8.8945, -7.0647, -0.8062, -0.3044, -3.9097, -5.00995.1275, -29.736028.66840.1384, -57.58852.8249, -0.42930.4827, -0.7897, -2.9874, -4.31071.7583, -0.61802.4493, -1.58311.1658, -0.6530, -4.6469, -1.6789, -17.07760.8754, -6.67246.9407)
    w_h = array.from(10.1865, -30.964821.6723, -40.89587.9574, -15.252314.845410.6214, -23.81782.9475, -15.1790, -30.011835.6504, -61.48043.898535.6564, -11.1343, -28.07152.9239, -1.80573.4623, -13.6440, -30.2263, -1.083923.0328, -47.265819.021810.5652, -27.52076.9475, -0.6965, -1.349427.2629, -1.0423, -0.5401, -10.73551.3032)
    w_l = array.from(4.3631, -18.3014, -15.376821.2085, -0.4581, -2.65185.2054, -5.9209, -4.84748.315513.8853, -5.5179, -15.2411, -8.6732, -4.954010.4904, -25.201510.2621, -1.1161, -5.2541, -14.68779.0302, -17.33248.06800.75510.8951, -1.73774.8991, -7.71845.49364.1329, -17.50154.6174, -28.4768, -5.8882, -24.434541.3187)
    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(td(open)), tanh(td(high)), tanh(td(low)), tanh(td(close)))
    f_v(pwdivn_arr) => * (- (calc_dl(n_arrw) - td(p) * div) / div)

    isNewDay ta.change(time("D")) != 0
    var float anchorToday na
    if isNewDay
        anchorToday 
    := open

    calc_psar
    (price_cprice_hprice_lstart_afmax_af) =>
        var 
    float s_val na, var float s_ep na, var float s_af start_af, var bool s_bull true
        
    if isNewDay
            s_val 
    := anchorTodays_ep := price_hs_af := start_afs_bull := price_c anchorToday
        
    else if not na(s_val)
            
    s_val := s_val s_af * (s_ep s_val)
            if 
    s_bull
                
    if price_l s_val
                    s_bull 
    := falses_val := s_eps_ep := price_ls_af := start_af
                
    else
                    if 
    price_h s_ep
                        s_ep 
    := price_hs_af := math.min(max_afs_af start_af)
            else
                if 
    price_h s_val
                    s_bull 
    := trues_val := s_eps_ep := price_hs_af := start_af
                
    else
                    if 
    price_l s_ep
                        s_ep 
    := price_ls_af := math.min(max_afs_af start_af)
        [
    s_vals_bull]

    // ==========================================
    // 2. PLOTLAR (BAR 5 VE BAR 1)
    // ==========================================
    o100 f_v(openw_o100n_in), h100 f_v(highw_h100n_in)
    l100 f_v(loww_l100n_in), c100 f_v(closew_c100n_in)

    //plotcandle(o100, h100, l100, c100, "Sentinel-Sonra", color=c100 > c100[1] ? color.new(color.gray, 100) : color.new(color.red, 100), bordercolor=color.new(color.white, 75))

    o1000 f_v(openw_o500n_in), c1000 f_v(closew_c500n_in)
    h1000 f_v(highw_h500n_in), l1000 f_v(loww_l500n_in)

    isBull1000 c1000 o1000
    plotcandle
    (o1000 + (c1000 o1000) * 0.10h1000l1000o1000 + (c1000 o1000) * 0.90"Next"color=isBull1000 color.new(color.lime80) : color.new(color.red80), bordercolor=color.new(color.fuchsia100))


    f_ann_price(price) =>
        
    = (math.exp(-nz((price price[1]) / price[1]))) / (math.exp(-nz((price price[1]) / price[1])))
        
    price * (- (500))
    f_close f_ann_price(close)
    // ==========================================

    //////
    // 2. 4-KATMANLI DESTEK/DİRENÇ GÖRÜNÜMÜ
    // ==========================================
    c5 f_v(closew_c100n_in), h5 f_v(highw_h100n_in), l5 f_v(loww_l100n_in)
    [
    psar5sb5s] = calc_psar(c5h5l50.0020.1)
    [
    psar5ab5a] = calc_psar(c5h5l50.00010.1)

    c1 f_v(closew_c500n_in), h1 f_v(highw_h1000n_in), l1 f_v(loww_l1000n_in)
    [
    psar1sb1s] = calc_psar(c1h1l10.0020.1)
    [
    psar1ab1a] = calc_psar(c1h1l10.00010.1)

    // ==========================================
    // 3. GÖRSELLEŞTİRME (v6 STANDARTLARI)
    // ==========================================

    // Katman 1: En Yakın Sur (Agresif Bar 5) - Şeffaflık color.new ile eklendi
    plot(psar5a"100"color b5a color.new(color.blue0) : color.new(color.blue0), style plot.style_linelinewidth 1)

    // Katman 2: Orta Menzil (Sabırlı Bar 5)
    //plot(psar5s, "yörük101", color = b5s ? color.new(color.yellow, 0) : color.new(color.yellow, 0), style = plot.style_line, linewidth = 1)

    // Katman 3: Ana Gövde (Agresif Bar 1)
    plot(psar1a"500"color b1a color.new(color.fuchsia0) : color.new(color.fuchsia0), style plot.style_linelinewidth 1)

    // Katman 4: KALE (Trend Sabırlı)
    //plot(psar1s, "yörük501", color = b1s ? color.new(color.lime, 0) : color.new(color.lime, 0), style = plot.style_line, linewidth = 1)

    // Açılış Çizgisi
    plot(anchorToday"Open"color color.new(color.orange00), linewidth 1,  style plot.style_line)

    // ==========================================
    // 1. PSAR MOTORU (MTK TRIDENT - DAİRE FORMUNDA)
    // ==========================================
    float sur_agresif ta.sar(0.020.020.2)   // MTK-1
    float sur_sabirli  ta.sar(0.0150.0150.15// MTK-2
    float sur_patron   ta.sar(0.010.010.1)    // MTK-3 (Patron)

    // ==========================================
    // 2. SAATLİK TEPE VE DİP KIRILIM MOTORU
    // ==========================================
    // Kırılım tespiti: Fiyatın MTK-3'ü kestiği an
    bool mtk3_reversal ta.cross(closesur_patron)

    // Saatlik periyottan Kırılım anındaki High ve Low değerlerini al
    [tf_hightf_lowtf_rev] = request.security(syminfo.tickerid"60", [highlowmtk3_reversal])

    var 
    line high_line na
    var line low_line na

    if tf_rev
        
    // Önceki çizgileri silerek noksansız bir görünüm sağla
        
    line.delete(high_line)
        
    line.delete(low_line)
        
        
    // Tepe noktasından (High) uzatılan çizgi
        
    high_line := line.new(bar_indextf_highbar_index 1tf_high
             
    extend=extend.rightcolor=color.new(color.lime40), width=1style=line.style_dashed)
        
        
    // Dip noktasından (Low) uzatılan çizgi
        
    low_line := line.new(bar_indextf_lowbar_index 1tf_low
             
    extend=extend.rightcolor=color.new(color.red40), width=1style=line.style_dashed)

    // ==========================================
    // 3. PLOTLAR (DAİRE STİLİ)
    // ==========================================
    plot(sur_agresif"Sar-1"color=color.yellowstyle=plot.style_circleslinewidth=2)
    plot(sur_sabirli"Sar-2"color=color.bluestyle=plot.style_circleslinewidth=1)
    plot(sur_patron"Sar-3"color=color.redstyle=plot.style_circleslinewidth=1)

    // Yatırım Tavsiyesi Değildir Tablosu
    var table ytd_table table.new(position.bottom_center11)
    if 
    barstate.islast
        table
    .cell(ytd_table00"Yatırım Tavsiyesi Değildir"text_color=color.new(color.white70), text_size=size.small
    16.07.2024 - 10.12.2024

  7. eliot
    PHP Code:
    // This work is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International 
    // https://creativecommons.org/licenses/by-nc-sa/4.0/
    // (Refined for House Rules Compliance: Terminology & Open Source Standards)

    //@version=6
    indicator("Elliott"overlay truemax_lines_count 500max_labels_count 500)

    // -----------------------------------------------------------------------------
    // SETTINGS
    // -----------------------------------------------------------------------------
    grp_mode "🔄 Dynamic Logic"
    // Changed "AI" to "Adaptive" to meet House Rules on marketing terminology
    forecast_mode input.string("Auto-Detect (Adaptive + Trend + RSI)""Forecast Mode"options=["Auto-Detect (Adaptive + Trend + RSI)""Simple Trend (Pivot Based)""Force Impulse (12345)""Force Correction (ABC/WXY)"], group=grp_modetooltip="Adaptive Mode weighs Trend (WMA) and Momentum (RSI) to project potential reversals.")

    grp_ind "Indicators (Signal Inputs)"
    show_wma     input.bool(true"Show 50 & 200 WMA"group=grp_ind)
    len_wma_fast input.int(50"Fast WMA"group=grp_ind)
    len_wma_slow input.int(200"Slow WMA"group=grp_ind)
    show_rsi_sig input.bool(false"Show RSI Signals on Chart"group=grp_ind)
    rsi_ob_lvl   input.int(70"RSI Overbought"group=grp_ind)
    rsi_os_lvl   input.int(30"RSI Oversold"group=grp_ind)

    grp_sett "Wave Settings"
    len        input.int(5"Short-Term Sensitivity"minval=2group=grp_sett)
    color_imp  input.color(#089981, "Impulse Color", group=grp_sett) 
    color_corr input.color(#f23645, "Correction Color", group=grp_sett) 

    grp_cast "Forecast Settings"
    show_ext_bull input.bool(true"Show Bullish Extension"inline="ext"group=grp_cast)
    show_ext_bear input.bool(true"Show Bearish Extension"inline="ext"group=grp_cast)
    color_cont    input.color(#ff9800, "", inline="ext", group=grp_cast)
    link_scenarios input.bool(false"🔗 Link Correction to Extension"tooltip="Start forecast from the Extension target instead of current price."group=grp_cast)
    pattern_type  input.string("Double Zig-Zag (WXY)""Correction Pattern"options=["Triangle (ABCDE)""Double Zig-Zag (WXY)"], group=grp_cast)
    show_channel  input.bool(true"Show Corrective Channel"group=grp_cast)

    grp_macro "Macro Forecast"
    show_macro    input.bool(true"Show Macro Projection"group=grp_macro)
    len_macro     input.int(21"Macro Sensitivity"minval=10group=grp_macro)
    use_dynamic_time input.bool(true"Use Dynamic Time Scaling"group=grp_macro)
    fixed_spacing input.int(10"Fixed Bars per Wave"minval=1group=grp_macro)
    color_macro   input.color(#9c27b0, "Macro Color", group=grp_macro)

    grp_vis   "Dashboard & Visuals"
    show_table  input.bool(false"Show Target Table"group=grp_vis)
    table_pos   input.string(position.top_right"Table Position"options=[position.top_rightposition.bottom_rightposition.top_left], group=grp_vis)
    show_labels input.bool(true"Show Chart Labels"group=grp_vis)
    show_grid   input.bool(true"Show Horizontal Fib Levels"group=grp_vis)

    // -----------------------------------------------------------------------------
    // CALCULATIONS
    // -----------------------------------------------------------------------------
    wma_fast ta.wma(closelen_wma_fast)
    wma_slow ta.wma(closelen_wma_slow)
    //plot(show_wma ? wma_fast : na, "50", color=color.blue, linewidth=2)
    //plot(show_wma ? wma_slow : na, "200", color=color.orange, linewidth=2)

    my_rsi ta.rsi(close14)
    is_ob my_rsi >= rsi_ob_lvl
    is_os 
    my_rsi <= rsi_os_lvl

    //plotshape(show_rsi_sig and is_ob, title="RSI Overbought", style=shape.circle, location=location.abovebar, color=color.red, size=size.tiny)
    //plotshape(show_rsi_sig and is_os, title="RSI Oversold", style=shape.circle, location=location.belowbar, color=color.green, size=size.tiny)

    // -----------------------------------------------------------------------------
    // STORAGE & ARRAYS
    // -----------------------------------------------------------------------------
    var float[] pPrices = array.new_float()
    var 
    int[]   pBars   = array.new_int()
    var 
    bool[]  pDirs   = array.new_bool() 
    var 
    float[] pRSI    = array.new_float()

    var 
    float[] pPricesM = array.new_float()
    var 
    int[]   pBarsM   = array.new_int()
    var 
    bool[]  pDirsM   = array.new_bool()

    var 
    line[]  ghostLines  = array.new_line()
    var 
    label[] ghostLabels = array.new_label()
    var 
    table   infoTable   table.new(table_pos430border_width 1)

    // -----------------------------------------------------------------------------
    // HELPER FUNCTIONS
    // -----------------------------------------------------------------------------
    addPivot(float pint bbool dfloat rfloat[] pricesint[] barsbool[] dirsfloat[] rsis) =>
        array.
    unshift(pricesp)
        array.
    unshift(barsb)
        array.
    unshift(dirsd)
        array.
    unshift(rsisr
        if array.
    size(prices) > 20
            
    array.pop(prices)
            array.
    pop(bars)
            array.
    pop(dirs)
            array.
    pop(rsis)

    addPivotMacro(float pint bbool dfloat[] pricesint[] barsbool[] dirs) =>
        array.
    unshift(pricesp)
        array.
    unshift(barsb)
        array.
    unshift(dirsd)
        if array.
    size(prices) > 20
            
    array.pop(prices)
            array.
    pop(bars)
            array.
    pop(dirs)

    drawPred(int t1float p1int t2float p2string txtstring fibcolor colint widthbool is_macro) =>
        
    line.new(t1p1t2p2color=colstyle=line.style_dashedwidth=width)
        array.
    push(ghostLinesl)
        
        if 
    show_grid
            l_hor 
    line.new(t2p2t2 15p2color=color.new(col60), style=line.style_dottedwidth=1)
            array.
    push(ghostLinesl_hor)

        if 
    show_labels
            lbl_style 
    p2 p1 label.style_label_down label.style_label_up
            lbl_size  
    is_macro size.normal size.small
            lbl_text  
    txt " (" str.tostring(p2format.mintick) + ")"
            
            
    lb label.new(t2p2text=lbl_textcolor=color.new(col85), textcolor=colstyle=lbl_stylesize=lbl_size)
            array.
    push(ghostLabelslb)

    fillRow(int rstring tstring ffloat pcolor c) =>
        
    pct_diff = (close) / close 100
        pct_str  
    = (pct_diff "+" "") + str.tostring(pct_diff"#.##") + "%"
        
    pct_col  pct_diff >= #089981 : #f23645 
        
        
    if 30
            table
    .cell(infoTable0rttext_color=color.whitebgcolor=ctext_size=size.small)
            
    table.cell(infoTable1rftext_color=color.whitebgcolor=color.new(c20), text_size=size.small)
            
    table.cell(infoTable2rstr.tostring(pformat.mintick), text_color=color.whitebgcolor=color.new(color.black20), text_size=size.small)
            
    table.cell(infoTable3rpct_strtext_color=pct_colbgcolor=color.new(color.black20), text_size=size.small)

    get_wave_duration(int[] barsint fallback) =>
        
    int duration fallback
        
    if array.size(bars) > 2
            int d1 
    math.abs(array.get(bars0) - array.get(bars1))
            
    int d2 math.abs(array.get(bars1) - array.get(bars2))
            
    duration := int(math.avg(d1d2))
        
    duration

    // -----------------------------------------------------------------------------
    // MAIN EXECUTION
    // -----------------------------------------------------------------------------
    ph ta.pivothigh(highlenlen)
    pl ta.pivotlow(lowlenlen)

    if 
    not na(ph)
        
    addPivot(phbar_index[len], truemy_rsi[len], pPricespBarspDirspRSI)
    if 
    not na(pl)
        
    addPivot(plbar_index[len], falsemy_rsi[len], pPricespBarspDirspRSI)

    phM ta.pivothigh(highlen_macrolen_macro)
    plM ta.pivotlow(lowlen_macrolen_macro)

    if 
    not na(phM)
        
    addPivotMacro(phMbar_index[len_macro], truepPricesMpBarsMpDirsM)
    if 
    not na(plM)
        
    addPivotMacro(plMbar_index[len_macro], falsepPricesMpBarsMpDirsM)

    // History Rendering
    if (not na(ph) or not na(pl)) and array.size(pPrices) > 1
        p1_val 
    = array.get(pPrices0)
        
    p1_bar = array.get(pBars0)
        
    p2_val = array.get(pPrices1)
        
    p2_bar = array.get(pBars1)
        
    line.new(p2_barp2_valp1_barp1_valcolor=color.rgb(120123134100), width=1)

    if 
    barstate.islast
        
    for l in ghostLines
            line
    .delete(l)
        for 
    lb in ghostLabels
            label
    .delete(lb)
        array.
    clear(ghostLines)
        array.
    clear(ghostLabels)
        
        
    table.clear(infoTable00329
        
    infoTable := table.new(table_pos430border_width 1)
        
        if 
    show_table
            table
    .cell(infoTable00"Wave"bgcolor=color.graytext_color=color.white)
            
    table.cell(infoTable10"Fib"bgcolor=color.graytext_color=color.white)
            
    table.cell(infoTable20"Target"bgcolor=color.graytext_color=color.white)
            
    table.cell(infoTable30"% +/-"bgcolor=color.graytext_color=color.white)
        
        
    int tbl_row 

        
    if array.size(pPrices) > 0
            last_conf_val 
    = array.get(pPrices0)
            
    last_conf_bar = array.get(pBars0)
            
    last_conf_dir = array.get(pDirs0)
            
            
    int bars_elapsed bar_index last_conf_bar
            float live_pivot_val 
    0.0
            int   live_pivot_bar 
    0
            bool  live_pivot_dir 
    bool(na)
            
            if 
    last_conf_dir 
                lowest_val 
    1000000.0
                lowest_idx 
    0
                
    for 0 to bars_elapsed
                    
    if low[i] < lowest_val
                        lowest_val 
    := low[i]
                        
    lowest_idx := bar_index[i]
                
    live_pivot_val := lowest_val
                live_pivot_bar 
    := lowest_idx
                live_pivot_dir 
    := false 
                
    if close live_pivot_val
                    live_pivot_val 
    := close
                    live_pivot_bar 
    := bar_index
                    live_pivot_dir 
    := false
            
    else 
                
    highest_val 0.0
                highest_idx 
    0
                
    for 0 to bars_elapsed
                    
    if high[i] > highest_val
                        highest_val 
    := high[i]
                        
    highest_idx := bar_index[i]
                
    live_pivot_val := highest_val
                live_pivot_bar 
    := highest_idx
                live_pivot_dir 
    := true 
                
    if close live_pivot_val
                    live_pivot_val 
    := close
                    live_pivot_bar 
    := bar_index
                    live_pivot_dir 
    := true

            float vol 
    math.abs(last_conf_val live_pivot_val)
            if 
    vol == 
                vol 
    := syminfo.mintick 100
            
            int time_unit 
    use_dynamic_time math.max(3int(get_wave_duration(pBars10) * 0.382)) : 5
            int t_step 
    time_unit

            
    // --- EXTENSION ---
            
    float pExt na
            int   tExt 
    bar_index + (time_unit 2)
            
    bool  drawing_ext false

            
    if not live_pivot_dir 
                
    if show_ext_bear
                    calc_price 
    live_pivot_val - (vol 0.5)
                    
    pExt := math.max(0.01calc_price)
                    
    drawPred(live_pivot_barlive_pivot_valtExtpExt"Ext""0.5"color_cont2false)
                    if 
    show_table
                        fillRow
    (tbl_row"Bear Ext""0.5 Vol"pExtcolor_cont)
                        
    tbl_row += 1
                    drawing_ext 
    := true
            
    else 
                if 
    show_ext_bull
                    pExt 
    := live_pivot_val + (vol 0.5)
                    
    drawPred(live_pivot_barlive_pivot_valtExtpExt"Ext""0.5"color_cont2false)
                    if 
    show_table
                        fillRow
    (tbl_row"Bull Ext""0.5 Vol"pExtcolor_cont)
                        
    tbl_row += 1
                    drawing_ext 
    := true

            float rev_start_price 
    live_pivot_val
            int   rev_start_bar   
    live_pivot_bar
            
    if link_scenarios and drawing_ext
                rev_start_price 
    := pExt
                rev_start_bar   
    := tExt

            
    // --- ADAPTIVE LOGIC ENGINE ---
            
    bool trend_bull wma_fast wma_slow
            string detect_phase 
    "Neutral"
            
    bool do_impulse false
            bool start_dir 
    live_pivot_dir

            
    if forecast_mode == "Force Impulse (12345)"
                
    detect_phase := "IMPULSE"
                
    do_impulse := true
            
    else if forecast_mode == "Force Correction (ABC/WXY)"
                
    detect_phase := "CORRECTION"
                
    do_impulse := false
            
    else if forecast_mode == "Simple Trend (Pivot Based)"
                
    if trend_bull
                    do_impulse 
    := (start_dir == false)
                else
                    
    do_impulse := (start_dir == true)
                
    detect_phase := do_impulse "Trend: Impulse" "Trend: Correction"
            
    else
                if 
    trend_bull
                    
    if is_os
                        detect_phase 
    := "ADAPT: Bull Dip"
                        
    do_impulse := true 
                    
    else if is_ob
                        detect_phase 
    := "ADAPT: Bull Peak"
                        
    do_impulse := false 
                    
    else
                        
    detect_phase := start_dir "Bull Corr" "Bull Imp"
                        
    do_impulse := (start_dir == false)
                else
                    if 
    is_ob
                        detect_phase 
    := "ADAPT: Bear Rally"
                        
    do_impulse := true 
                    
    else if is_os
                        detect_phase 
    := "ADAPT: Bear Low"
                        
    do_impulse := false 
                    
    else
                        
    detect_phase := start_dir "Bear Imp" "Bear Corr"
                        
    do_impulse := (start_dir == true)

            if 
    show_table
                status_col 
    do_impulse color_imp color_corr
                table
    .cell(infoTable0tbl_row"STATUS"bgcolor=color.graytext_color=color.white)
                
    table.cell(infoTable1tbl_rowdetect_phasebgcolor=status_coltext_color=color.white)
                
    table.merge_cells(infoTable1tbl_row3tbl_row)
                
    tbl_row += 1

            dir_mult 
    start_dir ? -1

            
    if do_impulse
                p1 
    math.max(0.01rev_start_price + (dir_mult vol 0.382))
                
    t1 rev_start_bar t_step 
                drawPred
    (rev_start_barrev_start_pricet1p1"①""Start"color_imp2false)
                if 
    show_table
                    fillRow
    (tbl_row"Wave 1""Start"p1color_imp)
                    
    tbl_row += 1
                
                p2 
    math.max(0.01p1 - (dir_mult * (math.abs(p1 rev_start_price) * 0.618)))
                
    t2 t1 t_step
                drawPred
    (t1p1t2p2"②""0.618"color_imp2false)
                if 
    show_table
                    fillRow
    (tbl_row"Wave 2""0.618"p2color_imp)
                    
    tbl_row += 1
                
                p3 
    math.max(0.01p2 + (dir_mult * (math.abs(p1 rev_start_price) * 1.618)))
                
    t3 t2 t_step
                drawPred
    (t2p2t3p3"③""1.618"color_imp2false)
                if 
    show_table
                    fillRow
    (tbl_row"Wave 3""1.618"p3color_imp)
                    
    tbl_row += 1

                p4 
    math.max(0.01p3 - (dir_mult * (math.abs(p3 p2) * 0.382)))
                
    t4 t3 t_step
                drawPred
    (t3p3t4p4"④""0.382"color_imp2false)
                if 
    show_table
                    fillRow
    (tbl_row"Wave 4""0.382"p4color_imp)
                    
    tbl_row += 1

                p5 
    math.max(0.01p4 + (dir_mult math.abs(p1 rev_start_price)))
                
    t5 t4 t_step
                drawPred
    (t4p4t5p5"⑤""1.0"color_imp2false)
                if 
    show_table
                    fillRow
    (tbl_row"Wave 5""1.0"p5color_imp)
                    
    tbl_row += 1
                    
            
    else
                
    pA math.max(0.01rev_start_price + (dir_mult vol 0.382))
                
    tA rev_start_bar t_step
                drawPred
    (rev_start_barrev_start_pricetApA"Ⓐ""0.382"color_corr2false)
                if 
    show_table
                    fillRow
    (tbl_row"Wave A""0.382"pAcolor_corr)
                    
    tbl_row += 1

                pB 
    math.max(0.01pA - (dir_mult * (math.abs(rev_start_price pA) * 0.618)))
                
    tB tA t_step
                drawPred
    (tApAtBpB"Ⓑ""0.618"color_corr2false)
                if 
    show_table
                    fillRow
    (tbl_row"Wave B""0.618"pBcolor_corr)
                    
    tbl_row += 1

                len_A 
    math.abs(rev_start_price pA)
                
    pC math.max(0.01pB + (dir_mult len_A 1.618))
                
    tC tB t_step
                
                c_lbl 
    pattern_type == "Double Zig-Zag (WXY)" "(W)" "Ⓒ"
                
    drawPred(tBpBtCpCc_lbl"1.618"color_corr2false)
                if 
    show_table
                    fillRow
    (tbl_row"Wave C/W""1.618"pCcolor_corr)
                    
    tbl_row += 1

                
    if show_channel
                    l_top 
    line.new(rev_start_barrev_start_pricetBpBcolor=color.new(color.white70), style=line.style_dotted)
                    array.
    push(ghostLinesl_top)
                    
    slope = (pB rev_start_price) / (tB rev_start_bar)
                    
    p_parallel pA + (slope * (tC tA))
                    
    l_bot line.new(tApAtCp_parallelcolor=color.new(color.white70), style=line.style_dotted)
                    array.
    push(ghostLinesl_bot)

                if 
    pattern_type == "Double Zig-Zag (WXY)"
                    
    pX math.max(0.01pC - (dir_mult * (len_A 0.5)))
                    
    tX tC t_step
                    drawPred
    (tCpCtXpX"(X)""0.5"color_corr2false)
                    if 
    show_table
                        fillRow
    (tbl_row"Wave X""0.5"pXcolor_corr)
                        
    tbl_row += 1
                    
                    pY 
    math.max(0.01pX + (dir_mult len_A)) 
                    
    tY tX + (t_step 2
                    
    drawPred(tXpXtYpY"(Y)""1.0 of W"color_corr2false)
                    if 
    show_table
                        fillRow
    (tbl_row"Wave Y""1.0"pYcolor_corr)
                        
    tbl_row += 1

        
    // ---------------- MACRO CALC ----------------
        
    if show_macro and array.size(pPricesM) > 0
            last_M_val 
    = array.get(pPricesM0)
            
    last_M_bar = array.get(pBarsM0)
            
    last_M_dir = array.get(pDirsM0)
            
            
    int M_elapsed bar_index last_M_bar
            float live_M_val 
    0.0
            int   live_M_bar 
    0
            
            
    if last_M_dir 
                lowest_val 
    1000000.0
                lowest_idx 
    0
                
    for 0 to M_elapsed
                    
    if low[i] < lowest_val
                        lowest_val 
    := low[i]
                        
    lowest_idx := bar_index[i]
                
    live_M_val := lowest_val
                live_M_bar 
    := lowest_idx
            
    else 
                
    highest_val 0.0
                highest_idx 
    0
                
    for 0 to M_elapsed
                    
    if high[i] > highest_val
                        highest_val 
    := high[i]
                        
    highest_idx := bar_index[i]
                
    live_M_val := highest_val
                live_M_bar 
    := highest_idx

            float volM 
    math.abs(last_M_val live_M_val)
            if 
    volM == 
                volM 
    := syminfo.mintick 100

            int t_step_M 
    use_dynamic_time int(get_wave_duration(pBarsMfixed_spacing) * 0.5) : fixed_spacing
            
            
    if show_table
                table
    .cell(infoTable0tbl_row"MACRO (L-T)"bgcolor=color.graytext_color=color.white)
                
    table.merge_cells(infoTable0tbl_row3tbl_row)
                
    tbl_row += 1

            
    if not last_M_dir 
                p1 
    math.max(0.01live_M_val + (volM 0.382))
                
    t1 live_M_bar t_step_M
                drawPred
    (live_M_barlive_M_valt1p1"M-I""Start"color_macro4true)
                
                
    p2 math.max(0.01p1 - ((p1 live_M_val) * 0.618))
                
    t2 t1 t_step_M
                drawPred
    (t1p1t2p2"M-II""0.618"color_macro4true)
                
                
    p3 math.max(0.01p2 + ((p1 live_M_val) * 1.618))
                
    t3 t2 t_step_M
                drawPred
    (t2p2t3p3"M-III""1.618"color_macro4true)

                
    p4 math.max(0.01p3 - ((p3 p2) * 0.382))
                
    t4 t3 t_step_M
                drawPred
    (t3p3t4p4"M-IV""0.382"color_macro4true)

                
    p5 math.max(0.01p4 + (p1 live_M_val))
                
    t5 t4 t_step_M
                drawPred
    (t4p4t5p5"M-V""1.0"color_macro4true)
                
            else 
                
    pA math.max(0.01live_M_val - (volM 0.382))
                
    tA live_M_bar t_step_M
                drawPred
    (live_M_barlive_M_valtApA"M-A""Start"color_macro4true)

                
    pB math.max(0.01pA + ((live_M_val pA) * 0.618))
                
    tB tA t_step_M
                drawPred
    (tApAtBpB"M-B""0.618"color_macro4true)

                
    pC math.max(0.01pB - ((live_M_val pA) * 1.272))
                
    tC tB t_step_M
                drawPred
    (tBpBtCpC"M-C""1.272"color_macro4true
    16.07.2024 - 10.12.2024

  8. mtk sarlar üçlü...
    PHP Code:
    //@version=6
    indicator("MTK SAR"overlay=truemax_bars_back=500)


    float sur_h ta.sar(0.020.020.2)    
    float sur_d  ta.sar(0.0150.0150.15
    float sur_y   ta.sar(0.010.010.1)    

    plot(sur_h"1"color=color.yellow,  style=plot.style_circleslinewidth=1)
    plot(sur_d"2"color=color.bluestyle=plot.style_circleslinewidth=1)
    plot(sur_y"3"color=color.redstyle=plot.style_circleslinewidth=1)

    float sur_h1 ta.sar(0.020.0020.2)    
    float sur_d1  ta.sar(0.0150.00150.15
    float sur_y1   ta.sar(0.010.0010.1)  

    plot(sur_h1"11"color=color.rgb(2552355930), style=plot.style_circleslinewidth=1)
    plot(sur_d1"22"color=color.rgb(3314924350), style=plot.style_circleslinewidth=1)
    plot(sur_y1"33"color=color.rgb(255828250), style=plot.style_circleslinewidth=1)

    float sur_h11 ta.sar(0.00020.00020.2)    
    float sur_d11  ta.sar(0.0150.000150.15
    float sur_y11   ta.sar(0.010.00010.1)  

    plot(sur_h11"yörük"color=color.rgb(2552355950), style=plot.style_circleslinewidth=1)
    plot(sur_d11"222"color=color.rgb(3314924370), style=plot.style_circleslinewidth=1)
    plot(sur_y11"333"color=color.rgb(255828270), style=plot.style_circleslinewidth=1
    16.07.2024 - 10.12.2024

Sayfa 6/11 İlkİlk ... 45678 ... SonSon

Yer İmleri

Yer İmleri

Gönderi Kuralları

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