Artan
Azalan
οΏ½οΏ½lem
BIST 30
BIST 50
BIST 100
NASDAQ 100
Hisse Fiyat Fark% Hacim (TL) DοΏ½οΏ½οΏ½k / YοΏ½ksek
188,10 10% 634,38 Mn 184,00 / 188,10
22,00 10% 752,81 Mn 20,02 / 22,00
154,00 10% 180,13 Mn 135,80 / 154,00
18,71 9.99% 8,83 Mr 16,77 / 18,71
95,20 9.99% 449,09 Mn 92,00 / 95,20
Hisse Fiyat Fark% Hacim (TL) DοΏ½οΏ½οΏ½k / YοΏ½ksek
20,16 -10% 115,24 Mn 20,16 / 21,72
22,68 -10% 273,05 Mn 22,68 / 25,00
128,00 -9.99% 414,10 Mn 128,00 / 135,50
39,70 -9.98% 1,04 Mr 39,70 / 46,00
149,00 -9.97% 1,45 Mr 149,00 / 157,50
Hisse Fiyat Fark% Hacim (TL) DοΏ½οΏ½οΏ½k / YοΏ½ksek
3,23 -8.76% 37,04 Mr 3,23 / 3,64
333,25 -1.84% 10,37 Mr 322,00 / 340,00
40,08 -1.91% 9,37 Mr 40,00 / 41,40
72,75 -4.09% 9,14 Mr 72,75 / 76,20
18,71 9.99% 8,83 Mr 16,77 / 18,71
Hisse Fiyat Fark% Hacim (TL) DοΏ½οΏ½οΏ½k / YοΏ½ksek
20,52 -3.21% 962,90 Mn 20,42 / 21,38
72,75 -4.09% 9,14 Mr 72,75 / 76,20
419,25 -2.9% 5,88 Mr 419,25 / 433,25
333,25 -1.84% 10,37 Mr 322,00 / 340,00
781,00 0.84% 5,63 Mr 775,50 / 811,50
Hisse Fiyat Fark% Hacim (TL) DοΏ½οΏ½οΏ½k / YοΏ½ksek
20,52 -3.21% 962,90 Mn 20,42 / 21,38
72,75 -4.09% 9,14 Mr 72,75 / 76,20
101,00 0.1% 708,06 Mn 101,00 / 104,80
114,70 -1.46% 439,93 Mn 114,40 / 117,70
419,25 -2.9% 5,88 Mr 419,25 / 433,25
Hisse Fiyat Fark% Hacim (TL) DοΏ½οΏ½οΏ½k / YοΏ½ksek
20,52 -3.21% 962,90 Mn 20,42 / 21,38
35,50 -1.39% 140,23 Mn 35,46 / 36,40
72,75 -4.09% 9,14 Mr 72,75 / 76,20
11,44 2.33% 634,91 Mn 11,10 / 11,56
84,55 -4.14% 938,78 Mn 84,20 / 87,00

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 400/418 έlkέlk ... 300350390398399400401402410 ... SonSon
Arama sonucu : 3340 madde; 3,193 - 3,200 arasύ.

