Hisse Fiyat Fark% Hacim (TL) Düşük / Yüksek
0,45 32.74% 659,01 Mn 0,34 / 2,00
852,50 10% 13,90 Mn 815,00 / 852,50
29,70 10% 81,86 Mn 27,24 / 29,70
38,72 10% 34,78 Mn 36,80 / 38,72
45,98 10% 2,86 Mr 42,00 / 45,98
Hisse Fiyat Fark% Hacim (TL) Düşük / Yüksek
5,76 -10% 1,01 Mr 5,76 / 6,72
99,10 -9.99% 2,74 Mr 99,10 / 111,40
34,66 -9.97% 5,42 Mr 34,66 / 41,20
63,70 -9.96% 112,89 Mn 63,70 / 72,15
11,11 -9.75% 148,66 Mn 11,11 / 12,46
Hisse Fiyat Fark% Hacim (TL) Düşük / Yüksek
318,75 4.25% 26,57 Mr 308,00 / 319,25
87,95 -3.3% 23,82 Mr 86,85 / 91,00
17,46 3.68% 15,31 Mr 16,75 / 17,53
296,75 -0.92% 15,02 Mr 291,75 / 306,50
40,96 1.59% 13,23 Mr 39,38 / 41,08
Hisse Fiyat Fark% Hacim (TL) Düşük / Yüksek
20,22 2.95% 1,70 Mr 19,86 / 20,34
87,95 -3.3% 23,82 Mr 86,85 / 91,00
296,75 -0.92% 15,02 Mr 291,75 / 306,50
155,00 0.26% 3,34 Mr 154,00 / 158,00
683,50 2.7% 8,28 Mr 670,00 / 698,50
Hisse Fiyat Fark% Hacim (TL) Düşük / Yüksek
20,22 2.95% 1,70 Mr 19,86 / 20,34
87,95 -3.3% 23,82 Mr 86,85 / 91,00
109,20 4.1% 1,30 Mr 105,10 / 110,20
118,20 2.78% 846,99 Mn 115,20 / 118,80
296,75 -0.92% 15,02 Mr 291,75 / 306,50
Hisse Fiyat Fark% Hacim (TL) Düşük / Yüksek
20,22 2.95% 1,70 Mr 19,86 / 20,34
35,10 2.51% 261,50 Mn 34,60 / 35,38
87,95 -3.3% 23,82 Mr 86,85 / 91,00
11,03 1.29% 265,48 Mn 10,89 / 11,15
73,80 1.17% 602,35 Mn 73,40 / 74,80
Sayfa 370/371 İlkİlk ... 270320360368369370371 SonSon
Arama sonucu : 2963 madde; 2,953 - 2,960 arası.

