Sayfa 296/296 İlkİlk ... 196246286294295296
Arama sonucu : 2368 madde; 2,361 - 2,368 arası.

Konu: Tradingview

  1.  Alıntı Originally Posted by @yörük@ Yazıyı Oku
    https://www.tradingview.com/x/FodwBC1n/

    115k altında 112k potada....
    eğer 112k kırılırsa....
    96k-103k arasında dönüş işareti aranır gibi...
    dikkatli olmak lazım....
    16.07.2024 - 10.12.2024


  2. not aynı...görünüm değişmez diyorlar...
    16.07.2024 - 10.12.2024

  3. 16.07.2024 - 10.12.2024

  4. yedekleme ilerdeki çalışma için....
    HTML Kod:
    //@version=6
    indicator(title = 'Sar Döngüler', shorttitle = '.', overlay = true,  max_lines_count = 500, max_labels_count=500)
    
    ///////ilk üçlü hızlı olan sar döngüleridir////////////////
    renk = input(true)
    ju1 = ta.sar(0.09, 0.002, 0.1)
    plot(ju1, title = '1', style = plot.style_circles, color = renk ? ju1 > low ? color.rgb(255, 255, 255) : color.rgb(255, 255, 255) :color.silver, linewidth = 2)
    
    ju2 = ta.sar(0.05, 0.02, 0.1)
    plot(ju2, title = '2', style = plot.style_circles, color = renk ? ju2 > low ? color.rgb(255, 255, 255) : color.rgb(255, 255, 255) :color.silver, linewidth = 2)
    
    ju3 = ta.sar(0.02, 0.2, 0.1)
    plot(ju3, title = '3', style = plot.style_circles, color = renk ? ju3 > low ? color.rgb(255, 255, 255) : color.rgb(255, 255, 255) :color.silver, linewidth = 2)
    ///////////orta hızlı sar döngülerin hesaplamasıdır//////////////
    uj1 = ta.sar(0*0.1, 0.9*0.1, 0.2*1)
    uj2 = ta.sar(0*0.1, 0.09*0.1, 0.2*1)
    uj3 = ta.sar(0.2*0.1, 0.2*0.1, 0.2*1)
    
    plot(uj1, title = '4', style = plot.style_cross, color = renk ? uj1 > low ? color.rgb(255, 0, 0) : color.rgb(255, 0, 0) :color.silver, linewidth = 2)
    plot(uj2, title = '5', style = plot.style_cross, color = renk ? uj2 > low ? color.rgb(255, 0, 0) : color.rgb(255, 0, 0) : color.silver, linewidth = 2)
    plot(uj3, title = '6', style = plot.style_cross, color = renk ? uj3 > low ? color.rgb(255, 0, 0) : color.rgb(255, 0, 0) : color.silver, linewidth = 2)
    
    ///////yavaş döngülü sar hesaplamasıır//////////
    op1 = ta.sar(0.02*0.1, 0.2*0.1, 0.2*1)
    plot(op1, title = '7', style = plot.style_stepline_diamond, color = renk ? op1 > low ? color.rgb(0, 0, 0) : color.rgb(0, 0, 0) : color.silver, linewidth = 1)
    op2 = ta.sar(0.02*0.1, 0.2*0.01, 0.2*1)
    plot(op2, "8", style=plot.style_stepline_diamond,  color = renk ? op2 > low ? color.rgb(0, 0, 0) : color.rgb(0, 0, 0) :color.silver, linewidth = 1)
    op3 = ta.sar(0*0.1, 0.02*0.1, 0.2*1)
    plot(op3, title = '9', style = plot.style_stepline_diamond, color = renk ? op3 > low ? color.rgb(0, 0, 0) : color.rgb(0, 0, 8) : color.silver, linewidth = 1)
    /////////////////////////////////////////////////////////////////////MTF SAR HESAPLAMASIDIR///////////////
    out789 = ta.sar(0.02*0.1, 0.02*0.1, 0.2*1)
    plot(out789, "12", style=plot.style_cross, color=color.rgb(90, 131, 245, 100))
    
    psar1 = ta.sar(0.09, 0.2, 0.2)
    psar_long1 = high[1] < psar1[2] and high >= psar1[1]
    psar_short1 = low[1] > psar1[2] and low <= psar1[1]
    plot(psar1, title="10", style = plot.style_cross, color = low <= psar1[1] and not psar_long1 ? color.red : color.white, linewidth = 3)
    
    psar12 = ta.sar(0.09, 0.02, 0.2)
    psar_long12 = high[1] < psar12[2] and high >= psar12[1]
    psar_short12 = low[1] > psar12[2] and low <= psar12[1]
    plot(psar12, title="11", style = plot.style_cross, color = low <= psar12[1] and not psar_long12 ? color.red : color.white, linewidth = 3)
    
    psar123 = ta.sar(0.09, 0.002, 0.2)
    psar_long123 = high[1] < psar123[2] and high >= psar123[1]
    psar_short123 = low[1] > psar123[2] and low <= psar123[1]
    16.07.2024 - 10.12.2024

  5. özel çalışma...özel ilişkilendirme içermektedir ve gözden geçirmesi yapılacak.....yedekleme....
    HTML Kod:
    //@version=6
    indicator('.', overlay = true)
    ehad = input(true, title = 'Renklendirme')
    /////verisi kullanılacak sistemler...indikatörler.....
    
    
    /////veri...
    //Functions Sar for support and resistance
    q3 = ta.sar(0.01, 0.01, 0.1)
    q2 = ta.sar(0.01, 0.03, 0.3)
    q1 = ta.sar(0.01, 0.05, 0.5)
    
    //hesaplanan veriyi zaman döngüsüne aktarma.....
    fatiha = q3
    kadir = q2
    velasr = q1
    
    /////tüm zaman döngülerinin tanımı.....
    //İnned dîne indâllâhil İslâm...Ali-İmran 19.ayet
    bakara = input.timeframe('1', title = 'Periyot')
    aliimran = input.timeframe('3', title = 'Periyot')
    nisa = input.timeframe('5', title = 'Periyot')
    maide = input.timeframe('15', title = 'Periyot')
    enam = input.timeframe('30', title = 'Periyot')
    araf = input.timeframe('45', title = 'Periyot')
    enfal = input.timeframe('60', title = 'Periyot')
    tevbe = input.timeframe('120', title = 'Periyot')
    yunus = input.timeframe('180', title = 'Periyot')
    hud = input.timeframe('240', title = 'Periyot')
    yusuf = input.timeframe('D', title = 'Periyot')
    rad = input.timeframe('W', title = 'Periyot')
    ibrahim = input.timeframe('M', title = 'Periyot')
    hicr = input.timeframe('3M', title = 'Periyot')
    nahl = input.timeframe('12M', title = 'Periyot')
    
    // Security 1 veriyi zaman döngüsünde hesaplatma...
    isra = request.security(syminfo.tickerid, bakara, fatiha)
    kehf = request.security(syminfo.tickerid, aliimran, fatiha)
    meryem = request.security(syminfo.tickerid, nisa, fatiha)
    taha = request.security(syminfo.tickerid, maide, fatiha)
    enbiya = request.security(syminfo.tickerid, enam, fatiha)
    hac = request.security(syminfo.tickerid, araf, fatiha)
    muminun = request.security(syminfo.tickerid, enfal, fatiha)
    nur = request.security(syminfo.tickerid, tevbe, fatiha)
    furkan = request.security(syminfo.tickerid, yunus, fatiha)
    suara = request.security(syminfo.tickerid, hud, fatiha)
    neml = request.security(syminfo.tickerid, yusuf, fatiha)
    kasas = request.security(syminfo.tickerid, rad, fatiha)
    ankebut = request.security(syminfo.tickerid, ibrahim, fatiha)
    rum = request.security(syminfo.tickerid, hicr, fatiha)
    lokman = request.security(syminfo.tickerid, nahl, fatiha)
    
    //Signal...1veri zaman döngüsü sinyalleri hesapla ve çizdir
    tegabun = isra
    plot(tegabun, title = '1-Anlık', style = plot.style_stepline, color = ehad ? isra > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 2)
    
    talak = (isra + kehf + meryem) / 3
    //plot(talak, title='1.Veri-5DakikayaDöngü', style=plot.style_stepline, color=ehad ? isra > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth=2)
    
    tahrim = (isra + kehf + meryem + taha) / 4
    //plot(tahrim, title='1.Veri-15DakikayaDöngü', style=plot.style_stepline, color=ehad ? isra > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth=2)
    
    mulk = (isra + kehf + meryem + taha + enbiya + hac + muminun) / 7
    plot(mulk, title = '1-Saatlik', style = plot.style_stepline, color = ehad ? isra > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 2)
    
    kalem = (isra + kehf + meryem + taha + enbiya + hac + muminun + nur + furkan + suara + neml) / 11
    plot(kalem, title = '1-Günlük', style = plot.style_stepline, color = ehad ? isra > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 2)
    
    hakka = (isra + kehf + meryem + taha + enbiya + hac + muminun + nur + furkan + suara + neml + kasas) / 12
    plot(hakka, title = '1-Haftalık', style = plot.style_stepline, color = ehad ? isra > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 2)
    
    mearic = (isra + kehf + meryem + taha + enbiya + hac + muminun + nur + furkan + suara + neml + kasas + ankebut) / 13
    //plot(mearic, title='1.Veri-AyaDöngü', style=plot.style_stepline, color=ehad ? isra > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth=2)
    
    nuh = (isra + kehf + meryem + taha + enbiya + hac + muminun + nur + furkan + suara + neml + kasas + ankebut + rum) / 14
    //plot(nuh, title='1.Veri-ÜçAyaDöngü', style=plot.style_stepline, color=ehad ? isra > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth=2)
    
    cin = (isra + kehf + meryem + taha + enbiya + hac + muminun + nur + furkan + suara + neml + kasas + ankebut + rum + lokman) / 15
    //plot(cin, title='1.Veri-YılaDöngü', style=plot.style_stepline, color=ehad ? isra > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth=2)
    
    // 2.veriyi zamanda döndürme
    secde = request.security(syminfo.tickerid, bakara, kadir)
    ahzab = request.security(syminfo.tickerid, aliimran, kadir)
    sebe = request.security(syminfo.tickerid, nisa, kadir)
    fatir = request.security(syminfo.tickerid, maide, kadir)
    yasin = request.security(syminfo.tickerid, enam, kadir)
    saffat = request.security(syminfo.tickerid, araf, kadir)
    sad = request.security(syminfo.tickerid, enfal, kadir)
    zumer = request.security(syminfo.tickerid, tevbe, kadir)
    mumin = request.security(syminfo.tickerid, yunus, kadir)
    fussilet = request.security(syminfo.tickerid, hud, kadir)
    sura = request.security(syminfo.tickerid, yusuf, kadir)
    zuhruf = request.security(syminfo.tickerid, rad, kadir)
    duhan = request.security(syminfo.tickerid, ibrahim, kadir)
    casiye = request.security(syminfo.tickerid, hicr, kadir)
    ahkaf = request.security(syminfo.tickerid, nahl, kadir)
    
    ///2veri
    muzzemmil = secde
    plot(muzzemmil, title = '2-Anlık', style = plot.style_stepline, color = ehad ? secde > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 2)
    
    muddesir = (secde + ahzab + sebe) / 3
    //plot(muddesir, title='2.Veri-5DakikayaDöngü', style=plot.style_stepline, color=ehad ? isra > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth=2)
    
    kiyamet = (secde + ahzab + sebe + fatir) / 4
    //plot(kiyamet, title='2.Veri-15DakikayaDöngü', style=plot.style_stepline, color=ehad ? isra > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth=2)
    
    insan = (secde + ahzab + sebe + fatir + yasin + saffat + sad) / 7
    plot(insan, title = '2-Saatlik', style = plot.style_stepline, color = ehad ? isra > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 2)
    
    murselat = (secde + ahzab + sebe + fatir + yasin + saffat + sad + zumer + mumin + fussilet + sura) / 11
    plot(murselat, title = '2-Günlük', style = plot.style_stepline, color = ehad ? isra > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 2)
    
    nebe = (secde + ahzab + sebe + fatir + yasin + saffat + sad + zumer + mumin + fussilet + sura + zuhruf) / 12
    plot(nebe, title = '2-Haftalık', style = plot.style_stepline, color = ehad ? isra > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 2)
    
    naziat = (secde + ahzab + sebe + fatir + yasin + saffat + sad + zumer + mumin + fussilet + sura + zuhruf + duhan) / 13
    //plot(naziat, title='2.Veri-AyaDöngü', style=plot.style_stepline, color=ehad ? isra > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth=2)
    
    abese = (secde + ahzab + sebe + fatir + yasin + saffat + sad + zumer + mumin + fussilet + sura + zuhruf + duhan + casiye) / 14
    //plot(abese, title='2.Veri-ÜçAyaDöngü', style=plot.style_stepline, color=ehad ? isra > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth=2)
    
    tekvir = (secde + ahzab + sebe + fatir + yasin + saffat + sad + zumer + mumin + fussilet + sura + zuhruf + duhan + casiye + ahkaf) / 15
    //plot(tekvir, title='2.Veri-YılaDöngü', style=plot.style_stepline, color=ehad ? isra > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth=2)
    
    
    // Security3.veriyi zamanda döndürme...
    fetih = request.security(syminfo.tickerid, bakara, velasr)
    hucurat = request.security(syminfo.tickerid, aliimran, velasr)
    kaf = request.security(syminfo.tickerid, nisa, velasr)
    zariyat = request.security(syminfo.tickerid, maide, velasr)
    tur = request.security(syminfo.tickerid, enam, velasr)
    necm = request.security(syminfo.tickerid, araf, velasr)
    kamer = request.security(syminfo.tickerid, enfal, velasr)
    vakia = request.security(syminfo.tickerid, tevbe, velasr)
    hadid = request.security(syminfo.tickerid, yunus, velasr)
    mucadele = request.security(syminfo.tickerid, hud, velasr)
    hasr = request.security(syminfo.tickerid, yusuf, velasr)
    mumtehine = request.security(syminfo.tickerid, rad, velasr)
    saf = request.security(syminfo.tickerid, ibrahim, velasr)
    cuma = request.security(syminfo.tickerid, hicr, velasr)
    munafik = request.security(syminfo.tickerid, nahl, velasr)
    
    /////3.veri...bilgiler...
    infitar = fetih
    plot(infitar, title = '3-Anlık', style = plot.style_stepline, color = ehad ? fetih > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 2)
    
    mutaffifin = (fetih + hucurat + kaf) / 3
    //plot(mutaffifin, title='3.Veri-5DakikayaDöngü', style=plot.style_stepline, color=ehad ? fetih > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth=2)
    
    insikak = (fetih + hucurat + kaf + zariyat) / 4
    //plot(insikak, title='3.Veri-15DakikayaDöngü', style=plot.style_stepline, color=ehad ? fetih > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth=2)
    
    buruc = (fetih + hucurat + kaf + zariyat + tur + necm + kamer) / 7
    plot(buruc, title = '3-Saatlik', style = plot.style_stepline, color = ehad ? fetih > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 2)
    
    tarik = (fetih + hucurat + kaf + zariyat + tur + necm + kamer + vakia + hadid + mucadele + hasr) / 11
    plot(tarik, title = '3-Günlük', style = plot.style_stepline, color = ehad ? fetih > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 2)
    
    ala = (fetih + hucurat + kaf + zariyat + tur + necm + kamer + vakia + hadid + mucadele + hasr + mumtehine) / 12
    plot(ala, title = '3-Haftalık', style = plot.style_stepline, color = ehad ? fetih > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 2)
    
    gasiye = (fetih + hucurat + kaf + zariyat + tur + necm + kamer + vakia + hadid + mucadele + hasr + mumtehine + saf) / 13
    //plot(gasiye, title='3.Veri-AyaDöngü', style=plot.style_stepline, color=ehad ? fetih > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth=2)
    
    fecr = (fetih + hucurat + kaf + zariyat + tur + necm + kamer + vakia + hadid + mucadele + hasr + mumtehine + saf + cuma) / 14
    //plot(fecr, title='3.Veri-ÜçayaDöngü', style=plot.style_stepline, color=ehad ? fetih > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth=2)
    
    beled = (fetih + hucurat + kaf + zariyat + tur + necm + kamer + vakia + hadid + mucadele + hasr + mumtehine + saf + cuma + munafik) / 15
    //plot(beled, title='3.Veri-YılaDöngü', style=plot.style_stepline, color=ehad ? fetih > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth=2)
    
    /////////////////
    plot(q3, title = 'UV-Sar', style = plot.style_circles, color = ehad ? isra > close ? color.rgb(2, 250, 238) : color.rgb(250, 225, 3) : color.silver, linewidth = 1)
    plot(q2, title = 'OV-Sar', style = plot.style_circles, color = ehad ? isra > close ? color.rgb(2, 250, 238) : color.rgb(250, 225, 3) : color.silver, linewidth = 1)
    plot(q1, title = 'KV-Sar', style = plot.style_circles, color = ehad ? isra > close ? color.rgb(2, 250, 238) : color.rgb(250, 225, 3) : color.silver, linewidth = 1)
    //Signal
    //Signal
    bcolor = ta.crossunder(close[1], q1) ? color.red : ta.crossover(close[1], q1) ? color.green : q1[1] > q3 ? color.green : q1[1] < q3 ? color.red : color.rgb(216, 4, 253) // : color.black 
    barcolor(bcolor)
    16.07.2024 - 10.12.2024

  6. sadeleme ve kontrol edilecek....yedekleme...

    HTML Kod:
    //@version=6
    indicator(title = 'yörük', shorttitle = '.', overlay = true, max_lines_count = 100, max_labels_count=100, max_boxes_count = 100, max_bars_back = 100)
    //@version=6
    var table logo = table.new(position.bottom_center, 1, 1)
    if barstate.islast
        table.cell(logo, 0, 0, '@yörük@', text_size = size.normal, text_color = color.rgb(218, 241, 5))
    ///////////////////atr hesaplaması///////////////////////////////////////////////////////
    var params = "Parameters"
    src55 = nz(input.source(close, title = "Source", group = params))
    len55 = input.int(5, title = "ATR Len", group = params)
    multi55 = input.float(1.5, title = "Multi", step = 0.25, minval = 0, group = params)
    
    var cols = "Colors"
    up_col = input.color(color.rgb(255, 255, 255, 00), title = "Yükseliş", group = cols)
    down_col = input.color(color.rgb(247, 3, 3), title = "DÜşüş", group = cols)
    flat_col = input.color(color.rgb(249, 249, 5), title = "Flat ", inline = "3", group = cols)
    
    rope_smoother(float _src55, float _threshold) =>
    
        var float _rope = _src55
    
        _move = _src55 - _rope //Movement from Rope
    
        _rope += math.max(math.abs(_move) - nz(_threshold), 0) * math.sign(_move) //Directional Movement beyond the Threshold
        
        [_rope,_rope+_threshold,_rope-_threshold] //[Rope, Upper, Lower]
    
    ///_____________________________________________________________________________________________________________________
    
    //Calculating Rope
    atr99 = ta.atr(len55)*multi55
    
    [rope,upper,lower] = rope_smoother(src55,atr99)
    
    //Directional Detection
    var dir = 0
    
    dir := rope > rope[1] ? 1 : rope < rope[1] ? -1 : dir
    
    if ta.cross(src55,rope)
        dir := 0
    
    //Directional Color Assignment    
    col = dir > 0 ? up_col : dir < 0 ? down_col : flat_col
    
    //High and Low Output Lines
    var float c_hi = na
    var float c_lo = na
    
    //Counters for Accumulating Averages
    var float h_sum = 0
    var float l_sum = 0
    var int c_count = 0
    
    //Flip-Flop
    var ff = 1
    
    if dir == 0
    
        if dir[1] != 0
            h_sum := 0
            l_sum := 0
            c_count := 0
            ff := ff * -1
    
        h_sum += upper
        l_sum += lower
        c_count += 1
        c_hi := h_sum/c_count
        c_lo := l_sum/c_count
    
    ///
    plot(rope, linewidth = 2, color = col, title = "ATR1", force_overlay = true)
    
    ////////////////////////////////
    
    src5566 = nz(input.source(close, title = "Source", group = params))
    len5566 = input.int(5, title = "ATR Len", group = params)
    multi5566 = input.float(5.5, title = "Multi", step = 0.25, minval = 0, group = params)
    
    
    
    rope_smoother66(float _src5566, float _threshold) =>
    
        var float _rope = _src5566
    
        _move = _src5566 - _rope //Movement from Rope
    
        _rope += math.max(math.abs(_move) - nz(_threshold), 0) * math.sign(_move) //Directional Movement beyond the Threshold
        
        [_rope,_rope+_threshold,_rope-_threshold] //[Rope, Upper, Lower]
    
    ///_____________________________________________________________________________________________________________________
    
    //Calculating Rope
    atr9966 = ta.atr(len5566)*multi5566
    
    [rope66,upper66,lower66] = rope_smoother66(src5566,atr9966)
    
    //Directional Detection
    var dir66 = 0
    
    dir66 := rope66 > rope66[1] ? 1 : rope66 < rope66[1] ? -1 : dir66
    
    if ta.cross(src5566,rope66)
        dir66 := 0
    
    //Directional Color Assignment    
    col66 = dir66 > 0 ? up_col : dir66 < 0 ? down_col : flat_col
    
    //High and Low Output Lines
    var float c_hi66 = na
    var float c_lo66 = na
    
    //Counters for Accumulating Averages
    var float h_sum66 = 0
    var float l_sum66 = 0
    var int c_count66 = 0
    
    //Flip-Flop
    var ff66 = 1
    
    if dir66 == 0
    
        if dir66[1] != 0
            h_sum66 := 0
            l_sum66 := 0
            c_count66 := 0
            ff66 := ff66 * -1
    
        h_sum66 += upper66
        l_sum66 += lower66
        c_count66 += 1
        c_hi66 := h_sum66/c_count66
        c_lo66 := l_sum66/c_count66
    
    ///
    plot(rope66, linewidth = 2, color = col66, title = "ATR2", force_overlay = true)
    ///////////////////////////////////////////
    
    src556677 = nz(input.source(close, title = "Source", group = params))
    len556677 = input.int(5, title = "ATR Len", group = params)
    multi556677 = input.float(10.5, title = "Multi", step = 0.25, minval = 0, group = params)
    
    
    
    rope_smoother6677(float _src556677, float _threshold) =>
    
        var float _rope = _src556677
    
        _move = _src556677 - _rope //Movement from Rope
    
        _rope += math.max(math.abs(_move) - nz(_threshold), 0) * math.sign(_move) //Directional Movement beyond the Threshold
        
        [_rope,_rope+_threshold,_rope-_threshold] //[Rope, Upper, Lower]
    
    ///_____________________________________________________________________________________________________________________
    
    //Calculating Rope
    atr996677 = ta.atr(len556677)*multi556677
    
    [rope6677,upper6677,lower6677] = rope_smoother66(src556677,atr996677)
    
    //Directional Detection
    var dir6677 = 0
    
    dir6677 := rope6677 > rope6677[1] ? 1 : rope6677 < rope6677[1] ? -1 : dir6677
    
    if ta.cross(src556677,rope6677)
        dir6677 := 0
    
    //Directional Color Assignment    
    col6677 = dir6677 > 0 ? up_col : dir6677 < 0 ? down_col : flat_col
    
    //High and Low Output Lines
    var float c_hi6677 = na
    var float c_lo6677 = na
    
    //Counters for Accumulating Averages
    var float h_sum6677 = 0
    var float l_sum6677 = 0
    var int c_count6677 = 0
    
    //Flip-Flop
    var ff6677 = 1
    
    if dir6677 == 0
    
        if dir6677[1] != 0
            h_sum6677 := 0
            l_sum6677 := 0
            c_count6677 := 0
            ff6677 := ff6677 * -1
    
        h_sum6677 += upper6677
        l_sum6677 += lower6677
        c_count66 += 1
        c_hi6677 := h_sum6677/c_count6677
        c_lo6677 := l_sum6677/c_count6677
    
    ///
    plot(rope6677, linewidth = 2, color = col6677, title = "ATR3", force_overlay = true)
    //////////////////////////////////////
    zx1= ta.sar(0.2, 0.02, 0.2)
    zx2= ta.sar(0.02, 0.04, 0.2)
    zx3= ta.sar(0.02, 0.02, 0.2)
    zx4= ta.sar(0.02, 0.09, 0.01)
    zx5= ta.sar(0.01, 0.03, 0.2)
    zx6= ta.sar(0.01, 0.04, 0.4)
    zx7= ta.sar(0.01, 0.05, 0.5)
    zx8 = ta.sar(0.01, 0.03, 0.03)
    zx9 = ta.sar(0.01, 0.04, 0.04)
    zx10 = ta.sar(0.01, 0.06, 0.05)
    zx11= ta.sar(0., 0.9, 0.1)
    zx12= ta.sar(0.02, 0.2, 0.02)
    
    plot(zx1, title = 'X1', style = plot.style_cross, color = color.white,  linewidth = 2)
    plot(zx2, title = 'X3', style = plot.style_cross, color = color.white,  linewidth = 2)
    plot(zx3, title = 'Y2', style = plot.style_cross, color = color.lime,  linewidth = 2)
    plot(zx4, title = 'Z4', style = plot.style_cross, color = color.fuchsia,  linewidth = 2)
    plot(zx5, title = 'Y1', style = plot.style_cross, color = color.lime,  linewidth = 2)
    plot(zx6, title = 'X4', style = plot.style_cross, color = color.white,  linewidth = 2)
    plot(zx7, title = 'X2', style = plot.style_cross, color = color.white,  linewidth = 2)
    plot(zx8, title = 'Z2', style = plot.style_cross, color = color.fuchsia, linewidth = 2)
    plot(zx9, title = 'Z1', style = plot.style_cross, color = color.fuchsia, linewidth = 2)
    plot(zx10, title = 'Y4', style = plot.style_cross, color = color.lime, linewidth = 2)
    plot(zx11, title = 'Y3', style = plot.style_cross, color = color.lime, linewidth = 2)
    plot(zx12, title = 'Z3', style = plot.style_cross, color = color.fuchsia, linewidth = 2)
    
    mft123=(zx3+zx5+zx10+zx11)/4
    plot(mft123, title = 'SarYOrt', style = plot.style_cross, color = color.lime,  linewidth = 2)
    
    mft12=(zx4+zx8+zx9+zx12)/4
    plot(mft12, title = 'SarZOrt', style = plot.style_cross, color = color.fuchsia,  linewidth = 2)
    
    mft1=(zx1+zx2+zx6+zx7)/4
    plot(mft1, title = 'SarXOrt', style = plot.style_cross, color = color.white,  linewidth = 2)
    
    mft16=(zx1+zx2+zx6+zx7+zx4+zx8+zx9+zx12)/8
    plot(mft16, title = 'SarXZOrt', style = plot.style_cross, color = color.orange,  linewidth = 2)
    
    mft=(zx1+zx2+zx3+zx4+zx5+zx6+zx7+zx8+zx9+zx10+zx11+zx12)/12
    plot(mft, title = 'SarORT', style = plot.style_circles, color = color.blue,  linewidth = 3)
    ///////////////////////////////////////////////////////////////sar ile bar renklendirme/////////
    //@version=6
    
    // —————————————————————————————————————————
    f_colorNew(_color, _transp) =>
        var _r = color.r(_color)
        var _g = color.g(_color)
        var _b = color.b(_color)
        color _return = color.rgb(_r, _g, _b, _transp)
        _return
    
    
    //automatic higher timeframe chooser
    f_autoHTF(str) =>
        str == '1S' or str == '5S' or str == '10S' or str == '15S' or str == '20S' or str == '30S' or str == '40S' or str == '45S' or str == '50S' ? '1' : str == '1' or str == '2' or str == '3' or str == '4' ? '5' : str == '5' or str == '10' ? '15' : str == '15' or str == '20' ? '30' : str == '30' or str == '45' or str == '50' ? '60' : str == '60' or str == '90' or str == '100' ? '120' : str == '120' or str == '180' ? '240' : str == '240' ? 'D' : str == 'D' ? 'W' : str == 'W' ? '2W' : 'M'
    var string ticker = syminfo.tickerid
    var string tfp = timeframe.period
    htf1 = f_autoHTF(tfp)
    htf2 = f_autoHTF(htf1)
    htf3 = f_autoHTF(htf2)
    htf4 = f_autoHTF(htf3)
    
    f_security(_sym, _res, _src, _rep) =>
        request.security(_sym, _res, _src[not _rep and barstate.isrealtime ? 1 : 0])[_rep or barstate.isrealtime ? 0 : 1]
    
    //PSAR inputs
    grpin = '⚙=====-----'
    grpout = '-----=====⚙'
    grpPSAR = grpin + 'Dual PSAR Options:' + grpout
    colorBull = input.color(defval = #f6f8fa, group = grpPSAR, title = 'Bullish Color') //Light Blue
    colorBear = input.color(defval = #fc0707, group = grpPSAR, title = 'Bearish Color') //yellow
    colorWait = input.color(defval = color.rgb(241, 191, 9), group = grpPSAR, title = 'Wait Color') //grey
    showRecolorCandles = input.bool(true, 'Show Trend Full-Candle Recoloring?', group = grpPSAR, tooltip = 'Recolor the full candle including wick and border with trend color.')
    psar_start = input.float(defval = 0., group = grpPSAR, title = 'PSAR: Start', minval = 0., maxval = 2, step = 0.01)
    psar_accel = input.float(defval = 0.1, group = grpPSAR, title = 'PSAR: Acceleration  Factor', minval = 0.01, maxval = 2, step = 0.01)
    psar_maximum = input.float(defval = 0.9, group = grpPSAR, title = 'PSAR: Extreme Point', minval = 0.01, maxval = 2)
    
    
    f_psar() =>
        ta.sar(psar_start, psar_accel, psar_maximum)
    
    psar_ctf = f_psar()
    psar_htf = f_security(ticker, htf1, f_psar(), false)
    
    
    longZone = psar_ctf < low and psar_htf < low
    shortZone = psar_ctf > high and psar_htf > high
    waitZone = not longZone and not shortZone
    
    trendSupportColor = longZone ? colorBull : shortZone ? colorBear : colorWait
    plotcandle(showRecolorCandles ? open : na, high, low, close, color = trendSupportColor, wickcolor = trendSupportColor, bordercolor = trendSupportColor, title = 'BAR')
    barcolor(trendSupportColor)
    
    //@version=6
    //resolution
    x1 = input.timeframe('1', title = 'Resolution')
    x3 = input.timeframe('3', title = 'Resolution')
    x5 = input.timeframe('5', title = 'Resolution')
    x15 = input.timeframe('15', title = 'Resolution')
    x30 = input.timeframe('30', title = 'Resolution')
    x45 = input.timeframe('45', title = 'Resolution')
    x60 = input.timeframe('60', title = 'Resolution')
    x120 = input.timeframe('120', title = 'Resolution')
    x180 = input.timeframe('180', title = 'Resolution')
    x240 = input.timeframe('240', title = 'Resolution')
    x720 = input.timeframe('D', title = 'Resolution')
    //output functions
    z = ta.sar(0., 0.1, 0.9)
    // Security
    y1 = request.security(syminfo.tickerid, x1, z)
    y3 = request.security(syminfo.tickerid, x3, z)
    y5 = request.security(syminfo.tickerid, x5, z)
    y15 = request.security(syminfo.tickerid, x15, z)
    y30 = request.security(syminfo.tickerid, x30, z)
    y45 = request.security(syminfo.tickerid, x45, z)
    y60 = request.security(syminfo.tickerid, x60, z)
    y120 = request.security(syminfo.tickerid, x120, z)
    y180 = request.security(syminfo.tickerid, x180, z)
    y240 = request.security(syminfo.tickerid, x240, z)
    y720 = request.security(syminfo.tickerid, x720, z)
    //Plots
    xz = input(true, title = 'Adaptive Coloring')
    plot(y1, title = '1DAK', style = plot.style_circles, color = xz ? y1 > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 1)
    plot(y3, title = '3DAK', style = plot.style_circles, color = xz ? y3 > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 1)
    plot(y5, title = '5DAK', style = plot.style_circles, color = xz ? y5 > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 1)
    plot(y15, title = '15DAK', style = plot.style_circles, color = xz ? y15 > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 1)
    plot(y30, title = '30DAK', style = plot.style_circles, color = xz ? y30 > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 1)
    plot(y45, title = '45DAK', style = plot.style_circles, color = xz ? y45 > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 1)
    plot(y60, title = '1SAAT', style = plot.style_circles, color = xz ? y60 > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 1)
    plot(y120, title = '2SAAT', style = plot.style_circles, color = xz ? y120 > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 1)
    plot(y180, title = '3SAAT', style = plot.style_circles, color = xz ? y180 > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 1)
    plot(y240, title = '4SAAT', style = plot.style_circles, color = xz ? y240 > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth = 1)
    plot(y720, title='1GÜN', style=plot.style_circles, color=xz ? y720 > close ? color.rgb(255, 82, 82, 100) : color.rgb(0, 230, 119, 100) : color.silver, linewidth=1)
    16.07.2024 - 10.12.2024


Sayfa 296/296 İlkİlk ... 196246286294295296

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
  •