Sayfa 299/346 İlkİlk ... 199249289297298299300301309 ... SonSon
Arama sonucu : 2761 madde; 2,385 - 2,392 arası.

Konu: Tradingview

  1. aslolan ise....

    strateji testinde.....stratejinin hangi tarih aralığında....nasıl sonuç verdiğidir....

    bakınız....












    tarih aralığına ve sonuçlara dikkat.....

    bahsettiğim test bu....

    1 dakkalıkta 14temmuz-1ağustos arası.... yüzde 26 karlı işlem yapan strateji....

    günlükte....2021 temmuzdan bugüne... yüzde 23 civarı....

    sanırım ne demek istediğimi anlatabildim....

  2. yapay zeka kod yazdırma....

    https://tr.tradingview.com/script/IAssyObN-MavilimW/ örnek bu kodu alalım....

    geliştirmek için atr ile sapma sinyali hesaplatalım....

    kodu

    PHP Code:
    //@version=4
    study("MAVW + ATR Sapma Sinyali"overlay=true)

    // === MAVW Hesabı ===
    fmal input(3)
    smal input(5)
    tmal fmal smal
    Fmal 
    smal tmal
    Ftmal 
    tmal Fmal
    Smal 
    Fmal Ftmal

    M1 
    wma(closefmal)
    M2 wma(M1smal)
    M3 wma(M2tmal)
    M4 wma(M3Fmal)
    M5 wma(M4Ftmal)
    MAVW wma(M5Smal)

    // === ATR Hesabı ===
    atrLength input(14title="ATR Periyodu")
    atrValue atr(atrLength)

    // === Sapma Oranı Hesabı ===
    sapmaOrani abs(close MAVW) / atrValue
    sapmaEsik 
    input(1.5title="Sapma Eşiği (ATR katı)")
    sapmaSinyali sapmaOrani sapmaEsik

    // === MAVW Çizgisi Renkli ===
    renk MAVW MAVW[1] ? color.blue MAVW MAVW[1] ? color.red color.yellow
    plot
    (MAVWtitle="MAVW"color=renklinewidth=2)

    // === Sapma Sinyali (Turuncu Daire)
    plotshape(sapmaSinyali natitle="Sapma Sinyali"location=location.abovebarcolor=color.orangestyle=shape.circlesize=size.small)

    // === Alarm Koşulu
    alertcondition(sapmaSinyalititle="Aşırı Sapma Alarmı"message="Fiyat MAVW'den çok uzaklaştı!"
    siz sapma değerini 4.5 yapın....böyle görülür......
    https://www.tradingview.com/x/VvlVrRlO/


  3. https://tr.tradingview.com/script/6W...ile-BigBeluga/

    sadeleme....

    PHP Code:
    //@version=5
    indicator("Deviation Trend Profile (Simplified)"overlay=true)

    // Parametreler
    len input.int(50title="SMA Length")
    mult1 input.int(1title="SD1")
    mult2 input.int(2title="SD2")
    mult3 input.int(3title="SD3")
    thresholdSlope input.float(0.1title="Slope Threshold")

    sma ta.sma(closelen)
    atr ta.atr(len)

    // Sapma seviyeleri
    sd1 sma atr mult1
    sd2 
    sma atr mult2
    sd3 
    sma atr mult3
    sd_1 
    sma atr mult1
    sd_2 
    sma atr mult2
    sd_3 
    sma atr mult3

    // SMA eğimi ve trend tanımı
    slope sma sma[1]
    inTrend ta.change(slope) and math.abs(slope) > thresholdSlope

    // Trend başlangıcı bul
    var int startIdx na
    if inTrend and na(startIdx)
        
    startIdx := bar_index
    if not inTrend
        startIdx 
    := na

    // Histogram bilgi: trend süresince fiyat pozisyon kategorisi
    // Bu kısım detaylı histogram için genişletilebilir

    // Çizim
    plot(sma"SMA"color=color.blue)
    plot(sd1"SD1"color=color.green)
    plot(sd2"SD2"color=color.teal)
    plot(sd3"SD3"color=color.lime)
    plot(sd_1,"-SD1"color=color.orange)
    plot(sd_2,"-SD2"color=color.red)
    plot(sd_3,"-SD3"color=color.maroon)

    // Trend başlangıcı göstergesi
    plotshape(inTrendlocation=location.topstyle=shape.triangleupcolor=color.yellowtitle="Trend Start"
    https://www.tradingview.com/x/UuLisawv/

  4. https://tr.tradingview.com/script/bw...vestorUnknown/

    sadeleme.....

    PHP Code:
    //@version=4
    study("EMD Trend Basit v4"overlay=true)

    // === Ayarlar ===
    len input(20title="MA / EMD Length")
    mult input(1.5title="EMD Multiplier")

    // === MA ve EMD Hesapla ===
    ma sma(closelen)

    // EMD â‰ˆ EMA( |close - ma| )
    emaDev ema(abs(close ma), len)

    // Bantlar
    upper ma emaDev mult
    lower 
    ma emaDev mult

    // === Trend Yönü ===
    longTrend  crossover(closeupper)
    shortTrend crossunder(closelower)

    // === Çizimler ===
    plot(matitle="MA"color=color.bluelinewidth=2)
    plot(uppertitle="Upper EMD"color=color.greenlinewidth=1)
    plot(lowertitle="Lower EMD"color=color.redlinewidth=1)

    // === Sinyaller ===
    plotshape(longTrendtitle="Long"location=location.belowbarcolor=color.greenstyle=shape.triangleupsize=size.small)
    plotshape(shortTrendtitle="Short"location=location.abovebarcolor=color.redstyle=shape.triangledownsize=size.small)

    // === Alarm Koşulları ===
    alertcondition(longTrendtitle="EMD LONG"message="Fiyat üst banda çıktı â†’ LONG TREND")
    alertcondition(shortTrendtitle="EMD SHORT"message="Fiyat alt banda indi â†’ SHORT TREND"
    öncekiyle beraber görüntü https://www.tradingview.com/x/q6HOOaFG/

  5. https://tr.tradingview.com/script/WL...st-SMA-Finder/

    PHP Code:
    //@version=4
    study("Basit Best SMA Finder"overlay=true)

    minLen input(10"Min SMA Length")
    maxLen input(100"Max SMA Length")

    bestSmaLen minLen
    bestCount 
    0
    var int bestLenVar na

    // Her SMA uzunluğu için kesişim sayısı kontrolü
    for length minLen to maxLen
        smaVal 
    sma(closelength)
        
    countLong sum(crossover(closesmaVal) ? 0length)
        if (
    countLong bestCount)
            
    bestCount := countLong
            bestLenVar 
    := length

    // Seçilen en iyi SMA çizim
    bestSMA sma(closebestLenVar)
    plot(bestSMAcolor=color.bluelinewidth=2title="Optimal SMA (" tostring(bestLenVar) + ")")

    // Fiyatın üzerine mi altına mı?
    above close bestSMA
    bgcolor
    (above color.new(color.green90) : color.new(color.red90), title="Trend Zone"

    Kavram: Nedir “Best SMA Finder”?
    Bu tip araçlar (ör. Best SMA Finder, Trend Scanner Pro gibi), farklı SMA uzunluklarını (ör. 10‑den 1000’e kadar) backtest eder, performansı ölçer (profit factor, trade sayısı, başarı oranı) ve en dayanıklı olan SMA’yı seçer
    tradingview.com
    +5
    tradingview.com
    +5
    tradingview.com
    +5
    .
    Sonuçta grafik üzerinde en optimal SMA değerini ve geçerli stratejiye göre fiyatın bu SMA ile ilişkisini gösterir.


    bestLenVar: En çok kesişim (cross) üreten SMA uzunluğunu tespit eder

    Grafik üzerinde bu SMA çizilir ve fiyatın üstünde/altında trend bölgesi renklendirilir

    Kod sade, sıfır hata ile çalışır, Pine Script v4 uyumludur

  6. https://tr.tradingview.com/script/vi...abres-LuxAlgo/

    sadeleme...
    PHP Code:
    //@version=5
    indicator("MA Sabres Basit v5"overlay=true)

    // === MA Ayarları ===
    maType input.string("TEMA""MA Tipi"options=["SMA","EMA","WMA","TEMA"])
    length input.int(50"MA Uzunluğu")
    count  input.int(20"Trend Süre (Bar)")
    atrLen input.int(14"ATR Süresi")
    mult   input.float(1.5"Sabre ATR Çarpanı")

    maFn(xlen) =>
        switch 
    maType
            
    "SMA" => ta.sma(xlen)
            
    "EMA" => ta.ema(xlen)
            
    "WMA" => ta.wma(xlen)
            => 
    ta.ema(ta.ema(ta.ema(xlen), len), len// TEMA

    ma maFn(closelength)
    atr ta.atr(atrLen)

    isFalling ta.falling(macount)
    isRising  ta.rising(macount)
    upTrend    isFalling[1] and ma ma[1]
    dnTrend    isRising[1] and ma ma[1]

    // Sabre çizimi için polyline
    if upTrend or dnTrend
        dir 
    upTrend : -1
        basePrice 
    dir == low[1] : high[1]
        
    startIdx bar_index 1
        tipIdx   
    bar_index length
        tipPrice 
    basePrice dir atr mult

        pts 
    = array.new<chart.point>()
        array.
    push(ptschart.point.from_index(startIdxbasePrice))
        array.
    push(ptschart.point.from_index(bar_index length/2basePrice dir atr * (mult/2)))
        array.
    push(ptschart.point.from_index(tipIdxtipPrice))
        
    polyline.new(ptscolor upTrend color.green color.redwidth 2style line.style_curveextend extend.none)

    // Trend onarımı için MA çizgisi
    plot(matitle="MA Trend"color=upTrend color.lime dnTrend color.red color.graylinewidth=2)

    // Sinyal şekli
    plotshape(upTrendlocation=location.belowbarstyle=shape.circlecolor=color.greensize=size.small)
    plotshape(dnTrendlocation=location.abovebarstyle=shape.circlecolor=color.redsize=size.small

    PHP Code:
    //@version=4
    study("MA Sabres v4 + BGColor"overlay=true)

    // === Ayarlar ===
    maLength input(50title="SMA Uzunluğu")
    atrLength input(14title="ATR Periyodu")
    mult input(1.5title="ATR Çarpanı")

    // === Göstergeler ===
    ma sma(closemaLength)
    atrVal atr(atrLength)

    // === Trend yönü kontrolü
    maSlope ma ma[1]
    upTrend maSlope and maSlope[1] <= 0
    dnTrend 
    maSlope and maSlope[1] >= 0
    isUp 
    maSlope 0
    isDown 
    maSlope 0

    // === MA çizgisi
    plot(matitle="SMA"color=color.graylinewidth=2)

    // === Sabre işaretleme
    plotshape(upTrendtitle="Yukarı Sabre"location=location.belowbarstyle=shape.triangleup,
              
    color=color.limesize=size.smalloffset=-1)
    plotshape(dnTrendtitle="Aşağı Sabre"location=location.abovebarstyle=shape.triangledown,
              
    color=color.redsize=size.smalloffset=-1)

    // === Sabre hedef çizgileri (opsiyon 

    https://www.tradingview.com/x/aIJllXGF/

  7. https://tr.tradingview.com/script/i4...n-Filter-Loxx/

    PHP Code:
    //@version=4
    study("Gaussian Filter with STD"overlay=true)

    // === Ayarlar ===
    length input(20title="Gaussian Filter Length")
    poles input(2minval=1maxval=4title="Pole Sayısı")
    stdMult input(1.0title="STD Çarpanı (Filtre)")

    // === Kaynak
    src close

    // === Gaussian Filter (N Pole)
    gauss1 ema(srclength)
    gauss2 poles >= ema(gauss1length) : gauss1
    gauss3 
    poles >= ema(gauss2length) : gauss2
    gauss4 
    poles >= ema(gauss3length) : gauss3
    gaussian 
    gauss4

    // === STD Hesabı ve Sapma
    std stdev(srclength)
    diff src gaussian

    longCond 
    diff std stdMult
    shortCond 
    diff < -std stdMult

    // === Renkli Trend Çizgisi
    trendColor longCond color.green shortCond color.red color.gray
    plot
    (gaussiantitle="Gaussian Filter"color=trendColorlinewidth=2)

    // === Sinyal Okları
    plotshape(longCondtitle="Al Sinyali"location=location.belowbarstyle=shape.triangleupcolor=color.greensize=size.small)
    plotshape(shortCondtitle="Sat Sinyali"location=location.abovebarstyle=shape.triangledowncolor=color.redsize=size.small
    https://www.tradingview.com/x/l7b0ZNPP/

Sayfa 299/346 İlkİlk ... 199249289297298299300301309 ... 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
  •