Konu: Tradingview

  1. PHP Code:
    //@version=5
    indicator("Yφrόk [Sistem 1: Renk Zύrhύ]"overlay=truemax_lines_count=500max_labels_count=500)

    // ─────────────────────────────────────────────────────────────────
    //  1. TEMEL MATEMATέKSEL FONKSέYONLAR
    // ─────────────────────────────────────────────────────────────────
    bool_to_float(bool source) => source 0

    ema
    (source)=>
        var 
    float ema 0.0
        
    var int count 0
        count 
    := nz(count[1]) + 1
        ema 
    := (1.0 2.0 / (count 1.0)) * nz(ema[1]) + 2.0 / (count 1.0) * source
        ema

    atan2
    (yx) =>
        var 
    float angle 0.0
        
    if 0
            angle 
    := math.atan(x)
        else if 
    and >= 0
            angle 
    := math.atan(x) + math.pi
        
    else if and 0
            angle 
    := math.atan(x) - math.pi
        
    else if == and 0
            angle 
    := math.pi 2
        
    else if == and 0
            angle 
    := -math.pi 2
        angle

    degrees
    (float source) => source 180 math.pi

    // MATS Hesaplama Fonksiyonu
    f_mats(int _len) =>
        
    atr_val ema(ta.tr)
        
    slope = (close close[10]) / (atr_val 10)
        
    angle_rad atan2(slope1)
        
    deg degrees(angle_rad)
        
    src ta.sma((deg high low), 2)
        
        
    smooth 0.0
        hh 
    math.max(math.sign(ta.change(ta.highest(_len))), 0)
        
    ll math.max(math.sign(ta.change(ta.lowest(_len)) * -1), 0)
        
    tc math.pow(ta.sma(bool_to_float(hh or ll), _len), 2)
        
    smooth := nz(smooth[1] + tc * (src smooth[1]), src)
        
        
    wp _len 1
        a 
    math.abs(nz(smooth[1]) - smooth)
        
    ma_a ta.ema(awp)
        
    dfa ta.ema(ma_awp) * _len 0.4
        
        res 
    0.0
        
    if smooth nz(res[1])
            
    res := (smooth dfa res[1]) ? res[1] : (smooth dfa)
        else
            
    res := (smooth dfa res[1]) ? res[1] : (smooth dfa)
        
    res

    // ─────────────────────────────────────────────────────────────────
    //  2. MATS MOTORLARI (34, 55, 89)
    // ─────────────────────────────────────────────────────────────────
    mats_34 f_mats(34)
    mats_55 f_mats(55)
    mats_89 f_mats(89)

    // ─────────────────────────────────────────────────────────────────
    //  3. MUM BOYAMA (RENK MANTIΠI)
    // ─────────────────────────────────────────────────────────────────
    color durum_rengi na

    if close mats_34
        durum_rengi 
    := color.new(#00E676, 0)      // YEήέL: 34 άstό (Gόvenli Bφlge)
    else if close <= mats_34 and close >= mats_55
        durum_rengi 
    := color.new(color.yellow0// SARI: 34-55 Arasύ (Dikkat/Yavaώlama)
    else if close mats_89
        durum_rengi 
    := color.new(#FF1744, 0)      // KIRMIZI: 89 Altύ (Dόώόώ/Tehlike)
    else
        
    durum_rengi := color.new(color.gray0)   // GRέ: 55-89 Arasύ (Uηurum Kenarύ / Nφtr)

    // Grafikteki mumlarύ renklendirir
    barcolor(durum_rengi)

    // ─────────────────────────────────────────────────────────────────
    //  4. ΗέZGέLER (Gφrsel Destek)
    // ─────────────────────────────────────────────────────────────────
    plot(mats_34"MATS 34"color=color.new(#00E676, 0), linewidth=1)
    plot(mats_55"MATS 55"color=color.new(color.yellow0), linewidth=1)
    plot(mats_89"MATS 89 (Zύrh)"color=color.new(#FF1744, 0), linewidth=2) 
    16.07.2024 - 10.12.2024

  2. evet... buraya kadar paylaώύlanlar... ai sohbetindeki bazύ kod denemeleridir....

    Tw de ilgimi ηeken kodlarύ...inceleyip....farklύ bir bakύώ aηύsύyla... tekrar tasarlama ηalύώmlarύdύr....

    asύl amaη.... afilli olan bir ηok kodun.... kendisine ώerh koymadύr....

    kodlar ai denemesi olduπundan....
    ne kodun ismi..... ne de plotlardaki deπerlerin ismini... ben yazmύyorum....

    ai...kendine gφre yazύp... sόslόyor diyeyim....

    en φnemlisi ise.... ben bu denemeleri... adύ όstόnde... kendi sitemimle deneyip geηiyorum....

    yani paylaώύlanlarύn..... ηoπunu kullanmύyorum bile.....

    sadece... bakύώ aηύsύ olsun.... renk katsύn.... diye....

    teknikηilerin en bόyόk hatasύ.....
    hep daha iyisi yapma arzusu.....

    TW deki kodlarύ.... denemeden... backtest yapmadan....kullanmayύn....
    gφrόntόlerde gφrdόklerinizin ηoπu... ya repaint ya da ηok gecikmeli....

    canlύ piyasada.... umduπunuzu bulamayabilirsiniz.....

    selamlar.....
    16.07.2024 - 10.12.2024

  3. deneme
    PHP Code:
    //@version=6
    indicator("Yφrόk [Titan: ALMA Tetiπi & ICS Bulut]"shorttitle="."overlay=truemax_lines_count=20max_bars_back=500max_labels_count=500)

    // ─────────────────────────────────────────────────────────────────
    //  1. SABέTLER VE GέRDέLER
    // ─────────────────────────────────────────────────────────────────
    int DIR_UP   =  1  
    int DIR_DOWN 
    = -1  
    int DIR_FLAT 
    =  0  
    const float MIN_SIGMA 1e-10   
    const float PI        math.pi 

    string GP_CALC 
    "════════ Bulut & Ηapa ════════"
    string i_calcBar input.string("Live Bar""Hesaplama Ηapasύ"options = ["Live Bar""Close Bar"], group GP_CALC)
    int i_period input.int(26"Trend Blok Periyodu"minval 5group GP_CALC)
    int i_groups input.int(5"Trend Blok Gruplarύ"minval 2group GP_CALC)
    float i_thresh input.float(0.5"Yatay Piyasa Eώiπi (°)"minval 0.0step 0.1group GP_CALC)
    int i_sigmaLen input.int(20"Yang-Zhang Volatilite Uzunluπu"minval 5group GP_CALC)
    int i_pjOff input.int(26"έleri Projeksiyon (Mum)"minval 1group GP_CALC)

    string GP_FILL "════════ Bulut Renkleri ════════"
    color i_fillUp  input.color(#26a69a, "Yόkseliώ Bulutu", group = GP_FILL)
    color i_fillDn  input.color(#ef5350, "Dόώόώ Bulutu", group = GP_FILL)
    color i_fillRng input.color(#888888, "Yatay Bulut", group = GP_FILL)
    int i_fillTr  input.int(85"Bulut ήeffaflύπύ"minval 0maxval 100group GP_FILL)

    string GRP_EXIT "════════ Tuzak Filtresi (ALMA) ════════"
    useDecisiveExit      input.bool(true"Kararlύ Ηύkύώ Kullan (Sahte έπneleri Filtrele)"group GRP_EXIT)
    pendingExitPriceType input.string("Close""Filtre Referansύ"options = ["Close""High/Low"], group GRP_EXIT)

    string GRP_MA "════════ Kuantum Ortalamalar ════════"
    showMa1   input.bool(true,  "Hat #1 Gφster",     inline "MA1"group GRP_MA)
    ma1Type   input.string("ALMA""",               inline "MA1"options = ["ALMA""EMA""SMA"], group GRP_MA)
    ma1Length input.int(21"",                      inline "MA1"minval 1group GRP_MA)
    ma1Color  input.color(color.white"",          inline "MA1"group GRP_MA)

    showMa2   input.bool(true,  "Hat #2 Gφster",     inline "MA2"group GRP_MA)
    ma2Type   input.string("ALMA""",               inline "MA2"options = ["ALMA""EMA""SMA"], group GRP_MA)
    ma2Length input.int(55"",                      inline "MA2"minval 1group GRP_MA)
    ma2Color  input.color(color.green"",           inline "MA2"group GRP_MA)

    showMa3   input.bool(true,  "Hat #3 Gφster",     inline "MA3"group GRP_MA)
    ma3Type   input.string("ALMA""",               inline "MA3"options = ["ALMA""EMA""SMA"], group GRP_MA)
    ma3Length input.int(100"",                      inline "MA3"minval 1group GRP_MA)
    ma3Color  input.color(color.red"",             inline "MA3"group GRP_MA)

    showMa4   input.bool(true,  "Hat #4 Gφster",     inline "MA4"group GRP_MA)
    ma4Type   input.string("ALMA""",               inline "MA4"options = ["ALMA""EMA""SMA"], group GRP_MA)
    ma4Length input.int(200"",                     inline "MA4"minval 1group GRP_MA)
    ma4Color  input.color(color.fuchsia"",         inline "MA4"group GRP_MA)

    var 
    int _anchor i_calcBar == "Live Bar" 1

    f_fClr
    (int d) => == DIR_UP i_fillUp == DIR_DOWN i_fillDn i_fillRng

    // ─────────────────────────────────────────────────────────────────
    //  2. έZOTROPέK KOORDέNAT SέSTEMέ (ICS) MATEMATέΠέ
    // ─────────────────────────────────────────────────────────────────
    f_icsLine(float p1int x1float p2int x2int targetXfloat sig) =>
        
    float out p1
        
    if x1 != x2 and p1 and p2 and sig MIN_SIGMA
            float y1 
    math.log(p1) / sig
            float y2 
    math.log(p2) / sig
            float yT 
    y1 + (y2 y1) * (targetX x1) / (x2 x1)
            
    out := math.exp(yT sig)
        
    out

    f_icsAngle
    (float p1int x1float p2int x2float sig) =>
        
    float out 0.0
        
    if x1 != x2 and p1 and p2 and sig MIN_SIGMA
            float y1 
    math.log(p1) / sig
            float y2 
    math.log(p2) / sig
            out 
    := math.atan((y2 y1) / (x2 x1)) * 180.0 PI
        out

    // ─────────────────────────────────────────────────────────────────
    //  3. YANG-ZHANG VOLATέLέTE (σ) & BLOK έNήASI
    // ─────────────────────────────────────────────────────────────────
    float _yzOR math.log(open[_anchor] / nz(close[_anchor 1], open[_anchor]))
    float _yzCO math.log(close[_anchor] / open[_anchor])
    float _yzHO math.log(high[_anchor] / open[_anchor])
    float _yzHC math.log(high[_anchor] / close[_anchor])
    float _yzLO math.log(low[_anchor]  / open[_anchor])
    float _yzLC math.log(low[_anchor]  / close[_anchor])

    float _sqOR ta.variance(_yzORi_sigmaLen)
    float _sqCO ta.variance(_yzCOi_sigmaLen)
    float _sqRS ta.sma(_yzHO _yzHC _yzLO _yzLCi_sigmaLen)

    float _k    0.34 / (1.34 + (i_sigmaLen 1.0) / math.max(i_sigmaLen 1.01.0))
    float _sq   nz(_sqOR) + _k nz(_sqCO) + (1.0 _k) * nz(_sqRS)
    float sigma math.max(math.sqrt(math.max(_sq0.0)), MIN_SIGMA)

    float _hhS ta.highest(highi_period)
    float _llS ta.lowest(lowi_period)
    max_bars_back(_hhS2500)
    max_bars_back(_llS2500)

    var array<
    float_bGm = array.new<float>()
    var array<
    float_bHi = array.new<float>()
    var array<
    float_bLo = array.new<float>()
    var array<
    int>   _bCx = array.new<int>()

    _bGm.clear(), _bHi.clear(), _bLo.clear(), _bCx.clear()
    bool _ok bar_index >= i_groups i_period _anchor

    if _ok
        
    for 0 to i_groups 1
            int   off 
    _anchor i_period
            float hi  
    _hhS[off]
            
    float lo  _llS[off]
            
    _bGm.push((hi and lo 0) ? math.exp((math.log(hi) + math.log(lo)) / 2.0) : na)
            
    _bHi.push(hi)
            
    _bLo.push(lo)
            
    _bCx.push(bar_index off int(i_period 2))

    int   _dir DIR_FLAT
    float _ang 
    0.0
    int   _seg 
    0

    if _ok and _bGm.size() >= 2
        float g0 
    _bGm.get(0)
        
    float g1 _bGm.get(1)
        if 
    not na(g0) and not na(g1) and g0 != g1
            int pd 
    g0 g1 DIR_UP DIR_DOWN
            _seg 
    := 1
            
    if i_groups 2
                
    for 1 to i_groups 2
                    float a 
    _bGm.get(i)
                    
    float b _bGm.get(1)
                    if 
    not na(a) and not na(b)
                        if (
    DIR_UP : (DIR_DOWN DIR_FLAT)) == pd
                            _seg 
    := 1
                        
    else
                            break
                    else
                        break

            
    float sig math.max(nz(sigmaMIN_SIGMA), MIN_SIGMA)
            if 
    _bGm.size() > _seg
                _ang 
    := f_icsAngle(_bGm.get(_seg), _bCx.get(_seg), _bGm.get(0), _bCx.get(0), sig)

            
    _dir := math.abs(_ang) <= i_thresh DIR_FLAT pd

    // ─────────────────────────────────────────────────────────────────
    //  4. HAREKETLέ ORTALAMALAR & ALMA PERSISTENCY TETέΠέ
    // ─────────────────────────────────────────────────────────────────
    calcMa(simple string maTypesimple int length) =>
        switch 
    maType
            
    "ALMA" => ta.alma(closelength0.856)
            
    "SMA"  => ta.sma(closelength)
            
    "EMA"  => ta.ema(closelength)
            =>        
    na

    ma1 
    showMa1 calcMa(ma1Typema1Length) : na
    ma2 
    showMa2 calcMa(ma2Typema2Length) : na
    ma3 
    showMa3 calcMa(ma3Typema3Length) : na
    ma4 
    showMa4 calcMa(ma4Typema4Length) : na

    //plot(showMa1 ? ma1 : na, color = ma1Color, title = "Hat 1", linewidth=2)
    //plot(showMa2 ? ma2 : na, color = ma2Color, title = "Hat 2", linewidth=2)
    //plot(showMa3 ? ma3 : na, color = ma3Color, title = "Hat 3", linewidth=2)
    //plot(showMa4 ? ma4 : na, color = ma4Color, title = "Hat 4", linewidth=2)

    var int   ma1Count 0, var float ma1ExitLevel na, var bool ma1PendingExit false, var bool ma1EntrySignal false, var bool ma1ExitSignal false, var bool ma1Populated false
    var int   ma2Count 0, var float ma2ExitLevel na, var bool ma2PendingExit false, var bool ma2EntrySignal false, var bool ma2ExitSignal false, var bool ma2Populated false
    var int   ma3Count 0, var float ma3ExitLevel na, var bool ma3PendingExit false, var bool ma3EntrySignal false, var bool ma3ExitSignal false, var bool ma3Populated false
    var int   ma4Count 0, var float ma4ExitLevel na, var bool ma4PendingExit false, var bool ma4EntrySignal false, var bool ma4ExitSignal false, var bool ma4Populated false

    updatePersistency
    (float pricefloat maValueint prevCountfloat prevExitLevelbool prevPendingExit) =>
        
    newCount       prevCount
        newExitLevel   
    prevExitLevel
        newPendingExit 
    prevPendingExit
        entrySignal    
    false
        exitSignal     
    false

        
    if not na(maValue)
            if 
    useDecisiveExit
                posExitTrigger 
    pendingExitPriceType == "Close" close maValue low  maValue
                negExitTrigger 
    pendingExitPriceType == "Close" close maValue high maValue

                
    if newCount 0
                    
    if newPendingExit
                        
    if low newExitLevel
                            newCount       
    := -1
                            newPendingExit 
    := false
                            newExitLevel   
    := na
                            exitSignal     
    := true
                            
    if negExitTrigger
                                newPendingExit 
    := true
                                newExitLevel   
    := high
                        
    else if negExitTrigger
                            newPendingExit 
    := false
                            newExitLevel   
    := na
                            newCount       
    += 1
                        
    else
                            
    newCount += 1
                    
    else
                        if 
    posExitTrigger
                            newPendingExit 
    := true
                            newExitLevel   
    := low
                            newCount       
    += 1
                        
    else
                            
    newCount += 1
                
    else if newCount 0
                    
    if newPendingExit
                        
    if high newExitLevel
                            newCount       
    := 1
                            newPendingExit 
    := false
                            newExitLevel   
    := na
                            entrySignal    
    := true
                            
    if posExitTrigger
                                newPendingExit 
    := true
                                newExitLevel   
    := low
                        
    else if posExitTrigger
                            newPendingExit 
    := false
                            newExitLevel   
    := na
                            newCount       
    -= 1
                        
    else
                            
    newCount -= 1
                    
    else
                        if 
    negExitTrigger
                            newPendingExit 
    := true
                            newExitLevel   
    := high
                            newCount       
    -= 1
                        
    else
                            
    newCount -= 1
                
    else
                    if 
    ta.crossover(pricemaValue)
                        
    newCount       := 1
                        newExitLevel   
    := na
                        newPendingExit 
    := false
                        entrySignal    
    := true
                    
    else if ta.crossunder(pricemaValue)
                        
    newCount       := -1
                        newExitLevel   
    := na
                        newPendingExit 
    := false
                        exitSignal     
    := true
            
    else
                if 
    ta.crossover(pricemaValue)
                    
    newCount       := 1
                    newExitLevel   
    := na
                    newPendingExit 
    := false
                    entrySignal    
    := true
                
    else if ta.crossunder(pricemaValue)
                    
    newCount       := -1
                    newExitLevel   
    := na
                    newPendingExit 
    := false
                    exitSignal     
    := true
                
    else
                    if 
    price maValue
                        
    if newCount >= 1
                            newCount 
    += 1
                        
    else
                            
    newCount    := 1
                            entrySignal 
    := true
                    
    else if price maValue
                        
    if newCount <= -1
                            newCount 
    -= 1
                        
    else
                            
    newCount   := -1
                            exitSignal 
    := true
                    
    else
                        
    newCount := newCount newCount newCount newCount 0

        
    [newCountnewExitLevelnewPendingExitentrySignalexitSignal]

    if 
    showMa1
        
    if not ma1Populated and not na(ma1)
            
    ma1Populated := true
            
    if close ma1
                ma1Count       
    := 1
                ma1EntrySignal 
    := true
        
    if ma1Populated
            
    [cepenex] = updatePersistency(closema1ma1Countma1ExitLevelma1PendingExit)
            
    ma1Count := cma1ExitLevel := ema1PendingExit := pma1EntrySignal := enma1ExitSignal := ex

    if showMa2
        
    if not ma2Populated and not na(ma2)
            
    ma2Populated := true
            
    if close ma2
                ma2Count       
    := 1
                ma2EntrySignal 
    := true
        
    if ma2Populated
            
    [cepenex] = updatePersistency(closema2ma2Countma2ExitLevelma2PendingExit)
            
    ma2Count := cma2ExitLevel := ema2PendingExit := pma2EntrySignal := enma2ExitSignal := ex

    if showMa3
        
    if not ma3Populated and not na(ma3)
            
    ma3Populated := true
            
    if close ma3
                ma3Count       
    := 1
                ma3EntrySignal 
    := true
        
    if ma3Populated
            
    [cepenex] = updatePersistency(closema3ma3Countma3ExitLevelma3PendingExit)
            
    ma3Count := cma3ExitLevel := ema3PendingExit := pma3EntrySignal := enma3ExitSignal := ex

    if showMa4
        
    if not ma4Populated and not na(ma4)
            
    ma4Populated := true
            
    if close ma4
                ma4Count       
    := 1
                ma4EntrySignal 
    := true
        
    if ma4Populated
            
    [cepenex] = updatePersistency(closema4ma4Countma4ExitLevelma4PendingExit)
            
    ma4Count := cma4ExitLevel := ema4PendingExit := pma4EntrySignal := enma4ExitSignal := ex

    // ─────────────────────────────────────────────────────────────────
    //  5. ALMA SέNYAL ΗέZέMLERέ (RAKAMLAR)
    // ─────────────────────────────────────────────────────────────────
    //plotchar(showMa1 and ma1EntrySignal, title="Hat 1 AL", char='L', location=location.belowbar, color=ma1Color, size=size.tiny)
    //plotchar(showMa2 and ma2EntrySignal, title="Hat 2 AL", char='2', location=location.belowbar, color=ma2Color, size=size.tiny)
    //plotchar(showMa3 and ma3EntrySignal, title="Hat 3 AL", char='3', location=location.belowbar, color=ma3Color, size=size.tiny)
    //plotchar(showMa4 and ma4EntrySignal, title="Hat 4 AL", char='4', location=location.belowbar, color=ma4Color, size=size.tiny)

    //plotchar(showMa1 and ma1ExitSignal,  title="Hat 1 SAT", char='S', location=location.abovebar, color=ma1Color, size=size.tiny)
    //plotchar(showMa2 and ma2ExitSignal,  title="Hat 2 SAT", char='2', location=location.abovebar, color=ma2Color, size=size.tiny)
    //plotchar(showMa3 and ma3ExitSignal,  title="Hat 3 SAT", char='3', location=location.abovebar, color=ma3Color, size=size.tiny)
    //plotchar(showMa4 and ma4ExitSignal,  title="Hat 4 SAT", char='4', location=location.abovebar, color=ma4Color, size=size.tiny)

    // ─────────────────────────────────────────────────────────────────
    //  6. GΦRSELLEήTέRME (SAF έZOTROPέK BULUT DOLGUSU)
    // ─────────────────────────────────────────────────────────────────
    var line     _upLn   na
    var line     _loLn   na
    var line     _upPj   na
    var line     _loPj   na
    var linefill _chFill na
    var linefill _pjFill na

    if barstate.islastconfirmedhistory or barstate.islast
        line
    .delete(_upLn), line.delete(_loLn), line.delete(_upPj), line.delete(_loPj)
        
    linefill.delete(_chFill), linefill.delete(_pjFill)
        
        if 
    _ok and _seg >= and _bHi.size() > _seg
            float fHH 
    nafloat fLH nafloat fHL nafloat fLL na
            int   xHH 
    naint   xLH naint   xHL naint   xLL na
            
            
    for 0 to _seg
                float h 
    _bHi.get(i)
                
    float l _bLo.get(i)
                
    int   x _bCx.get(i)
                if 
    na(fHH) or fHH
                    fHH 
    := hxHH := x
                
    if na(fLH) or fLH
                    fLH 
    := hxLH := x
                
    if na(fHL) or fHL
                    fHL 
    := lxHL := x
                
    if na(fLL) or fLL
                    fLL 
    := lxLL := x

            int sLx 
    _bCx.get(_seg)
            
    int sRx _bCx.get(0)
            
    float uY1 nafloat uY2 nafloat lY1 nafloat lY2 na
            float trSig 
    math.max(nz(sigmaMIN_SIGMA), MIN_SIGMA)

            if 
    _dir == DIR_UP
                uY1 
    := f_icsLine(fLHxLHfHHxHHsLxtrSig)
                
    uY2 := f_icsLine(fLHxLHfHHxHHsRxtrSig)
                
    lY1 := f_icsLine(fLLxLLfHLxHLsLxtrSig)
                
    lY2 := f_icsLine(fLLxLLfHLxHLsRxtrSig)
            else if 
    _dir == DIR_DOWN
                uY1 
    := f_icsLine(fHHxHHfLHxLHsLxtrSig)
                
    uY2 := f_icsLine(fHHxHHfLHxLHsRxtrSig)
                
    lY1 := f_icsLine(fHLxHLfLLxLLsLxtrSig)
                
    lY2 := f_icsLine(fHLxHLfLLxLLsRxtrSig)
            else
                
    uY1 := nz(fHH), uY2 := nz(fHH)
                
    lY1 := nz(fLL), lY2 := nz(fLL)

            
    int   ax  bar_index _anchor
            float uYa 
    f_icsLine(uY1sLxuY2sRxaxtrSig)
            
    float lYa f_icsLine(lY1sLxlY2sRxaxtrSig)

            
    _upLn := line.new(sLxuY1axuYacolor na)
            
    _loLn := line.new(sLxlY1axlYacolor na)

            
    int   eX  ax i_pjOff
            float uYe 
    f_icsLine(uY1sLxuY2sRxeXtrSig)
            
    float lYe f_icsLine(lY1sLxlY2sRxeXtrSig)
            
            
    _upPj := line.new(axuYaeXuYecolor na)
            
    _loPj := line.new(axlYaeXlYecolor na)

            
    color fc color.new(f_fClr(_dir), i_fillTr)
            
    _chFill := linefill.new(_upLn_loLnfc)
            
    _pjFill := linefill.new(_upPj_loPjfc)
    ////////////////////

    // ─────────────────────────────────────────────────────────────────
    //  1. GέRDέLER (YέN-YANG SAR)
    // ─────────────────────────────────────────────────────────────────
    h_start input.float(0.01"Hύzlύ SAR Baώlangύη"step=0.01group="Yin-Yang SAR")
    h_inc   input.float(0.006"Hύzlύ SAR έvme"step=0.01group="Yin-Yang SAR")
    h_max   input.float(0.30"Hύzlύ SAR Max"step=0.1group="Yin-Yang SAR")

    y_start input.float(0.01"Yavaώ SAR Baώlangύη"step=0.005group="Yin-Yang SAR")
    y_inc   input.float(0.01"Yavaώ SAR έvme"step=0.005group="Yin-Yang SAR")
    y_max   input.float(0.10"Yavaώ SAR Max"step=0.1group="Yin-Yang SAR")

    // ─────────────────────────────────────────────────────────────────
    //  2. YέN-YANG SAR MOTORU (SAR0 ve SAR1)
    // ─────────────────────────────────────────────────────────────────
    f_ozel_sar(src_hsrc_l_start_inc_max_reset_hiz) =>
        var 
    int trend 0
        
    var float sar_val 0.0
        
    var float ep 0.0
        
    var float af 0.0

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

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

    yeni_gun ta.change(time("D")) != 0

    [sar_hizlitrend_hizli] = f_ozel_sar(highlowh_starth_inch_maxyeni_gun)
    [
    sar_yavastrend_yavas] = f_ozel_sar(highlowy_starty_incy_maxyeni_gun)

    // ─────────────────────────────────────────────────────────────────
    //  3. 7 KATMANLI FRAKTAL MATRέS VE MUM RENKLERέ (BARCOLOR)
    // ─────────────────────────────────────────────────────────────────
    src hlc3

    // Her katmanda HMA (Kύlύη) ve ALMA (Zύrh) ηarpύώύr
    f_titan_dalga(_f_s) => ta.hma(src_f) - ta.alma(src_s0.856)

    // Fraktal Fibonacci Katmanlarύ
    ao1 f_titan_dalga(26)
    ao2 f_titan_dalga(36)
    ao3 f_titan_dalga(56)
    ao4 f_titan_dalga(86)
    ao5 f_titan_dalga(136)
    ao6 f_titan_dalga(216)
    ao7 f_titan_dalga(346)

    // Master Dalga (Sόperpozisyon)
    float master_wave = (ao1 ao2 ao3 ao4 ao5 ao6 ao7) / 7

    // 4 Kinetik Evre
    bool guclu_boga   master_wave and master_wave master_wave[1]
    bool yorulan_boga master_wave and master_wave <= master_wave[1]
    bool guclu_ayi    master_wave and master_wave master_wave[1]
    bool yorulan_ayi  master_wave and master_wave >= master_wave[1]

    // Mum Boyama
    color dalga_rengi guclu_boga color.new(#00ffaa, 0) : yorulan_boga ? color.new(#eafa03, 0) : guclu_ayi ? color.new(#ff0055, 0) : yorulan_ayi ? color.new(#c604ed, 0) : color.gray
    barcolor(dalga_rengi)

    // ─────────────────────────────────────────────────────────────────
    //  4. EKRAN ΗέZέMLERέ (SAR0 ve SAR1)
    // ─────────────────────────────────────────────────────────────────
    // Sar0 (Yavaώ SAR)
    //color col_yin = trend_yavas > 0 ? color.fuchsia : color.fuchsia
    //plot(sar_yavas, title="(Yavaώ)", color=col_yin, style=plot.style_cross, linewidth=1)

    // Sar1 (Hύzlύ SAR)
    color col_yang trend_hizli color.fuchsia color.fuchsia
    plot
    (sar_hizlititle="(yφrόk)"color=col_yangstyle=plot.style_crosslinewidth=2
    16.07.2024 - 10.12.2024

  4. leading ηalύώmasύ...
    500 bar iηinde...20sigma...13-21-34 uzunlukta....34mum φtelemeli...sadece bulut gφrselli ηalύώma φrneπi....
    φrnek periyot gφrόntόleri...
    https://www.tradingview.com/x/U7qhUBHN/
    https://www.tradingview.com/x/0lggg7Hz/
    https://www.tradingview.com/x/zN3SoSaS/
    https://www.tradingview.com/x/TxTNOE9l/
    https://www.tradingview.com/x/C3GLziJY/
    16.07.2024 - 10.12.2024

  5. 5sar...10lu kombinasyon...3lό ηakύώma φrneπi.....

    https://www.tradingview.com/x/LNKdUnq8/
    https://www.tradingview.com/x/qvnKbntL/
    https://www.tradingview.com/x/aTeSUqFM/

    sadece sar hesaplamasύ kullanύlmύώtύr...
    16.07.2024 - 10.12.2024

  6. 16.07.2024 - 10.12.2024

  7. dinamik tablolu...sadece bar renklendirmeli...oto sar sistem deneme φrneπi....
    https://www.tradingview.com/x/zcnqIfjx/
    16.07.2024 - 10.12.2024

  8. deneme... yedekleme iηin...
    PHP Code:
    //@version=6
    indicator("Yφrόk [Sistem 7: Ahenkli MATS Zύrhύ]"overlay=true)

    // ─────────────────────────────────────────────────────────────────
    //  1. TEMEL MATEMATέKSEL FONKSέYONLAR (MATS MOTORU)
    // ─────────────────────────────────────────────────────────────────
    // TέP HATASI ΦNLENDέ: Dφnόώ deπeri float (1.0 ve 0.0) olarak ayarlandύ
    bool_to_float(bool source) => source 1.0 0.0

    ema
    (source)=>
        var 
    float ema_val 0.0
        
    var int count 0
        count 
    := nz(count[1]) + 1
        ema_val 
    := (1.0 2.0 / (count 1.0)) * nz(ema_val[1]) + 2.0 / (count 1.0) * source
        ema_val

    atan2
    (yx) =>
        var 
    float angle 0.0
        
    if 0
            angle 
    := math.atan(x)
        else if 
    and >= 0
            angle 
    := math.atan(x) + math.pi
        
    else if and 0
            angle 
    := math.atan(x) - math.pi
        
    else if == and 0
            angle 
    := math.pi 2
        
    else if == and 0
            angle 
    := -math.pi 2
        angle

    degrees
    (float source) => source 180 math.pi

    f_mats
    (int _len) =>
        
    atr_val ema(ta.tr)
        
    slope = (close close[10]) / (atr_val 10)
        
    angle_rad atan2(slope1)
        
    deg degrees(angle_rad)
        
    src_m ta.sma((deg high low), 2)
        
        
    smooth 0.0
        hh 
    math.max(math.sign(ta.change(ta.highest(_len))), 0)
        
    ll math.max(math.sign(ta.change(ta.lowest(_len)) * -1), 0)
        
        
    // MANTIK HATASI GέDERέLDέ: Deπerler Boolean'a dφnόώtόrόldό
        
    tc math.pow(ta.sma(bool_to_float(hh or ll 0), _len), 2)
        
        
    smooth := nz(smooth[1] + tc * (src_m smooth[1]), src_m)
        
    wp _len 1
        a 
    math.abs(nz(smooth[1]) - smooth)
        
    ma_a ta.ema(awp)
        
    dfa ta.ema(ma_awp) * _len 0.4
        
        res 
    0.0
        
    if smooth nz(res[1])
            
    res := (smooth dfa res[1]) ? res[1] : (smooth dfa)
        else
            
    res := (smooth dfa res[1]) ? res[1] : (smooth dfa)
        
    res

    // ─────────────────────────────────────────────────────────────────
    //  2. ADAPTέF VέTES SEΗέMέ (MATS ZIRHI)
    // ─────────────────────────────────────────────────────────────────
    string tf timeframe.period
    float aktif_zirh 
    na

    if tf == "1"
        
    aktif_zirh := f_mats(34)
    else if 
    tf == "3"
        
    aktif_zirh := f_mats(21)
    else if 
    tf == "5"
        
    aktif_zirh := f_mats(13)
    else if 
    tf == "15"
        
    aktif_zirh := f_mats(8)
    else if 
    tf == "60"
        
    aktif_zirh := f_mats(5)
    else if 
    tf == "240"
        
    aktif_zirh := f_mats(3)
    else
        
    aktif_zirh := f_mats(2)

    // Zύrh Ηizimi (Dikkat daπύtmamasύ iηin beyaz ve saydam)
    plot(aktif_zirhtitle="MATS Zύrhύ"color=color.new(color.white30), linewidth=2)

    // ─────────────────────────────────────────────────────────────────
    //  3. YέN-YANG SAR MOTORU
    // ─────────────────────────────────────────────────────────────────
    f_ozel_sar(src_hsrc_l_start_inc_max) =>
        var 
    int trend 0
        
    var float sar_val 0.0
        
    var float ep 0.0
        
    var float af 0.0
        
        
    if trend == and not na(src_h[1])
            
    trend   := src_h >= src_h[1] or src_l >= src_l[1] ? : -1
            sar_val 
    := trend src_l[1] : src_h[1]
            
    ep      := trend src_h[1] : src_l[1]
            
    af      := _start
        
    else 
            
    float nextsar sar_val
            
    if trend 0
                
    if src_h[1] > ep
                    ep 
    := src_h[1]
                    
    af := math.min(_maxaf _inc)
                
    nextsar := sar_val af * (ep sar_val)
                
    nextsar := math.min(math.min(src_l[1], src_l[2]), nextsar)
                if 
    nextsar src_l
                    trend   
    := -1
                    nextsar 
    := ep
                    ep      
    := src_l
                    af      
    := _start
            
    else 
                if 
    src_l[1] < ep
                    ep 
    := src_l[1]
                    
    af := math.min(_maxaf _inc)
                
    nextsar := sar_val af * (ep sar_val)
                
    nextsar := math.max(math.max(src_h[1], src_h[2]), nextsar)
                if 
    nextsar src_h
                    trend   
    := 1
                    nextsar 
    := ep
                    ep      
    := src_h
                    af      
    := _start
            sar_val 
    := nextsar
        
    [sar_valtrend]

    [
    sar_yangdir_yang] = f_ozel_sar(highlow0.00.010.05)
    [
    sar_yindir_yin]   = f_ozel_sar(highlow0.000.050.50)

    // ─────────────────────────────────────────────────────────────────
    //  4. AHENK VE BAR RENKLERέ
    // ─────────────────────────────────────────────────────────────────
    bool ahenk_boga = (dir_yang 0) and (dir_yin 0)
    bool ahenk_ayi  = (dir_yang 0) and (dir_yin 0)

    // Mum renkleri sadece Yin-Yang Ahengine baπlύ
    barcolor(ahenk_boga color.lime ahenk_ayi color.red color.new(color.gray60))

    // SAR Ηizimleri
    plot(sar_yin"Yin (Su)"color=dir_yin color.aqua color.bluestyle=plot.style_circleslinewidth=2)
    plot(sar_yang"Yang (Ateώ)"color=dir_yang color.orange color.maroonstyle=plot.style_circleslinewidth=1
    16.07.2024 - 10.12.2024

Sayfa 400/418 έlkέlk ... 300350390398399400401402410 ... 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
  •