Konu: Tradingview

  1. ai-olasılık barları-gann hızı ve ganlı polinom..ile filtreleme... çalışması...
    https://www.tradingview.com/x/cio2O3LP/
    https://www.tradingview.com/x/83v48xHh/
    16.07.2024 - 10.12.2024

  2. ai-olasılık barları-gann hız- bar sayım fitresi
    https://www.tradingview.com/x/QXxuPIkA/
    https://www.tradingview.com/x/z6CUKRzE/
    16.07.2024 - 10.12.2024

  3. ai-olasılık barları....gann hızına bağlı...polinomlu....trend çizme çalışması...
    https://www.tradingview.com/x/XQe0RSYJ/
    https://www.tradingview.com/x/gdKT7aJa/
    16.07.2024 - 10.12.2024


  4. ai-sadece olasılık barları-gann hızı ve polinom trend-filtreli.....belirli zaman (5dakikalık)...
    not: diğer zamanlarda kanal ve gann otomatik gizlenir....barlar-filtre ve polinom kalır...
    olasılığı bar değerlerini....imzaya yazmaz...
    https://www.tradingview.com/x/b3P6ntSQ/
    https://www.tradingview.com/x/m1hKOADA/
    https://www.tradingview.com/x/ctgxX8pq/
    https://www.tradingview.com/x/PFSLvuUZ/
    https://www.tradingview.com/x/IjGH9kN5/
    16.07.2024 - 10.12.2024

  5.  Alıntı Originally Posted by @yörük@ Yazıyı Oku
    sadelenecek kod örneği....
    PHP Code:
    //@version=6
    indicator(".."overlay truebehind_chart falsemax_lines_count=500max_labels_count=500max_polylines_count=100max_boxes_count=100,  max_bars_back 500)

    /////////////next bar hesaplamadır//////
    src777 close

    o777 
    open
    h777 
    high
    l777 
    low
    c777 
    close

    _indicator1 
    = (o777 o777[1]) / o777[1]
    _indicator2 = (h777 h777[1]) / h777[1]
    _indicator3 = (l777 l777[1]) / l777[1]
    _indicator4 = (c777 c777[1]) / c777[1]
    _indicator5 = (src777 src777[1]) / src777[1]

    // Inputs on Tangent Function : 

    tangentdiff(_src777) =>
        
    nz((_src777 _src777[1]) / _src777[1])


    // Deep Learning Activation Function (Tanh) : 

    ActivationFunctionTanh(v) =>
        (
    math.exp(-v)) / (math.exp(-v))


    // DEEP LEARNING 

    // INPUTS : 

    input_1 _indicator1
    input_2 
    _indicator2
    input_3 
    _indicator3
    input_4 
    _indicator4


    // LAYERS : 

    // Input Layers 

    n_0 ActivationFunctionTanh(input_1 0)
    n_1 ActivationFunctionTanh(input_2 0)
    n_2 ActivationFunctionTanh(input_3 0)
    n_3 ActivationFunctionTanh(input_4 0)


    // 


    fun_open() =>

        
    float _output na

        n_4 
    ActivationFunctionTanh(0.030535 n_0 5.113012 n_1 + -26.085717 n_2 + -5.320280 n_3 7.354752)

        
    n_5 ActivationFunctionTanh(4.167948 n_0 7.225875 n_1 + -0.871215 n_2 + -8.894535 n_3 + -7.064751)

        
    n_6 ActivationFunctionTanh(-0.806293 n_0 + -0.304470 n_1 + -3.909741 n_2 + -5.009985 n_3 5.127558)

        
    n_7 ActivationFunctionTanh(-29.736063 n_0 28.668433 n_1 0.138417 n_2 + -57.588543 n_3 2.824914)

        
    n_8 ActivationFunctionTanh(-0.429393 n_0 0.482744 n_1 + -0.789797 n_2 + -2.987460 n_3 + -4.310747)

        
    n_9 ActivationFunctionTanh(1.758357 n_0 + -0.618090 n_1 2.449362 n_2 + -1.583126 n_3 1.165846)

        
    _output := ActivationFunctionTanh(-0.653030 n_4 + -4.646999 n_5 + -1.678999 n_6 + -17.077652 n_7 0.875426 n_8 + -6.672465 n_9 6.940722)
        
    _output


    fun_high
    () =>

        
    float _output na

        n_4 
    ActivationFunctionTanh(10.186543 n_0 + -30.964897 n_1 21.672385 n_2 + -40.895894 n_3 7.957443)

        
    n_5 ActivationFunctionTanh(-15.252332 n_0 14.845403 n_1 10.621491 n_2 + -23.817824 n_3 2.947530)

        
    n_6 ActivationFunctionTanh(-15.179010 n_0 + -30.011878 n_1 35.650459 n_2 + -61.480486 n_3 3.898503)

        
    n_7 ActivationFunctionTanh(35.656454 n_0 + -11.134354 n_1 + -28.071578 n_2 2.923959 n_3 + -1.805703)

        
    n_8 ActivationFunctionTanh(3.462374 n_0 + -13.644019 n_1 + -30.226394 n_2 + -1.083953 n_3 23.032872)

        
    n_9 ActivationFunctionTanh(-47.265829 n_0 19.021801 n_1 10.565216 n_2 + -27.520789 n_3 6.947500)

        
    _output := ActivationFunctionTanh(-0.696537 n_4 + -1.349433 n_5 27.262956 n_6 + -1.042353 n_7 + -0.540196 n_8 + -10.735585 n_9 1.303216)
        
    _output


    fun_low
    () =>

        
    float _output na

        n_4 
    ActivationFunctionTanh(4.363108 n_0 + -18.301472 n_1 + -15.376884 n_2 21.208559 n_3 + -0.458119)

        
    n_5 ActivationFunctionTanh(-2.651826 n_0 5.205410 n_1 + -5.920993 n_2 + -4.847458 n_3 8.315580)

        
    n_6 ActivationFunctionTanh(13.885322 n_0 + -5.517922 n_1 + -15.241118 n_2 + -8.673229 n_3 + -4.954015)

        
    n_7 ActivationFunctionTanh(10.490466 n_0 + -25.201536 n_1 10.262121 n_2 + -1.116144 n_3 + -5.254103)

        
    n_8 ActivationFunctionTanh(-14.687736 n_0 9.030202 n_1 + -17.332462 n_2 8.068070 n_3 0.755134)

        
    n_9 ActivationFunctionTanh(0.895168 n_0 + -1.737740 n_1 4.899143 n_2 + -7.718495 n_3 5.493688)

        
    _output := ActivationFunctionTanh(4.132907 n_4 + -17.501595 n_5 4.617443 n_6 + -28.476857 n_7 + -5.888234 n_8 + -24.434500 n_9 41.318760)
        
    _output


    fun_close
    () =>

        
    float _output na

        n_4 
    ActivationFunctionTanh(22.427157 n_0 + -26.691701 n_1 4.937141 n_2 9.034960 n_3 + -10.692978)

        
    n_5 ActivationFunctionTanh(-38.288087 n_0 10.050028 n_1 + -44.706345 n_2 + -17.816354 n_3 30.566226)

        
    n_6 ActivationFunctionTanh(-33.995444 n_0 14.501766 n_1 + -43.286508 n_2 + -13.387415 n_3 24.708075)

        
    n_7 ActivationFunctionTanh(-14.392948 n_0 28.483095 n_1 + -22.979338 n_2 + -7.658263 n_3 + -5.650564)

        
    n_8 ActivationFunctionTanh(28.837901 n_0 + -26.354494 n_1 0.520683 n_2 25.004913 n_3 + -17.883236)

        
    n_9 ActivationFunctionTanh(-4.811354 n_0 + -4.036420 n_1 + -8.332775 n_2 + -1.157164 n_3 0.466793)

        
    _output := ActivationFunctionTanh(-22.053311 n_4 3.652552 n_5 + -4.390465 n_6 2.103060 n_7 20.027285 n_8 11.510129 n_9 + -0.415015)
        
    _output


    // Current Open Values

    _chg_open tangentdiff(o777) * 100

    _seed_open 
    = (fun_open() - _chg_open) / 100

    f_open 
    o777 * (_seed_open)

    // Current High Values

    _chg_high tangentdiff(h777) * 100

    _seed_high 
    = (fun_high() - _chg_high) / 100

    f_high 
    h777 * (_seed_high)

    // Current Low Values

    _chg_low tangentdiff(l777) * 100

    _seed_low 
    = (fun_low() - _chg_low) / 100

    f_low 
    l777 * (_seed_low)

    // Current Close Values 

    _chg_c tangentdiff(c777) * 100

    _seed_c 
    = (fun_close() - _chg_c) / 100

    f_close 
    c777 * (_seed_c)


    plotcandle(f_closef_highf_lowf_opencolor f_close f_close[100] ? color.rgb(24324423795) : color.rgb(2484495), wickcolor color.rgb(444), title "N-BAR")


    //@version=6
    // ============================================================================
    // CONFIRMATION SETTINGS
    // ============================================================================
    confirmationMode input.string("Confirmed Only""Signal Mode"
                                    
    options=["Confirmed Only""Confirmed + Preview""Preview Only"],
                                    
    tooltip="Confirmed Only = No repainting | Preview = Shows potential signals",
                                    
    group="SIGNAL CONTROLS")

    confirmationBars input.int(0"Extra Confirmation Bars"
                                 
    minval=0maxval=5,
                                 
    tooltip="Additional bars to wait before confirming signal (0 = immediate)",
                                 
    group="SIGNAL CONTROLS")

    // ============================================================================
    // SENSITIVITY PRESET SYSTEM - UNIVERSAL (ALL INSTRUMENTS & TIMEFRAMES)
    // ============================================================================
    input_sensitivity input.string("Medium""Sensitivity Preset"
                                     
    options=["Very High""High""Medium""Low""Very Low""Custom"],
                                     
    tooltip="Very High = Most signals | Very Low = Fewest, highest quality signals",
                                     
    group="MAIN CONTROLS")

    // ATR Multiplier: PRIMARY sensitivity control (adapts to any instrument/timeframe)
    float atrMultiplier = switch input_sensitivity
        
    "Very High" => 0.8
        
    "High" => 1.2
        
    "Medium" => 2.0
        
    "Low" => 2.8
        
    "Very Low" => 3.5
        
    => na

    // Percentage Threshold: MINIMAL backup (prevents issues when ATR is too small)
    float percentThreshold = switch input_sensitivity
        
    "Very High" => 0.03
        
    "High" => 0.05
        
    "Medium" => 0.08
        
    "Low" => 0.12
        
    "Very Low" => 0.15
        
    => na

    // ============================================================================
    // MANUAL SETTINGS FOR CUSTOM MODE
    // ============================================================================
    bool isCustom input_sensitivity == "Custom"

    input_method input.string("average""Calculation Method"
                                
    options=["average""high_low"],
                                
    tooltip="average = smoother | high_low = more responsive",
                                
    group="ADVANCED SETTINGS")

    input_percentamount isCustom input.float(0.08"Percentage Reversal (%)"
                                                 
    minval=0.01maxval=1.0step=0.01,
                                                 
    tooltip="Price must reverse by this % - acts as minimum threshold",
                                                 
    group="ADVANCED SETTINGS") : 0.08

    input_revAmount 
    isCustom input.float(1.0"Absolute Reversal"
                                            
    minval=0.01maxval=50.0step=0.1,
                                            
    tooltip="Minimum absolute price reversal amount (safety floor)",
                                            
    group="ADVANCED SETTINGS") : 1.0

    input_atrreversal 
    isCustom input.float(2.0"ATR Multiplier"
                                              
    minval=0.1maxval=10.0step=0.1,
                                              
    tooltip="Primary sensitivity control - reversal = ATR x this multiplier",
                                              
    group="ADVANCED SETTINGS") : 2.0

    input_atrlength 
    input.int(14"ATR Length"minval=1maxval=50
                               
    tooltip="Period for ATR calculation (14 is standard)",
                               
    group="ADVANCED SETTINGS")

    input_averagelength input.int(5"Average Length"minval=1maxval=50,
                                   
    tooltip="Smoothing period for high/low calculation when using 'average' method",
                                   
    group="ADVANCED SETTINGS")
    // ============================================================================
    // ZONE SETTINGS
    // ============================================================================
    input_showSupplyDemand input.string("Pivot""Supply/Demand Display"
                                         
    options=["Pivot""Arrow""None"],
                                         
    tooltip="Visual style for supply/demand zones",
                                         
    group="ZONES")

    input_numbersuppdemandtoshow input.int(3"Number of Zones"
                                            
    minval=0maxval=20,
                                            
    tooltip="Maximum number of zones to display",
                                            
    group="ZONES")

    input_showsupplydemandcloud input.bool(false"Show Supply/Demand Zones",
                                            
    tooltip="Display rectangular zones at pivot points",
                                            
    group="ZONES")

    input_zoneExtension input.int(20"Zone Box Extension (bars)",
                                   
    minval=5maxval=100,
                                   
    tooltip="How many bars forward to extend zones",
                                   
    group="ZONES")

    zoneThickness input.float(0.02"Zone Thickness (%)"
                               
    minval=0.01maxval=0.2step=0.01,
                               
    tooltip="Thickness of rectangular zone as % of price",
                               
    group="ZONES")

    // ============================================================================
    // LABEL SETTINGS
    // ============================================================================
    input_lineExtension input.int(5"Stop Line Extension"
                                   
    minval=1maxval=50,
                                   
    tooltip="Bars to extend horizontal reversal lines",
                                   
    group="LABELS")

    input_maxLines input.int(10"Maximum Lines to Display",
                              
    minval=3maxval=50,
                              
    tooltip="Maximum number of reversal lines on chart",
                              
    group="LABELS")

    labelSizeOption input.string("Normal""Label Size",
                                  
    options=["Small""Normal""Large"],
                                  
    group="LABELS")

    labelSize = switch labelSizeOption
        
    "Small" => size.small
        
    "Normal" => size.normal
        
    "Large" => size.large
        
    => size.normal

    // ============================================================================
    // INFO TABLE SETTINGS
    // ============================================================================
    showInfoTable input.bool(true"Show Info Table",
                              
    tooltip="Display indicator settings and status",
                              
    group="INFO TABLE")

    tablePosition input.string("Top Right""Table Position",
                                
    options=["Top Right""Top Left""Top Center""Bottom Right""Bottom Left""Bottom Center"],
                                
    group="INFO TABLE")

    tableSizeOption input.string("Normal""Table Size",
                                  
    options=["Tiny""Small""Normal""Large""Huge"],
                                  
    group="INFO TABLE")

    // ============================================================================
    // CALCULATE FINAL REVERSAL THRESHOLD - FIXED CALCULATION
    // ============================================================================
    float finalATRMult isCustom input_atrreversal atrMultiplier
    float finalPctThreshold 
    isCustom input_percentamount percentThreshold

    atrValue 
    ta.atr(input_atrlength)

    // FIXED: Removed the /100 division - percentages now work correctly
    reversalAmount math.max(close finalPctThreshold 100
                             
    math.max(input_revAmountfinalATRMult atrValue))

    // ============================================================================
    // MOVING AVERAGE SIGNALS
    // ============================================================================
    superfast_length 9
    fast_length 
    14
    slow_length 
    21

    mov_avg9 
    ta.ema(closesuperfast_length)
    mov_avg14 ta.ema(closefast_length)
    mov_avg21 ta.ema(closeslow_length)

    buy mov_avg9 mov_avg14 and mov_avg14 mov_avg21 and low mov_avg9
    stopbuy 
    mov_avg9 <= mov_avg14
    buynow 
    not buy[1] and buy

    var int buysignal 0
    buysignal 
    := buynow and not stopbuy buysignal == and stopbuy buysignal

    sell 
    mov_avg9 mov_avg14 and mov_avg14 mov_avg21 and high mov_avg9
    stopsell 
    mov_avg9 >= mov_avg14
    sellnow 
    not sell[1] and sell

    var int sellsignal 0
    sellsignal 
    := sellnow and not stopsell sellsignal == and stopsell sellsignal

    // ============================================================================
    // COLORS
    // ============================================================================
    GREEN #00FF00
    RED #FF0000
    PURPLE #ab47bc

    // ============================================================================
    // ZIGZAG CALCULATION
    // ============================================================================
    priceh input_method == "high_low" high ta.ema(highinput_averagelength)
    pricel input_method == "high_low" low ta.ema(lowinput_averagelength)

    pricehConfirmed priceh[confirmationBars]
    pricelConfirmed pricel[confirmationBars]
    actualHighConfirmed high[confirmationBars]
    actualLowConfirmed low[confirmationBars]

    var 
    float zhigh na
    var float zlow na
    var float zhighActual na
    var float zlowActual na
    var int zhighbar 0
    var int zlowbar 0
    var int direction 0

    if na(zhigh) or na(zlow)
        
    zhigh := pricehConfirmed
        zlow 
    := pricelConfirmed
        zhighActual 
    := actualHighConfirmed
        zlowActual 
    := actualLowConfirmed
        zhighbar 
    := bar_index confirmationBars
        zlowbar 
    := bar_index confirmationBars
        direction 
    := 1

    var float lastConfirmedPivotPrice na
    var float lastConfirmedPivotActual na
    var int lastConfirmedPivotBar 0
    var bool lastConfirmedPivotIsHigh false
    var bool confirmedPivotDetected false

    confirmedPivotDetected 
    := false

    if direction == 1
        
    if pricehConfirmed zhigh
            zhigh 
    := pricehConfirmed
            zhighActual 
    := actualHighConfirmed
            zhighbar 
    := bar_index confirmationBars
        
        
    if zhigh pricelConfirmed >= reversalAmount
            lastConfirmedPivotPrice 
    := zhigh
            lastConfirmedPivotActual 
    := zhighActual
            lastConfirmedPivotBar 
    := zhighbar
            lastConfirmedPivotIsHigh 
    := true
            confirmedPivotDetected 
    := true
            direction 
    := -1
            zlow 
    := pricelConfirmed
            zlowActual 
    := actualLowConfirmed
            zlowbar 
    := bar_index confirmationBars

    else if direction == -1
        
    if pricelConfirmed zlow
            zlow 
    := pricelConfirmed
            zlowActual 
    := actualLowConfirmed
            zlowbar 
    := bar_index confirmationBars
        
        
    if pricehConfirmed zlow >= reversalAmount
            lastConfirmedPivotPrice 
    := zlow
            lastConfirmedPivotActual 
    := zlowActual
            lastConfirmedPivotBar 
    := zlowbar
            lastConfirmedPivotIsHigh 
    := false
            confirmedPivotDetected 
    := true
            direction 
    := 1
            zhigh 
    := pricehConfirmed
            zhighActual 
    := actualHighConfirmed
            zhighbar 
    := bar_index confirmationBars

    // ============================================================================
    // PREVIEW DETECTION
    // ============================================================================
    var float previewPivotPrice na
    var int previewPivotBar 0
    var bool previewIsHigh false
    var bool showPreview false

    showPreview 
    := false

    if confirmationMode != "Confirmed Only"
        
    var float zhigh_preview na
        
    var float zlow_preview na
        
    var int direction_preview 0
        
        
    if na(zhigh_preview)
            
    zhigh_preview := priceh
            zlow_preview 
    := pricel
            direction_preview 
    := 1
        
        
    if direction_preview == 1
            
    if priceh zhigh_preview
                zhigh_preview 
    := priceh
            
            
    if zhigh_preview pricel >= reversalAmount
                previewPivotPrice 
    := zhigh_preview
                previewPivotBar 
    := bar_index
                previewIsHigh 
    := true
                showPreview 
    := true
                direction_preview 
    := -1
                zlow_preview 
    := pricel
        
        
    else if direction_preview == -1
            
    if pricel zlow_preview
                zlow_preview 
    := pricel
            
            
    if priceh zlow_preview >= reversalAmount
                previewPivotPrice 
    := zlow_preview
                previewPivotBar 
    := bar_index
                previewIsHigh 
    := false
                showPreview 
    := true
                direction_preview 
    := 1
                zhigh_preview 
    := priceh

    // ============================================================================
    // SIGNAL DETECTION
    // ============================================================================
    var float EIL na
    var float EIH na
    var float EILActual na
    var float EIHActual na
    var int EILBar 0
    var int EIHBar 0
    var int dir789 0
    var int signal 0

    if confirmedPivotDetected
        
    if lastConfirmedPivotIsHigh
            EIH 
    := lastConfirmedPivotPrice
            EIHActual 
    := lastConfirmedPivotActual
            EIHBar 
    := lastConfirmedPivotBar
            dir789 
    := -1
        
    else
            
    EIL := lastConfirmedPivotPrice
            EILActual 
    := lastConfirmedPivotActual
            EILBar 
    := lastConfirmedPivotBar
            dir789 
    := 1

    if dir789 and pricelConfirmed EIL
        signal 
    := signal <= signal
    else if dir789 and pricehConfirmed EIH
        signal 
    := signal >= ? -signal

    U1 
    signal and signal[1] <= 0
    D1 
    signal and signal[1] >= 0

    // ============================================================================
    // HELPER FUNCTION
    // ============================================================================
    formatPrice(float price) =>
        
    priceStr str.tostring(priceformat.mintick)
        
    parts str.split(priceStr".")
        
    intPart = array.get(parts0)
        
    decPart = array.size(parts) > "." + array.get(parts1) : ""
        
        
    intLen str.length(intPart)
        
    result ""
        
    for 0 to intLen 1
            
    if and (intLen i) % == 0
                result 
    := result ","
            
    result := result str.substring(intParti1)
        
        
    result decPart

    // ============================================================================
    // REVERSAL LABELS
    // ============================================================================
    var array<lineallLines = array.new<line>()
    var array<
    intlineStartBars = array.new<int>()
    var array<
    intlineEndBars = array.new<int>()

    if 
    U1 and confirmationMode != "Preview Only"
        
    pivotBar EILBar
        exactLow 
    EILActual
        
        lbl 
    label.new(pivotBarexactLow"\n" formatPrice(EIL), 
                        
    style=label.style_label_upper_right
                        
    color=color.new(GREEN100),
                        
    textcolor=color.white
                        
    size=labelSize,
                        
    textalign=text.align_left,
                        
    xloc=xloc.bar_index)
        
        
    endBar pivotBar input_lineExtension
        horizLine 
    line.new(pivotBarexactLowendBarexactLow
                            
    color=color.new(GREEN0),
                            
    width=5,
                            
    style=line.style_solid,
                            
    extend=extend.none)
        array.
    push(allLineshorizLine)
        array.
    push(lineStartBarspivotBar)
        array.
    push(lineEndBarsendBar)

    if 
    D1 and confirmationMode != "Preview Only"
        
    pivotBar EIHBar
        exactHigh 
    EIHActual
        
        lbl 
    label.new(pivotBarexactHigh"\n" formatPrice(EIH), 
                        
    style=label.style_label_lower_right
                        
    color=color.new(RED100),
                        
    textcolor=color.white
                        
    size=labelSize,
                        
    textalign=text.align_left,
                        
    xloc=xloc.bar_index)
        
        
    endBar pivotBar input_lineExtension
        horizLine 
    line.new(pivotBarexactHighendBarexactHigh
                            
    color=color.new(RED0),
                            
    width=5,
                            
    style=line.style_solid,
                            
    extend=extend.none)
        array.
    push(allLineshorizLine)
        array.
    push(lineStartBarspivotBar)
        array.
    push(lineEndBarsendBar)

    // ============================================================================
    // LINE MANAGEMENT
    // ============================================================================
    while array.size(allLines) > input_maxLines
        oldLine 
    = array.shift(allLines)
        
    line.delete(oldLine)
        array.
    shift(lineStartBars)
        array.
    shift(lineEndBars)

    // ============================================================================
    // PREVIEW LABELS
    // ============================================================================
    if showPreview and confirmationMode != "Confirmed Only" and barstate.islast
        
    if previewIsHigh
            label
    .new(previewPivotBarhigh"OLASILIK\n" formatPrice(previewPivotPrice), 
                      
    style=label.style_label_lower_right
                      
    color=color.new(#FF6B6B, 70),
                      
    textcolor=color.new(color.white40), 
                      
    size=labelSize,
                      
    textalign=text.align_left)
        else
            
    label.new(previewPivotBarlow"OLASILIK\n" formatPrice(previewPivotPrice), 
                      
    style=label.style_label_upper_right
                      
    color=color.new(#6BCF7F, 70),
                      
    textcolor=color.new(color.white40), 
                      
    size=labelSize,
                      
    textalign=text.align_left)

    // ============================================================================
    // SUPPLY/DEMAND ZONES - THIN HORIZONTAL RECTANGLES
    // ============================================================================
    var array<boxallBoxes = array.new<box>()

    if 
    confirmedPivotDetected and input_showsupplydemandcloud
        
    // Pivot LOW = Demand Zone (GREEN), Pivot HIGH = Supply Zone (RED)
        
    bool isDemandZone lastConfirmedPivotIsHigh == false
        
        color zoneColor 
    isDemandZone color.new(GREEN85) : color.new(RED85)
        
    color zoneBorder isDemandZone color.new(GREEN40) : color.new(RED40)
        
        
    // Use actual pivot price for zone placement
        
    float pivotPrice lastConfirmedPivotActual
        
        
    // Create thin rectangle centered on pivot
        
    float halfThickness = (pivotPrice zoneThickness 100) / 2
        float zoneTop 
    pivotPrice halfThickness
        float zoneBottom 
    pivotPrice halfThickness
        
        int zoneStart 
    lastConfirmedPivotBar
        int zoneEnd 
    zoneStart input_zoneExtension
        
        zoneBox 
    box.new(zoneStartzoneTopzoneEndzoneBottom
                
    border_color=zoneBorder
                
    bgcolor=zoneColor
                
    border_width=1,
                
    extend=extend.none,
                
    text isDemandZone "DEMAND" "SUPPLY",
                
    text_size size.tiny,
                
    text_color isDemandZone color.new(GREEN20) : color.new(RED20),
                
    text_halign text.align_center,
                
    text_valign text.align_center)
        
        array.
    push(allBoxeszoneBox)

    // Manage box count
    while array.size(allBoxes) > input_numbersuppdemandtoshow and input_numbersuppdemandtoshow 0
        oldBox 
    = array.shift(allBoxes)
        
    box.delete(oldBox)

    // ============================================================================
    // INFORMATION TABLE
    // ============================================================================
    tablePos = switch tablePosition
        
    "Top Right" => position.top_right
        
    "Top Left" => position.top_left
        
    "Top Center" => position.top_center
        
    "Bottom Right" => position.bottom_right
        
    "Bottom Left" => position.bottom_left
        
    "Bottom Center" => position.bottom_center
        
    => position.top_right

    headerSize 
    = switch tableSizeOption
        
    "Tiny" => size.tiny
        
    "Small" => size.small
        
    "Normal" => size.normal
        
    "Large" => size.large
        
    "Huge" => size.huge
        
    => size.normal

    cellSize 
    = switch tableSizeOption
        
    "Tiny" => size.tiny
        
    "Small" => size.small
        
    "Normal" => size.small
        
    "Large" => size.normal
        
    "Huge" => size.large
        
    => size.small

    //var table infoTable = table.new(tablePos, 2, 8, bgcolor=color.new(#1E1E1E, 5), 
                                    //frame_color=color.new(GREEN, 40), frame_width=2, 
                                    //border_width=1, border_color=color.new(#444444, 60))

    //if barstate.islast and showInfoTable
        //table.cell(infoTable, 0, 0, "YÖRÜK", text_color=color.new(GREEN, 0), 
                  //text_size=headerSize, bgcolor=color.new(#0A0A0A, 0))
        //table.cell(infoTable, 1, 0, "2026", text_color=color.new(GREEN, 0), 
                  //text_size=headerSize, bgcolor=color.new(#0A0A0A, 0))
        
        //table.cell(infoTable, 0, 1, "Mode:", text_color=color.white, text_size=cellSize, 
                  //bgcolor=color.new(#1E1E1E, 0))
        
        //color modeColor = color.new(GREEN, 0)
        //if confirmationMode == "Confirmed + Preview"
            //modeColor := color.new(#FFA500, 0)
        //if confirmationMode == "Preview Only"
            //modeColor := color.new(#FF6B6B, 0)
        
        //table.cell(infoTable, 0, 7, "SİSTEM:", text_color=color.white, 
                  //text_size=cellSize, bgcolor=color.new(#1E1E1E, 0))
        //trendText = buysignal == 1 ? "LONG" : sellsignal == 1 ? "SHORT" : "NÖTR"
        //trendTextColor = buysignal == 1 ? color.green : sellsignal == 1 ? color.red : color.purple
        //table.cell(infoTable, 1, 7, trendText, text_color=trendTextColor, 
                  //text_size=cellSize, bgcolor=color.new(#1E1E1E, 0))

    // ===========================sonnn=================================================

    //@version=5


    _indicator18 = (o777 o777[1]) / o777[1]
    _indicator28 = (h777 h777[1]) / h777[1]

    n_08 ActivationFunctionTanh(_indicator18), n_18 ActivationFunctionTanh(_indicator28)

    f_open8  o777 * (- (ActivationFunctionTanh(0.03 n_08 5.11 n_18) - tangentdiff(o777) * 1000) / 1000)
    f_high8  h777 * (- (ActivationFunctionTanh(10.1 n_08 30.9 n_18) - tangentdiff(h777) * 1000) / 1000)
    f_low8   l777 * (- (ActivationFunctionTanh(4.36 n_08 18.3 n_18) - tangentdiff(l777) * 1000) / 1000)
    f_close8 c777 * (- (ActivationFunctionTanh(22.4 n_08 26.6 n_18) - tangentdiff(c777) * 1000) / 1000)

    // --- 3 Bölüntülü Bar Çizimi ---
    isBull8 f_close8 f_open8
    mainColor8 
    isBull8 color.green color.red
    plotcandle
    (f_open8f_open8 + (f_close8 f_open8) * 0.33f_open8f_open8 + (f_close8 f_open8) * 0.33"X"color color.new(color.gray75))
    plotcandle(f_open8 + (f_close8 f_open8) * 0.33f_high8f_low8f_open8 + (f_close8 f_open8) * 0.66"Y"color color.new(mainColor840))
    plotcandle(f_open8 + (f_close8 f_open8) * 0.66f_close8f_open8 + (f_close8 f_open8) * 0.66f_close8"Z"color color.new(color.gray75))
    ////////////////////////////15 DAKİKALIK GANN HESAPLAMA/////////
    // --- 2. Gann Modülü (Hatanın Giderildiği Bölüm) ---
    tf_gann input.timeframe('15'title='Gann Zaman Dilimi')
    p_range input.float(0.1title='Gann Fiyat Aralığı')
    t_range input.int(101title='Gann Bar Aralığı')

    f_zigzag(_h_l) =>
        var 
    int _tr 0
        _up 
    _h _h[1]
        
    _dn _l _l[1]
        
    _tr := (_tr and _dn) ? -: (_tr and _up) ? : (_tr == ? (_up : -1) : _tr)
        
    ta.change(_tr) > _l[1] : ta.change(_tr) < _h[1] : na

    // v5'te fixnan fonksiyonu ta. kütüphanesine ait değildir, doğrudan çağrılır
    zigzag_src request.security(syminfo.tickeridtf_gannfixnan(f_zigzag(highlow)))

    f_bull_gann_line(_pr_tr_src) =>
        
    _decay _pr _tr
        
    var float _g_line na
        _g_line 
    := _g_line _decay
        
    if ta.change(_src) > 0
            _g_line 
    := _src
        _g_line

    bull_gann_1_1 
    f_bull_gann_line(p_ranget_rangezigzag_src)
    // --- 5. Görselleştirmeler ---

    plot(ta.change(zigzag_src) > na bull_gann_1_1title='Gann'color=color.new(color.yellow0), linewidth=1style=plot.style_linebr)
    /////////////////


    ////////// TREND TAKİBİ İÇİN KULLANILAN KOD.////////
    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(1"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(#e2fb01, 0), "Bullish CISD", group=crayon_box)
    blood_bath input.color(color.new(#d400ff, 0), "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"TR"color=active_crayonlinewidth=girth_unitsstyle=plot.style_line)
    //////////////////////BU KODUN SONUDUR.///////////////////
    // --- 1. Dalga Mantığı ---
    isClosed barstate.isconfirmed
    spaceUp 
    = (high close) * 0.65
    spaceDown 
    = (open low) * 0.65
    brightRed 
    color.rgb(000// Siyah
    brightGreen color.white      // Beyaz

    // 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]

    // --- 2. 6 Bar Hafıza Taraması ---
    // 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

    // --- 3. Ofsetli Sembol Yerleştirme ---
    // Etiketleri bar_index - 3 diyerek tam 'kırılma' barına ofsetliyoruz
    if bullRaw12
        label
    .new(bar_index 3high[3] + spaceUp'1'style=label.style_nonetextcolor=brightRedsize=size.huge)
        
    label.new(bar_index-3high spaceUp'0'style=label.style_nonetextcolor=brightRedsize=size.huge)

    if 
    bearRaw12
        label
    .new(bar_index 3low[3] - spaceDown'1'style=label.style_nonetextcolor=brightGreensize=size.huge)
        
    label.new(bar_index-3low spaceDown'0'style=label.style_nonetextcolor=brightGreensize=size.huge)

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

    isZit3 
    hasSiyahIn63 and hasBeyazIn63
    // Zıtlık yokken kilitlerin hükmü geçerlidir
    isAlZone  lockAL and not isZit3
    isSatZone 
    lockSAT and not isZit3

    // Barları da kilitli bölge rengine göre boyayalım ki nizam tam olsun
    //barcolor(isZit3 ? color.gray : isAlZone ? color.lime : isSatZone ? color.red : na)
    ////////////////////

    ///////////////////

    // --- 5. Yörük Sinyali & PSAR ---
    psar ta.sar(0.00.0010.99)
    plot(psar"PSAR4"style=plot.style_linecolor=color.new(color.red00))

    psar1 ta.sar(0.00.010.99)
    plot(psar1"PSAR1"style=plot.style_linecolor=color.new(color.fuchsia00))


    //////////////////////////////İMZA BÖLÜMÜ/////////////
    var tb table.new(position.bottom_center11bgcolor #161114)
    if barstate.isfirst 
        table
    .cell(tb00'Yatırım tavsiyesi olarak KULLANILAMAZ. @yörük@ 2026 'text_size size.normaltext_color #f4f2ef)

    ///////////////////DERİN ÖĞRENME BÖLÜMÜDÜR//////////////
    //@version=5
    // --- INPUTS ---
    lookback input.int(20"Pivot Lookback"minval=2)
    showLiquidity input.bool(true"Show BSL/SSL Lines")
    showOTE input.bool(true"Show OTE Levels")

    // --- LIQUIDITY CALCULATIONS (Pivot Highs/Lows) ---
    ph ta.pivothigh(highlookbacklookback)
    pl ta.pivotlow(lowlookbacklookback)


    // Arrays to manage lines
    var line bsl_line na
    var line ssl_line na


    // --- DETECT & DRAW BUY SIDE LIQUIDITY (BSL) ---
    if not na(ph)
        if 
    not na(bsl_line)
            
    line.set_extend(bsl_lineextend.none)
        
    bsl_line := line.new(bar_index[lookback], phbar_indexphcolor=color.greenwidth=2extend=extend.right)
        
    label.new(bar_index[lookback], ph"."style=label.style_label_downcolor=color.greentextcolor=color.whitesize=size.tiny)


    // --- DETECT & DRAW SELL SIDE LIQUIDITY (SSL) ---
    if not na(pl)
        if 
    not na(ssl_line)
            
    line.set_extend(ssl_lineextend.none)
        
    ssl_line := line.new(bar_index[lookback], plbar_indexplcolor=color.redwidth=2extend=extend.right)
        
    label.new(bar_index[lookback], pl"."style=label.style_label_upcolor=color.redtextcolor=color.whitesize=size.tiny)


    // --- REAL-TIME LIQUIDITY SWEEP LOGIC ---
    // high and low variables always represent the most recent tick on the live bar
    if not na(bsl_line) and high >= line.get_y1(bsl_line)
        
    line.set_style(bsl_lineline.style_dotted)
        
    line.set_color(bsl_linecolor.new(color.green50))


    if 
    not na(ssl_line) and low <= line.get_y1(ssl_line)
        
    line.set_style(ssl_lineline.style_dotted)
        
    line.set_color(ssl_linecolor.new(color.red50))


    ////////////////
    //////////////////POLİNOM HESAPLMASIDIR//////////////////////////////

    source14      input.source(close'Source')
    length14      input.int(2'Period'1)
    displayExt  input.bool(true""inline "ext")
    extrapolate input.int(1'Extrapolate'0inline "ext")
    degree      input.int(1'Degree'1)
    colorUp     input.color(color.rgb(25523559100), ""inline "col")
    colorDn     input.color(color.rgb(22364251100), ""inline "col")

    polyreg(source14length14degreeextrapolate) =>
        if 
    barstate.islast
            total 
    length14 extrapolate

            X_all 
    matrix.new<float>(totaldegree 10.0)
            for 
    0 to total 1
                
    for 0 to degree
                    matrix
    .set(X_allijmath.pow(ij))

            
    // y (length × 1), oldest→newest over the fit window
            
    matrix.new<float>(length1410.0)
            for 
    0 to length14 1
                matrix
    .set(yi0source14[length14 i])

            
    // X_train (first `length` rows of X_all)
            
    X_tr matrix.new<float>(length14degree 10.0)
            for 
    0 to length14 1
                
    for 0 to degree
                    matrix
    .set(X_trijmatrix.get(X_allij))

            
    // OLS via normal equations: (X'X)^(-1)b = X'y  ⇒  b = (X'X)^(-1) X'y
            
    Xt   matrix.transpose(X_tr)           // X'
            
    XtX  matrix.mult(XtX_tr)           // (X'X) 
            
    Xty  matrix.mult(Xty)             //  X'y
            
    XtX_inv matrix.inv(XtX)            // (X'X)^(-1)      
            
    b       matrix.mult(XtX_invXty//  b = (X'X)^(-1) X'y

            // Predictions for all rows (fit + extrap)
            
    preds matrix.mult(X_allmatrix.col(b,0))    
            
    preds


    dist        
    ta.highest(ta.sma(high-lowlength14), length14)*2
    predictions 
    polyreg(source14length14degreeextrapolate)

    drawLine(offset)=>
        
        var 
    lastPred  float(na)
        var 
    color     color(na)
        var 
    labels    = array.new<label>()
        var 
    prevValue float(na)

        if 
    barstate.islast
            chartPoints  
    = array.new<chart.point>()
            
    chartPoints1 = array.new<chart.point>()

            if 
    labels.size() > 0
                
    for l in labels
                    l
    .delete()

            for [
    indexpredictionin predictions

                Directioncolor 
    prediction prevValue colorUp colorDn
                prevValue 
    := prediction
                predZone 
    index >= length14

                
    if offset == 
                    marker   
    displayExt ? (predZone "•" "⬥") : (predZone "" "⬥")
                    
    txtColor predZone chart.fg_color Directioncolor
                    labels
    .push(label.new(chart.point.from_index(index bar_index index length14 1price prediction+offset), markercolor color(na), textcolor txtColorstyle label.style_label_center))
                
                else if 
    predZone and displayExt
                    chartPoints
    .push(value chart.point.from_index(index bar_index index length14 1price prediction+offset))
                else if 
    not predZone
                    chartPoints1
    .push(value chart.point.from_index(index bar_index index length14 1price prediction+offset))

                if 
    index == length14+extrapolate-and displayExt
                    lastPred 
    := prediction
                    
    if offset 0
                        style 
    Directioncolor == colorUp label.style_label_lower_left label.style_label_upper_left
                        label
    .delete(label.new(bar_index+extrapolatelastPred-offsetstr.tostring(lastPred-offset"##,###,###.###"), style styletextcolor chart.fg_colorcolor color(na))[1])
                        
    label.delete(label.new(bar_index+extrapolatelastPredstr.tostring(lastPred"##,###,###.###"), style styletextcolor chart.fg_colorcolor color(na))[1])
                        
    label.delete(label.new(bar_index+extrapolatelastPred+offsetstr.tostring(lastPred+offset"##,###,###.###"), style styletextcolor chart.fg_colorcolor color(na))[1])

            
    color := chart.fg_color
            
    //polyline.delete(polyline.new(chartPoints, line_width = 1, line_style = line.style_dashed, line_color = color)[1])
            //polyline.delete(polyline.new(chartPoints1, line_width = 1, line_style = line.style_solid, line_color = color)[1])

            
        
    lastPred


    // --------------------------------------------------------------------------------------------------------------------}

    drawLine(dist)
    drawLine(0)
    drawLine(-dist)
    //////////////zaman bölümlemesidir. 240 dakka için açılışı trend çizgisidir/////////////////////////////// 
    olasılık barları...bu kodun üzerinden geliştirilmeye çalışılmıştır....
    PHP Code:
    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
    bu değerler ile barlar oluşturulmuş....
    100-1000 değeri arasında...4 bar tanımlanmış....
    PHP Code:
    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)

    o100 f_v(openw_o100n_in), h100 f_v(highw_h100n_in), l100 f_v(loww_l100n_in), c100 f_v(closew_c100n_in)
    c1000 f_v(closew_c1000n_in), o1000 f_v(openw_o1000n_in
    tanımlanan barlar.....
    PHP Code:
    plotcandle(o100h100l100c100"4"color=c100 c100[100] ? color.rgb(24324423795) : color.rgb(2484495), bordercolor=color.new(color.yellow90))
    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), "3"color=nabordercolor=color.new(color.yellow85))
    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), "2"color=nabordercolor=color.new(color.yellow80))

    isBull1000 c1000 o1000
    plotcandle
    (o1000 + (c1000 o1000) * 0.33f_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.red00), bordercolor=color.new(color.fuchsia100))

    plot(gann_hiz"Hız"color=color.aqualinewidth=2style=plot.style_linebr
    görselleştirilmiş... ve gann hızına bağlanmıştır...

    olası volalite hareketi....barlar zaten önceden olasılık hesaplamış olacağından...
    son hesaplamalar....
    PHP Code:
    var table tb table.new(position.bottom_center11bgcolor #161114)
    if barstate.islast
        valTxt 
    na(m1000) ? "OTOMATİK HESAPLAMADIR." "Şimdiki Olasılık: " str.tostring(m1000format.mintick) + " | Sonraki Olasılık: " str.tostring(m100format.mintick)
        
    table.cell(tb00'(Aİ-V6) OLASILIK  | ' valTxt ' | Eğitim çalışması olup, Yatırım Tavsiyesi Olarak KULLANILAMAZ...@yörük@ 2026'text_color #f4f2ef) 
    bu şekilde takibe alınmıştır....
    16.07.2024 - 10.12.2024

  6. v5-v6 uyumsuzluklarına... takılmamak için...aiye kod yazdırırken... son sürüm olan v6 daha mantıklıdır....
    sadeleştirmede...hatalar alınmaz....

    deneme yapmak isteyenler.... TW deki beğendiğiniz kodu.... öncelikle sadeleştirmeye yoluna gidiniz...
    genellikle yüzde 70 kadar sadeleşir....

    ben temel olarak... paylaştığım...bar olasılık kodunu esas alıyorum....

    ve ayrı...kod ekleme yerine.... ekleyeceğim kodu olasılık barı ile ilişkilendiriyorum...

    yani... hazır atr okutularak yapılmış kod yerine.... atr kullanmayıp... genellikle bar verisini kullanıp....

    hesaplatılıyor.... işi yaramadığını düşündüğüm sürece....ekleme yapmıyorum....
    16.07.2024 - 10.12.2024

  7. olasılık barlarıyla....sadece bar hesaplamasının ortalamaları kullanılarak...
    ileriye doğru 5bar projeksiyon.... ve des-dir hesaplama örneği
    https://www.tradingview.com/x/X9q9NRd9/
    16.07.2024 - 10.12.2024

Sayfa 370/371 İlkİlk ... 270320360368369370371 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
  •