Sayfa 274/274 İlkİlk ... 174224264272273274
Arama sonucu : 2188 madde; 2,185 - 2,188 arası.

Konu: Tradingview

  1. https://www.tradingview.com/x/1Ckt94HR/
    büyük periyotlarda kullanılabilir.....günlük haftalık gibi.....

    düşük periyotlarada kullanılacaksa.....değerlerde değişiklik yapılmalı....

    PHP Code:
    // © Marcin Kukulski
    //@version=6
    indicator(title="Buy Sell Indicator PRO"overlay=true)

    // Inputs
    keyValue input.float(1.0title="Key Value (Sensitivity)"step=0.5)
    atrPeriod input.int(10title="ATR Period")
    emaPeriod input.int(1title="EMA Period (default 1)")
    srLookback input.int(20title="Support/Resistance Lookback"minval=2)

    // ATR Calculation
    atrValue ta.atr(atrPeriod)
    nLoss keyValue atrValue

    // Trailing Stop Logic
    var float trailingStop na
    if (na(trailingStop))
        
    trailingStop := close nLoss

    if (close trailingStop and close[1] > trailingStop)
        
    trailingStop := math.max(trailingStopclose nLoss)
    else if (
    close trailingStop and close[1] < trailingStop)
        
    trailingStop := math.min(trailingStopclose nLoss)
    else
        
    trailingStop := close trailingStop ? (close nLoss) : (close nLoss)

    // Position tracking
    var int pos 0
    if (close[1] < trailingStop and close trailingStop)
        
    pos := 1
    else if (close[1] > trailingStop and close trailingStop)
        
    pos := -1
    else
        
    pos := pos[1]

    // Color logic
    trailColor pos == -color.red pos == color.green color.blue

    // Plot trailing stop
    plot(trailingStopcolor=trailColortitle="Trailing Stop")

    // Signal logic
    emaLine ta.ema(closeemaPeriod)
    buySignal ta.crossover(emaLinetrailingStop)
    sellSignal ta.crossunder(emaLinetrailingStop)

    // Plot shapes
    plotshape(buySignaltitle="Buy"text='Buy'style=shape.labeluplocation=location.belowbarcolor=color.greentextcolor=color.whitesize=size.small)
    plotshape(sellSignaltitle="Sell"text='Sell'style=shape.labeldownlocation=location.abovebarcolor=color.redtextcolor=color.whitesize=size.small)

    // Bar coloring
    barCol close trailingStop color.green color.red
    barcolor
    (barCol)

    // Alerts
    alertcondition(buySignaltitle="Buy Alert"message="Buy Signal!")
    alertcondition(sellSignaltitle="Sell Alert"message="Sell Signal!")

    // === Support & Resistance ===
    // Detecting swing highs and lows
    isResistance high == ta.highest(highsrLookback)
    isSupport low == ta.lowest(lowsrLookback)

    // Plotting lines
    plotshape(isResistancestyle=shape.triangledownlocation=location.abovebarcolor=color.orangesize=size.tinytitle="Resistance Marker")
    plotshape(isSupportstyle=shape.triangleuplocation=location.belowbarcolor=color.aquasize=size.tinytitle="Support Marker")

    // Draw horizontal lines (optional, limited by PineScript constraints)
    var float resistanceLevel na
    var float supportLevel na

    if isResistance
        resistanceLevel 
    := high
    if isSupport
        supportLevel 
    := low

    plot
    (resistanceLeveltitle="Resistance Level"color=color.orangelinewidth=1style=plot.style_linebr)
    plot(supportLeveltitle="Support Level"color=color.aqualinewidth=1style=plot.style_linebr
    16.07.2024 - 10.12.2024

  2. https://www.tradingview.com/x/kogwzno6/ tersleme sar....


    PHP Code:
    //@version=6
    indicator(title 'SAR_OFFSET'shorttitle 'SarOffset'overlay true)

    SAR ta.sar(0.10.10.1)
    //plot(SAR, title = 'SAR', linewidth = 1, style = plot.style_circles, color = color.new(color.orange, 0))

    sqzOn ta.valuewhen(open[0] < SARSAR0)
    sqzOff ta.valuewhen(open[0] > SARSAR0)


    BE ta.valuewhen(SAR sqzOnSAR * (sqzOn SAR), 0)
    plot(BEtitle 'BE'linewidth 1style plot.style_circlescolor color.new(color.blue0))




    SE ta.valuewhen(SAR sqzOffSAR * (SAR sqzOff), 0)
    plot(SEtitle 'SE'linewidth 1style plot.style_circlescolor color.new(color.blue0)) 
    16.07.2024 - 10.12.2024


  3. https://tr.tradingview.com/script/dyU6XM1H-REAL-SMA/

    tarih ayarlaması ve değer ayarlamasını kendinize göre yapın.....

    https://www.tradingview.com/x/slfc6CjE/ örnek görüntü....
    16.07.2024 - 10.12.2024

Sayfa 274/274 İlkİlk ... 174224264272273274

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
  •