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

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 395/400 έlkέlk ... 295345385393394395396397 ... SonSon
Arama sonucu : 3194 madde; 3,153 - 3,160 arasύ.

Konu: Tradingview

  1. sadeleme...
    PHP Code:
    //@version=6
    indicator("Yφrόk [Saf έzotropik Bulut]"shorttitle="Yφrόk ICS Bulut"overlay=truemax_lines_count=20)

    // ─────────────────────────────────────────────────────────────────
    //  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 
    "Hesaplama & Η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)

    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 (σ) HESAPLAMASI
    // ─────────────────────────────────────────────────────────────────
    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)

    // ─────────────────────────────────────────────────────────────────
    //  4. BLOK έNήASI VE ANA YΦN MOTORU
    // ─────────────────────────────────────────────────────────────────
    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

    // ─────────────────────────────────────────────────────────────────
    //  5. GΦRSELLEήTέRME (SADECE 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)

            
    // Ηizgiler oluώturulur ancak "color=na" ile ekranda GέZLENέR.
            
    _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)
            
            
    // Geleceπe uzanan ηizgiler oluώturulur ancak GέZLENέR.
            
    _upPj := line.new(axuYaeXuYecolor na)
            
    _loPj := line.new(axlYaeXlYecolor na)

            
    // Sadece arka planύ dolduran bulutlar gφrόnόr kύlύnύr.
            
    color fc color.new(f_fClr(_dir), i_fillTr)
            
    _chFill := linefill.new(_upLn_loLnfc)
            
    _pjFill := linefill.new(_upPj_loPjfc
    16.07.2024 - 10.12.2024

  2. https://www.tradingview.com/x/q4dwb3M4/ bu gφrόntόyό oluώturan kod...
    alma tetiπi ve bulut... sadelenmiώ ώekli....
    PHP Code:
    //@version=6
    indicator("Yφrόk [Titan: ALMA Tetiπi & ICS Bulut]"shorttitle="Yφrόk Titan"overlay=truemax_lines_count=20max_bars_back=5000)

    // ─────────────────────────────────────────────────────────────────
    //  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(10"",                      inline "MA1"minval 1group GRP_MA)
    ma1Color  input.color(color.orange"",          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(21"",                      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(50"",                      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 nacolor ma1Colortitle "Hat 1"linewidth=2)
    plot(showMa2 ma2 nacolor ma2Colortitle "Hat 2"linewidth=2)
    plot(showMa3 ma3 nacolor ma3Colortitle "Hat 3"linewidth=2)
    plot(showMa4 ma4 nacolor ma4Colortitle "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 ma1EntrySignaltitle="Hat 1 AL"char='1'location=location.belowbarcolor=ma1Colorsize=size.tiny)
    plotchar(showMa2 and ma2EntrySignaltitle="Hat 2 AL"char='2'location=location.belowbarcolor=ma2Colorsize=size.tiny)
    plotchar(showMa3 and ma3EntrySignaltitle="Hat 3 AL"char='3'location=location.belowbarcolor=ma3Colorsize=size.tiny)
    plotchar(showMa4 and ma4EntrySignaltitle="Hat 4 AL"char='4'location=location.belowbarcolor=ma4Colorsize=size.tiny)

    plotchar(showMa1 and ma1ExitSignal,  title="Hat 1 SAT"char='1'location=location.abovebarcolor=ma1Colorsize=size.tiny)
    plotchar(showMa2 and ma2ExitSignal,  title="Hat 2 SAT"char='2'location=location.abovebarcolor=ma2Colorsize=size.tiny)
    plotchar(showMa3 and ma3ExitSignal,  title="Hat 3 SAT"char='3'location=location.abovebarcolor=ma3Colorsize=size.tiny)
    plotchar(showMa4 and ma4ExitSignal,  title="Hat 4 SAT"char='4'location=location.abovebarcolor=ma4Colorsize=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
    16.07.2024 - 10.12.2024

  3. denemeler...
    PHP Code:
    //@version=6
    indicator("Yφrόk [Senkronize Performans Motoru]"shorttitle="Korelasyon %"overlay=false)

    // ─────────────────────────────────────────────────────────────────
    //  1. GέRDέLER (MέZAN AYARLARI)
    // ─────────────────────────────────────────────────────────────────
    grp_ayarlar "Senkronizasyon Ayarlarύ"
    sym1 input.symbol("BINANCE:BTCUSD""1. Varlύk (Φrn: BTC)"group=grp_ayarlar)
    sym2 input.symbol("OANDA:XAUUSD""2. Varlύk (Φrn: ONS Altύn)"group=grp_ayarlar)

    // έkisinin de %0'dan baώlayacaπύ milat tarihi
    baslangic_zaman input.time(timestamp("2024-01-01T00:00"), "Baώlangύη Tarihi (Milat)"group=grp_ayarlar)

    // ─────────────────────────────────────────────────────────────────
    //  2. VERέ ΗEKέMέ (SAF KAPANIήLAR)
    // ─────────────────────────────────────────────────────────────────
    // Seηilen varlύklarύn o anki grafiπin zaman dilimindeki kapanύώlarύnύ alύyoruz.
    close1 request.security(sym1timeframe.periodclose)
    close2 request.security(sym2timeframe.periodclose)

    // ─────────────────────────────────────────────────────────────────
    //  3. OTONOM HAFIZA: BAήLANGIΗ FέYATLARINI KέLέTLEME
    // ─────────────────────────────────────────────────────────────────
    // Belirlenen tarihteki ilk fiyatlarύ hafύzaya kazύyoruz.
    var float startPrice1 na
    var float startPrice2 na

    // Zaman, seηtiπimiz miladύ geηtiπinde ve hafύza boώsa, o anki fiyatύ baώlangύη kabul et
    if time >= baslangic_zaman and na(startPrice1)
        
    startPrice1 := close1
        startPrice2 
    := close2

    // ─────────────────────────────────────────────────────────────────
    //  4. YάZDELέK DΦNάήάM MATEMATέΠέ (REBASING TO 0%)
    // ─────────────────────────────────────────────────────────────────
    // Formόl: (Anlύk Fiyat - Baώlangύη Fiyatύ) / Baώlangύη Fiyatύ * 100
    float pct1 na(startPrice1) ? na : ((close1 startPrice1) / startPrice1) * 100
    float pct2 
    na(startPrice2) ? na : ((close2 startPrice2) / startPrice2) * 100

    // ─────────────────────────────────────────────────────────────────
    //  5. GΦRSELLEήTέRME (PERFORMANS YARIήI)
    // ─────────────────────────────────────────────────────────────────
    // 0 Ηizgisi (Baώlangύη Ηizgisi)
    hline(0"Baώlangύη (%0)"color=color.new(color.gray50), linestyle=hline.style_dashedlinewidth=2)

    // Varlύklarύn Performans Ηizgileri
    plot(pct1title="1. Varlύk (%)"color=color.new(#F7931A, 0), linewidth=2) // BTC Turuncusu
    plot(pct2title="2. Varlύk (%)"color=color.new(#FFD700, 0), linewidth=2) // Altύn Sarύsύ

    // έki varlύk arasύndaki makasύ (Korelasyon kopukluπunu) gφsteren arka plan dolgusu
    p1 plot(pct1display=display.none)
    p2 plot(pct2display=display.none)
    fill(p1p2pct1 pct2 color.new(#F7931A, 90) : color.new(#FFD700, 90), title="Fark Makasύ") 
    PHP Code:
    //@version=6
    indicator("Yφrόk [Otonom Korelasyon Motoru]"shorttitle="Otonom %"overlay=false)

    // ─────────────────────────────────────────────────────────────────
    //  1. GέRDέLER (SADECE VARLIK SEΗέMέ - TARέH έPTAL EDέLDέ)
    // ─────────────────────────────────────────────────────────────────
    grp_ayarlar "Senkronizasyon Ayarlarύ"
    sym1 input.symbol("BINANCE:BTCUSD""1. Varlύk (Φrn: BTC)"group=grp_ayarlar)
    sym2 input.symbol("OANDA:XAUUSD""2. Varlύk (Φrn: ONS Altύn)"group=grp_ayarlar)

    // ─────────────────────────────────────────────────────────────────
    //  2. VERέ ΗEKέMέ (SAF KAPANIήLAR)
    // ─────────────────────────────────────────────────────────────────
    close1 request.security(sym1timeframe.periodclose)
    close2 request.security(sym2timeframe.periodclose)

    // ─────────────────────────────────────────────────────────────────
    //  3. OTONOM HAFIZA (έLK ORTAK BULUήMA NOKTASI)
    // ─────────────────────────────────────────────────────────────────
    var float startPrice1 na
    var float startPrice2 na

    // Kuantum Kilidi: Baώlangύη fiyatύ boώsa (na) VE her iki varlύπύn da o an fiyatύ varsa...
    // Bu, sistemin "tarih sormadan" ilk ortak fiyatύ yakaladύπύ ve kilitlediπi andύr.
    if na(startPrice1) and not na(close1) and not na(close2)
        
    startPrice1 := close1
        startPrice2 
    := close2

    // ─────────────────────────────────────────────────────────────────
    //  4. YάZDELέK DΦNάήάM MATEMATέΠέ (REBASING TO 0%)
    // ─────────────────────────────────────────────────────────────────
    // Formόl: (Anlύk Fiyat - Baώlangύη Fiyatύ) / Baώlangύη Fiyatύ * 100
    float pct1 na(startPrice1) ? na : ((close1 startPrice1) / startPrice1) * 100
    float pct2 
    na(startPrice2) ? na : ((close2 startPrice2) / startPrice2) * 100

    // ─────────────────────────────────────────────────────────────────
    //  5. GΦRSELLEήTέRME (PERFORMANS YARIήI)
    // ─────────────────────────────────────────────────────────────────
    // 0 Ηizgisi (Otonom Baώlangύη Ηizgisi)
    hline(0"Baώlangύη (%0)"color=color.new(color.gray50), linestyle=hline.style_dashedlinewidth=2)

    // Varlύklarύn Performans Ηizgileri
    plot(pct1title="1. Varlύk (%)"color=color.new(#F7931A, 0), linewidth=2) // BTC Turuncusu
    plot(pct2title="2. Varlύk (%)"color=color.new(#FFD700, 0), linewidth=2) // Altύn Sarύsύ

    // έki varlύk arasύndaki makasύ (Korelasyon kopukluπunu) gφsteren arka plan dolgusu
    p1 plot(pct1display=display.none)
    p2 plot(pct2display=display.none)
    fill(p1p2pct1 pct2 color.new(#F7931A, 90) : color.new(#FFD700, 90), title="Fark Makasύ") 
    16.07.2024 - 10.12.2024

  4. deneme φrneklerinden....
    PHP Code:
    //@version=6
    indicator("Yφrόk [0-0.001-0.2 Mikro SAR]"overlay=truemax_labels_count=500)

    // ─────────────────────────────────────────────────────────────────
    //  1. GέRDέLER (MέKRO-έVME DέZέLέMέ)
    // ─────────────────────────────────────────────────────────────────
    k_start    input.float(0.0,    "Kral Baώlangύη"step=0.001group="Otonom Beyin (Fibo SAR)")
    k_inc      input.float(0.001,  "Kral έvme"step=0.001group="Otonom Beyin (Fibo SAR)")
    k_max      input.float(0.20,   "Kral Max"step=0.01group="Otonom Beyin (Fibo SAR)")
    fibo_decay input.float(21.0,   "Fibo Yaώlanma Sύnύrύ"step=1.0group="Otonom Beyin (Fibo SAR)")

    // ─────────────────────────────────────────────────────────────────
    //  2. OTONOM BEYέN: FIBONACCI YAήLANMA MOTORU
    // ─────────────────────────────────────────────────────────────────
    f_fibo_sar(src_hsrc_l_start_inc_max_decay_limit) =>
        var 
    int trend 0
        
    var float sar_val 0.0
        
    var float ep 0.0
        
    var float af 0.0
        
    var int trend_age 

        
    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
            trend_age 
    := 0
        
    else 
            
    trend_age += 
            
            float nextsar 
    sar_val
            float decay_factor 
    math.max(0.011.0 - (trend_age _decay_limit))
            
    float yasli_inc    _inc decay_factor

            
    if trend 0
                
    if src_h[1] > ep
                    ep 
    := src_h[1]
                    
    af := math.min(_maxaf yasli_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
                    trend_age 
    := 
            
    else 
                if 
    src_l[1] < ep
                    ep 
    := src_l[1]
                    
    af := math.min(_maxaf yasli_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
                    trend_age 
    := 
                    
            sar_val 
    := nextsar
            
        
    [sar_valtrend]

    [
    kral_sarkral_yon] = f_fibo_sar(highlowk_startk_inck_maxfibo_decay)

    // ─────────────────────────────────────────────────────────────────
    //  3. έKέZ AYNA (KORUNAN SAF HEDEF MATEMATέΠέ)
    // ─────────────────────────────────────────────────────────────────
    // Fiyat ile SAR arasύndaki saf mesafe alύnύr, fiyatύn ucuna hedef olarak eklenir.
    float kral_ayna kral_yon close math.abs(close kral_sar) : close math.abs(close kral_sar)

    // ─────────────────────────────────────────────────────────────────
    //  4. GΦRSELLEήTέRME VE MUM RENKLERέ
    // ─────────────────────────────────────────────────────────────────
    color col_ana  kral_yon color.lime color.red
    color col_ayna 
    kral_yon color.new(color.lime40) : color.new(color.red40)

    barcolor(col_ana)

    // Ana SAR ve Ayna Ηizimleri (Bozulmadύ)
    plot(kral_sartitle="Mikro SAR (0.001)"color=col_anastyle=plot.style_circleslinewidth=2)
    plot(kral_aynatitle="Ayna (Hedef)"color=col_aynastyle=plot.style_linelinewidth=1)

    // ─────────────────────────────────────────────────────────────────
    //  5. KUANTUM RADARI (ARADAKέ FARK/UZAKLIK HESABI)
    // ─────────────────────────────────────────────────────────────────
    var table radar table.new(position.bottom_right24border_width=1border_color=color.new(color.gray80), frame_color=color.new(color.gray80), frame_width=1)

    if 
    barstate.islast
        string t_text 
    kral_yon "BOΠA (LONG)" "AYI (SHORT)"
        
    // Fiyata uzaklύk tam olarak senin istediπin o "aradaki fark" όzerinden hesaplanύyor.
        
    float mesafe  math.abs(close kral_sar)
        
    float yuzde   = (mesafe close) * 100

        table
    .cell(radar00"Savaώ Alanύ:"text_color=color.whitetext_size=size.smallbgcolor=color.new(color.black50))
        
    table.cell(radar10t_texttext_color=col_anatext_size=size.smallbgcolor=color.new(color.black50))
        
        
    table.cell(radar01"Mikro SAR (Stop):"text_color=color.whitetext_size=size.smallbgcolor=color.new(color.black50))
        
    table.cell(radar11str.tostring(kral_sarformat.mintick), text_color=col_anatext_size=size.smallbgcolor=color.new(color.black50))
        
        
    table.cell(radar02"Fiyata Uzaklύk (Fark):"text_color=color.whitetext_size=size.smallbgcolor=color.new(color.black50))
        
    table.cell(radar12str.tostring(mesafeformat.mintick) + "  (%" str.tostring(yuzde"#.##") + ")"text_color=color.yellowtext_size=size.smallbgcolor=color.new(color.black50))

        
    table.cell(radar03"Ayna (Φncό Hedef):"text_color=color.whitetext_size=size.smallbgcolor=color.new(color.black50))
        
    table.cell(radar13str.tostring(kral_aynaformat.mintick), text_color=color.whitetext_size=size.smallbgcolor=color.new(col_ayna50)) 
    16.07.2024 - 10.12.2024

  5. deneme...
    PHP Code:
    //@version=6
    indicator("Yφrόk [0-έvmeli Fibo SAR & Radar]"overlay=truemax_labels_count=500)

    // ─────────────────────────────────────────────────────────────────
    //  1. GέRDέLER (0'DAN BAήLAYAN έVME)
    // ─────────────────────────────────────────────────────────────────
    // Komutanύn emriyle baώlangύη ivmesi 0.0'a ηekildi.
    k_start    input.float(0.0,    "Kral Baώlangύη (0'dan)"step=0.01group="Otonom Beyin (Fibo SAR)")
    k_inc      input.float(0.01,   "Kral έvme"step=0.01group="Otonom Beyin (Fibo SAR)")
    k_max      input.float(0.20,   "Kral Max"step=0.01group="Otonom Beyin (Fibo SAR)")
    fibo_decay input.float(21.0,   "Fibo Yaώlanma Sύnύrύ"step=1.0group="Otonom Beyin (Fibo SAR)"tooltip="Trendin yorulacaπύ ortalama mum sayύsύ.")

    // ─────────────────────────────────────────────────────────────────
    //  2. OTONOM BEYέN: FIBONACCI YAήLANMA MOTORU (TEK SAR)
    // ─────────────────────────────────────────────────────────────────
    f_fibo_sar(src_hsrc_l_start_inc_max_decay_limit) =>
        var 
    int trend 0
        
    var float sar_val 0.0
        
    var float ep 0.0
        
    var float af 0.0
        
    var int trend_age 

        
    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
            trend_age 
    := 0
        
    else 
            
    trend_age += 
            
            float nextsar 
    sar_val
            
    // Fibo Sφnόmleme: Trend yaώlandύkηa ivme artύώύ yavaώlar
            
    float decay_factor math.max(0.011.0 - (trend_age _decay_limit))
            
    float yasli_inc    _inc decay_factor

            
    if trend 0
                
    if src_h[1] > ep
                    ep 
    := src_h[1]
                    
    af := math.min(_maxaf yasli_inc
                
    nextsar := sar_val af * (ep sar_val)
                
    nextsar := math.min(math.min(src_l[1], src_l[2]), nextsar)
                
                if 
    nextsar src_l // Ayύya Dφnόώ
                    
    trend     := -1
                    nextsar   
    := ep
                    ep        
    := src_l
                    af        
    := _start
                    trend_age 
    := 
            
    else 
                if 
    src_l[1] < ep
                    ep 
    := src_l[1]
                    
    af := math.min(_maxaf yasli_inc
                
    nextsar := sar_val af * (ep sar_val)
                
    nextsar := math.max(math.max(src_h[1], src_h[2]), nextsar)
                
                if 
    nextsar src_h // Boπaya Dφnόώ
                    
    trend     := 1
                    nextsar   
    := ep
                    ep        
    := src_h
                    af        
    := _start
                    trend_age 
    := 
                    
            sar_val 
    := nextsar
            
        
    [sar_valtrend]

    [
    kral_sarkral_yon] = f_fibo_sar(highlowk_startk_inck_maxfibo_decay)

    // ─────────────────────────────────────────────────────────────────
    //  3. έKέZ AYNA HESAPLAMASI (ΦNCά HEDEF)
    // ─────────────────────────────────────────────────────────────────
    float kral_ayna kral_yon close math.abs(close kral_sar) : close math.abs(close kral_sar)

    // ─────────────────────────────────────────────────────────────────
    //  4. GΦRSELLEήTέRME VE MUM RENKLERέ
    // ─────────────────────────────────────────────────────────────────
    color col_ana  kral_yon color.lime color.red
    color col_ayna 
    kral_yon color.new(color.lime40) : color.new(color.red40)

    barcolor(col_ana)

    // Ana SAR (Daireler)
    plot(kral_sartitle="0-έvmeli SAR"color=col_anastyle=plot.style_circleslinewidth=2)

    // Ayna Hedef Ηizgisi
    plot(kral_aynatitle="Ayna (Hedef)"color=col_aynastyle=plot.style_linelinewidth=1)

    // ─────────────────────────────────────────────────────────────────
    //  5. KUANTUM RADARI (CANLI HUD PANEL)
    // ─────────────────────────────────────────────────────────────────
    var table radar table.new(position.bottom_right24border_width=1border_color=color.new(color.gray80), frame_color=color.new(color.gray80), frame_width=1)

    if 
    barstate.islast
        string t_text 
    kral_yon "BOΠA (LONG)" "AYI (SHORT)"
        
    float mesafe  math.abs(close kral_sar)
        
    float yuzde   = (mesafe close) * 100

        table
    .cell(radar00"Savaώ Alanύ:"text_color=color.whitetext_size=size.smallbgcolor=color.new(color.black50))
        
    table.cell(radar10t_texttext_color=col_anatext_size=size.smallbgcolor=color.new(color.black50))
        
        
    table.cell(radar01"0-Baώlangύηlύ SAR:"text_color=color.whitetext_size=size.smallbgcolor=color.new(color.black50))
        
    table.cell(radar11str.tostring(kral_sarformat.mintick), text_color=col_anatext_size=size.smallbgcolor=color.new(color.black50))
        
        
    table.cell(radar02"Fiyata Uzaklύk:"text_color=color.whitetext_size=size.smallbgcolor=color.new(color.black50))
        
    table.cell(radar12str.tostring(mesafeformat.mintick) + "  (%" str.tostring(yuzde"#.##") + ")"text_color=color.yellowtext_size=size.smallbgcolor=color.new(color.black50))

        
    table.cell(radar03"Ayna Hedefi:"text_color=color.whitetext_size=size.smallbgcolor=color.new(color.black50))
        
    table.cell(radar13str.tostring(kral_aynaformat.mintick), text_color=color.whitetext_size=size.smallbgcolor=color.new(col_ayna50)) 
    16.07.2024 - 10.12.2024

  6. PHP Code:
    //@version=6
    indicator("Yφrόk [Fibonacci Otonom SAR]"overlay=truemax_labels_count=500)

    // ─────────────────────────────────────────────────────────────────
    //  1. GέRDέLER 
    // ─────────────────────────────────────────────────────────────────
    k_start input.float(0.01,  "Kral Baώlangύη"step=0.01group="Otonom Beyin (Fibo SAR)")
    k_inc   input.float(0.01,  "Kral έvme"step=0.01group="Otonom Beyin (Fibo SAR)")
    k_max   input.float(0.20,  "Kral Max"step=0.01group="Otonom Beyin (Fibo SAR)")
    fibo_decay input.float(21.0"Fibo Yaώlanma Sύnύrύ"step=1.0group="Otonom Beyin (Fibo SAR)"tooltip="Trendin yaώlanύp ivmesinin kύrύlacaπύ varsayύlan ortalama bar sayύsύ.")

    // ─────────────────────────────────────────────────────────────────
    //  2. OTONOM BEYέN: FIBONACCI YAήLANMA MOTORU (TEK SAR)
    // ─────────────────────────────────────────────────────────────────
    f_fibo_sar(src_hsrc_l_start_inc_max_decay_limit) =>
        var 
    int trend 0
        
    var float sar_val 0.0
        
    var float ep 0.0
        
    var float af 0.0
        
    var int trend_age // Fibonacci yaώlanmasύ iηin sayaη

        
    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
            trend_age 
    := 0
        
    else 
            
    trend_age += // Her mumda trend yaώlanύr
            
            
    float nextsar sar_val
            
            
    // Fibo Sφnόmleme: Trend yaώlandύkηa ivme artύώύ yavaώlar
            
    float decay_factor math.max(0.011.0 - (trend_age _decay_limit))
            
    float yasli_inc    _inc decay_factor

            
    if trend 0
                
    if src_h[1] > ep
                    ep 
    := src_h[1]
                    
    af := math.min(_maxaf yasli_inc// Yaώlanmύώ ivme eklenir
                
    nextsar := sar_val af * (ep sar_val)
                
    nextsar := math.min(math.min(src_l[1], src_l[2]), nextsar)
                
                if 
    nextsar src_l // Trend Dφnόώό (Aώaπύ Kύrύlύm)
                    
    trend     := -1
                    nextsar   
    := ep
                    ep        
    := src_l
                    af        
    := _start
                    trend_age 
    := // Yaώ sύfύrlanύr
            
    else 
                if 
    src_l[1] < ep
                    ep 
    := src_l[1]
                    
    af := math.min(_maxaf yasli_inc// Yaώlanmύώ ivme eklenir
                
    nextsar := sar_val af * (ep sar_val)
                
    nextsar := math.max(math.max(src_h[1], src_h[2]), nextsar)
                
                if 
    nextsar src_h // Trend Dφnόώό (Yukarύ Kύrύlύm)
                    
    trend     := 1
                    nextsar   
    := ep
                    ep        
    := src_h
                    af        
    := _start
                    trend_age 
    := // Yaώ sύfύrlanύr
                    
            
    sar_val := nextsar
            
        
    [sar_valtrend]

    // Tek motoru ηalύώtύrύyoruz
    [kral_sarkral_yon] = f_fibo_sar(highlowk_startk_inck_maxfibo_decay)

    // ─────────────────────────────────────────────────────────────────
    //  3. έKέZ AYNA HESAPLAMASI (ΦNCά HEDEF)
    // ─────────────────────────────────────────────────────────────────
    // Ayna: Fiyatύn SAR'dan ne kadar uzaklaώtύπύnύ alύr, onu fiyatύn ilerisine projeksiyon yapar.
    float kral_ayna kral_yon close math.abs(close kral_sar) : close math.abs(close kral_sar)

    // ─────────────────────────────────────────────────────────────────
    //  4. GΦRSELLEήTέRME VE MUM RENKLERέ
    // ─────────────────────────────────────────────────────────────────
    color col_ana  kral_yon color.lime color.red
    color col_ayna 
    kral_yon color.new(color.lime40) : color.new(color.red40)

    // Mumlarύ yφn deπiώimine gφre boya
    barcolor(col_ana)

    // Ana SAR (Stop noktasύ - Daireler)
    plot(kral_sartitle="Kral SAR"color=col_anastyle=plot.style_circleslinewidth=2)

    // έkiz Ayna (Φncό Hedef Ηizgisi)
    plot(kral_aynatitle="Ayna (Hedef)"color=col_aynastyle=plot.style_linelinewidth=1)

    // (Aέ) έmza - Operasyon Gόvenliπi
    var table ytd_table table.new(position.bottom_center11)
    if 
    barstate.islast
        table
    .cell(ytd_table00"(Aέ) Eπitim ηalύώmasύdύr. Yatύrύm tavsiyesi KULLANILAMAZ."text_color=color.new(color.white0), text_size=size.normal
    16.07.2024 - 10.12.2024

  7. PHP Code:
    //@version=6
    indicator("Titan: AO-SAR Hibrit"overlay=true)

    // ─────────────────────────────────────────────────────────────────
    //  1. BEST O (AO) HESAPLAMASI VE MUM BOYAMA
    // ─────────────────────────────────────────────────────────────────
    // Kullanύcύnύn belirttiπi 5 ve 45 periyotlu AO mantύπύ
    ao ta.sma(hl25) - ta.sma(hl245)

    // AO έvmesine gφre renk belirleme (Yόkseliyorsa Yeώil, Dόώόyorsa Kύrmύzύ)
    ao_color ta.change(ao) <= color.red color.green

    // Mumlarύ AO ivmesine gφre boya
    barcolor(ao_color)

    // ─────────────────────────────────────────────────────────────────
    //  2. TRIPLE SAR (άΗLά TAKTέK VέTES)
    // ─────────────────────────────────────────────────────────────────
    // Kullanύcύnύn belirttiπi sabit deπerlerle Triple SAR motoru
    roSarSlow     ta.sar(0.010.010.2)
    roSarModerate ta.sar(0.010.020.2)
    roSarFast     ta.sar(0.010.030.2)

    // SAR Seviyelerini fiyata "Cross" (Haη) stiliyle iώle
    plot(roSarSlow,     "Slow SAR",     color=color.blue,  linewidth=2style=plot.style_cross)
    plot(roSarModerate"Moderate SAR"color=color.greenlinewidth=2style=plot.style_cross)
    plot(roSarFast,     "Fast SAR",     color=color.red,   linewidth=2style=plot.style_cross)

    // ─────────────────────────────────────────────────────────────────
    //  3. GΦRSEL BέLGέ (OPSέYONEL)
    // ─────────────────────────────────────────────────────────────────
    // AO'nun gφrsel takibi iηin kόηόk daireler (Orijinal koddaki stil)
    // Not: Overlay=true olduπu iηin bu daireler fiyatύn altύnda/όstόnde gφrόnecektir.
    plot(ao close"AO Trend έvmesi"color=ao_colorstyle=plot.style_circleslinewidth=1display=display.none
    16.07.2024 - 10.12.2024

  8. PHP Code:
    //@version=6
    indicator("Yφrόk [Fraktal Mum Projeksiyonu]"overlay=true)

    // ─────────────────────────────────────────────────────────────────
    //  1. OTONOM ZAMAN DέLέMέ (SABέT BELLEK KέLέDέ)
    // ─────────────────────────────────────────────────────────────────
    // Ηarpanlar ve Zύrh ana uzunluπu
    simple int z_len = switch timeframe.period
        
    "1"   => 34
        
    "3"   => 21
        
    "5"   => 13
        
    "15"  => 8
        
    "60"  => 5
        
    "240" => 3
        
    => 2

    // ─────────────────────────────────────────────────────────────────
    //  2. 7 KATMANLI FRAKTAL MATRέS (HMA vs ALMA)
    // ─────────────────────────────────────────────────────────────────
    src hlc3

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

    // Fraktal Fibonacci Katmanlarύ
    ao1 f_titan_dalga(256)
    ao2 f_titan_dalga(358)
    ao3 f_titan_dalga(560)
    ao4 f_titan_dalga(863)
    ao5 f_titan_dalga(1368)
    ao6 f_titan_dalga(2176)
    ao7 f_titan_dalga(3489)

    // ─────────────────────────────────────────────────────────────────
    //  3. SάPERPOZέSYON (MASTER DALGA) VE KέNETέK EVRELER
    // ─────────────────────────────────────────────────────────────────
    // 7 Katmanύn toplam gόcό
    float master_wave = (ao1 ao2 ao3 ao4 ao5 ao6 ao7) / 7

    // Master Dalga'nύn 4 Kinetik Evresi
    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]

    // Kinetik Renk Paleti (Mumlar iηin)
    color dalga_rengi guclu_boga color.new(#00ffaa, 0) : yorulan_boga ? color.new(#0530f2, 0) : guclu_ayi ? color.new(#ff0055, 0) : yorulan_ayi ? color.new(#eded04, 0) : color.gray

    // ─────────────────────────────────────────────────────────────────
    //  4. FέYATA PROJEKSέYON (MUM BOYAMA VE OMURGA)
    // ─────────────────────────────────────────────────────────────────
    // Bόtόn zekβyύ mumlarύn gφvdesine aktarύyoruz
    barcolor(dalga_rengi)

    // Fiyatύn ortasύndan geηen referans Gauss Zύrhύ (Trendi gφrsel tutmak iηin)
    omurga ta.alma(src550.856)
    plot(omurga"Titan Omurga"color=color.new(dalga_rengi20), linewidth=3)

    // ─────────────────────────────────────────────────────────────────
    //  5. KESKέN NέήANCI TETέΠέ (7 KATMAN ONAYI)
    // ─────────────────────────────────────────────────────────────────
    // 7 katman aynύ anda yφn deπiώtirdiπinde ekrana tek bir atύώ oku bύrakύr
    bool hepsi_yukari = (ao1 ao1[1]) and (ao2 ao2[1]) and (ao3 ao3[1]) and (ao4 ao4[1]) and (ao5 ao5[1]) and (ao6 ao6[1]) and (ao7 ao7[1])
    bool hepsi_asagi  = (ao1 ao1[1]) and (ao2 ao2[1]) and (ao3 ao3[1]) and (ao4 ao4[1]) and (ao5 ao5[1]) and (ao6 ao6[1]) and (ao7 ao7[1])

    var 
    int kilit_durumu 
    bool al_tetik  
    false
    bool sat_tetik 
    false

    if hepsi_yukari and kilit_durumu != 1
        al_tetik 
    := true
        kilit_durumu 
    := 1

    if hepsi_asagi and kilit_durumu != -1
        sat_tetik 
    := true
        kilit_durumu 
    := -1

    plotshape
    (al_tetik,  "Tam Ahenk (AL)",  style=shape.triangleup,   location=location.belowbarcolor=#00ffaa, size=size.small, text="L", textcolor=#00ffaa)
    plotshape(sat_tetik"Tam Ahenk (SAT)"style=shape.triangledownlocation=location.abovebarcolor=#ff0055, size=size.small, text="S", textcolor=#ff0055) 
    16.07.2024 - 10.12.2024

Sayfa 395/400 έlkέlk ... 295345385393394395396397 ... 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
  •