Sayfa 236/293 İlkİlk ... 136186226234235236237238246286 ... SonSon
Arama sonucu : 2338 madde; 1,881 - 1,888 arası.

Konu: Tradingview

  1. sar kullanarak...
    bölge yapma...

    PHP Code:
     // © OmegaTools

    //@version=5
    indicator("Parabolic SAR Zone"overlay true)

    start input.float(0"Starting value")
    inc input.float(0.01"Increment")
    max input.float(1"Max Value")
    width input.float(1.00"Zone width")

    atrs ta.atr(100) * width
    sarone 
    ta.sar(startincmax)
    sarzone = if close sarone
        sarone 
    atrs
    else if close sarone
        sarone 
    atrs
    sartwo 
    ta.sar(start/2inc/2max/2)

    p1 plot(sarone"First SAR"color close sarone #2962ff00 : #e91e6200, style=plot.style_circles)
    p3 plot(sarzone"Zone line"color close sarone #2962ff00 : #e91e6200, style=plot.style_circles)
    fill(p1p3color close sarone color.new(#2962ff, 80) : color.new(#e91e63, 80))

    plot(sartwo"Second SAR"color close sartwo color.new(#2962ff, 100) : color.new(#e91e62, 100), style=plot.style_linebr) 
    16.07.2024 - 10.12.2024

  2. 5 dakkalık periyot için range...
    PHP Code:
     //@version=5
    indicator(title="Range Filter Buy and Sell 5min"shorttitle="Range Filter"overlay=true)

    // Original Script > @DonovanWall
    // Adapted Version > @guikroth
    // 
    // Updated PineScript to version 5
    // Republished by > @tvenn

    //////////////////////////////////////////////////////////////////////////
    // Settings for 5min chart, BTCUSDC. For Other coin, change the parameters
    //////////////////////////////////////////////////////////////////////////

    // Color variables
    upColor   color.white
    midColor  
    #90bff9
    downColor color.blue

    // Source
    src input(defval=closetitle="Source")

    // Sampling Period
    // Settings for 5min chart, BTCUSDC. For Other coin, change the paremeters
    per input.int(defval=20minval=1title="Sampling Period")

    // Range Multiplier
    mult input.float(defval=1.5minval=0.1title="Range Multiplier")

    // Smooth Average Range
    smoothrng(xtm) =>
        
    wper 1
        avrng 
    ta.ema(math.abs(x[1]), t)
        
    smoothrng ta.ema(avrngwper) * m
        smoothrng
    smrng 
    smoothrng(srcpermult)

    // Range Filter
    rngfilt(xr) =>
        
    rngfilt x
        rngfilt 
    := nz(rngfilt[1]) ? nz(rngfilt[1]) ? nz(rngfilt[1]) : 
           
    nz(rngfilt[1]) ? nz(rngfilt[1]) : r
        rngfilt
    filt 
    rngfilt(srcsmrng)

    // Filter Direction
    upward 0.0
    upward 
    := filt filt[1] ? nz(upward[1]) + filt filt[1] ? nz(upward[1])
    downward 0.0
    downward 
    := filt filt[1] ? nz(downward[1]) + filt filt[1] ? nz(downward[1])

    // Target Bands
    hband filt smrng
    lband 
    filt smrng

    // Colors
    filtcolor upward upColor downward downColor midColor
    barcolor 
    src filt and src src[1] and upward upColor :
       
    src filt and src src[1] and upward upColor 
       
    src filt and src src[1] and downward downColor 
       
    src filt and src src[1] and downward downColor midColor

    //filtplot = plot(filt, color=filtcolor, linewidth=2, title="Range Filter")

    // Target
    //hbandplot = plot(hband, color=color.new(upColor, 70), title="High Target")
    //lbandplot = plot(lband, color=color.new(downColor, 70), title="Low Target")

    // Fills
    //fill(hbandplot, filtplot, color=color.new(upColor, 90), title="High Target Range")
    //fill(lbandplot, filtplot, color=color.new(downColor, 90), title="Low Target Range")

    // Bar Color
    //barcolor(barcolor)

    // Break Outs
    longCond bool(na)
    shortCond bool(na)
    longCond := src filt and src src[1] and upward or 
       
    src filt and src src[1] and upward 0
    shortCond 
    := src filt and src src[1] and downward or 
       
    src filt and src src[1] and downward 0

    CondIni 
    0
    CondIni 
    := longCond shortCond ? -CondIni[1]
    longCondition longCond and CondIni[1] == -1
    shortCondition 
    shortCond and CondIni[1] == 1

    //Alerts
    plotshape(longConditiontitle="Buy Signal"text="L"textcolor=color.whitestyle=shape.labelupsize=size.tinylocation=location.belowbarcolor=color.new(#aaaaaa, 20))
    plotshape(shortConditiontitle="Sell Signal"text="S"textcolor=color.whitestyle=shape.labeldownsize=size.tinylocation=location.abovebarcolor=color.new(downColor20))


    alertcondition(longConditiontitle="Buy alert on Range Filter"message="Buy alert on Range Filter")
    alertcondition(shortConditiontitle="Sell alert on Range Filter"message="Sell alert on Range Filter")
    alertcondition(longCondition or shortConditiontitle="Buy and Sell alert on Range Filter"message="Buy and Sell alert on Range Filter")


    // For use as a Strategy
    // ___________________________________________________________________________________________________________

    // 1. Replace the word "indicator" on line 2 with the word "strategy"
    // 2. Uncomment the code below by highlighting it and pressing Ctl + '/'

    // Settings for 5min BTCUSDT. For other timeframes and assets, adjust the parameters within the settings menu.
    // ___________________________________________________________________________________________________________

    // grp_STRAT   = "Strategy settings"
    // timeInput   = input.time(timestamp("1 Nov 2022 00:00 +0000"), title="Start date", group=grp_STRAT)
    // tpInPips    = input.int(400, title="TP (in pips)", group=grp_STRAT)
    // slInPips    = input.int(100, title="SL (in pips)", group=grp_STRAT)

    // timePeriod  = time >= timeInput
    // notInTrade  = strategy.position_size <= 0

    // if(longCondition and timePeriod and notInTrade)
    //     strategy.entry("Long", strategy.long)
    //     strategy.exit("Exit long", "Long", loss=slInPips, profit=tpInPips)
    // if(shortCondition and timePeriod and notInTrade)
    //     strategy.entry("Short", strategy.short)
    //     strategy.exit("Exit short", "Short", loss=slInPips, profit=tpInPips) 
    16.07.2024 - 10.12.2024

  3. açılış-kapanış stratejisi...versiyon 5 hali...
    PHP Code:
     //@version=5
    //

    indicator(title='Open Close Cross Strategy R5.1 revised by JustUncleL'shorttitle='OCC Strategy R5.1'overlay=true)
    // pyramiding = 0, default_qty_type = strategy.percent_of_equity, default_qty_value = 10, calc_on_every_tick=false)

    //
    // Revision:        5
    // Original Author: @JayRogers
    // Revision Author: JustUncleL revisions 3, 4, 5
    // Revision Author: @yourmattie 
    //
    // *** USE AT YOUR OWN RISK ***
    //  - There are drawing/painting issues in pinescript when working across resolutions/timeframes that I simply
    //    cannot fix here.. I will not be putting any further effort into developing this until such a time when
    //    workarounds become available. 
    //    NOTE: Re-painting has been observed infrequently with default settings and seems OK up to Alternate 
    //          multiplier of 5.
    //          Non-repainting mode is available by setting "Delay Open/Close MA" to 1 or more, but the reported
    //          performance will drop dramatically.
    //
    // R6 script change from strategy to study with alerts.

    // R5.1 Changes by JustUncleL
    //  - Upgraded to Version 3 Pinescript.
    //  - Added option to select Trade type (Long, Short, Both or None)
    //  - Added bar colouring work around patch.
    //  - Small code changes to improve efficiency.
    //  - NOTE: To enable non-Repainting mode set "Delay Open/Close MA" to 1 or more.
    //  9-Aug-2017
    //  - Correction on SuperSmooth MA calculation.
    //
    // R5 Changes by JustUncleL
    //  - Corrected cross over calculations, sometimes gave false signals.
    //  - Corrected Alternate Time calculation to allow for Daily,Weekly and Monthly charts.
    //  - Open Public release.
    // R4 Changes By JustUncleL
    //  - Change the way the Alternate resolution in selected, use a Multiplier of the base Time Frame instead,
    //    this makes it easy to switch between base time frames.
    //  - Added TMA and SSMA moving average options. But DEMA is still giving the best results.
    //  - Using "calc_on_every_tick=false" ensures results between backtesting and real time are similar.
    //  - Added Option to Disable the coloring of the bars.
    //  - Updated default settings.
    //
    // R3 Changes by JustUncleL:
    //  - Returned a simplified version of the open/close channel, it shows strength of current trend.
    //  - Added Target Profit Option.
    //  - Added option to reduce the number of historical bars, overcomes the too many trades limit error.
    //  - Simplified the strategy code.
    //  - Removed Trailing Stop option, not required and in my opion does not work well in Trading View,
    //    it also gives false and unrealistic performance results in backtesting.
    //
    // R2 Changes:
    //  - Simplified and cleaned up plotting, now just shows a Moving Average derived from the average of open/close.
    //  - Tried very hard to alleviate painting issues caused by referencing alternate resolution..
    //
    // Description:
    //  - Strategy based around Open-Close Crossovers.
    // Setup:
    //  - I have generally found that setting the strategy resolution to 3-4x that of the chart you are viewing
    //    tends to yield the best results, regardless of which MA option you may choose (if any) BUT can cause
    //    a lot of false positives - be aware of this
    //  - Don't aim for perfection. Just aim to get a reasonably snug fit with the O-C band, with good runs of
    //    green and red.
    //  - Option to either use basic open and close series data, or pick your poison with a wide array of MA types.
    //  - Optional trailing stop for damage mitigation if desired (can be toggled on/off)
    //  - Positions get taken automagically following a crossover - which is why it's better to set the resolution
    //    of the script greater than that of your chart, so that the trades get taken sooner rather than later.
    //  - If you make use of the stops, be sure to take your time tweaking the values. Cutting it too fine
    //    will cost you profits but keep you safer, while letting them loose could lead to more drawdown than you
    //    can handle.
    //  - To enable non-Repainting mode set "Delay Open/Close MA" to 1 or more.
    //

    // === INPUTS ===
    useRes input(defval=truetitle='Use Alternate Resolution?')
    intRes input(defval=3title='Multiplier for Alernate Resolution')
    stratRes timeframe.ismonthly str.tostring(timeframe.multiplier intRes'###M') : timeframe.isweekly str.tostring(timeframe.multiplier intRes'###W') : timeframe.isdaily str.tostring(timeframe.multiplier intRes'###D') : timeframe.isintraday str.tostring(timeframe.multiplier intRes'####') : '60'
    basisType input.string(defval='SMMA'title='MA Type: 'options=['SMA''EMA''DEMA''TEMA''WMA''VWMA''SMMA''HullMA''LSMA''ALMA''SSMA''TMA'])
    basisLen input.int(defval=8title='MA Period'minval=1)
    offsetSigma input.int(defval=6title='Offset for LSMA / Sigma for ALMA'minval=0)
    offsetALMA input.float(defval=0.85title='Offset for ALMA'minval=0step=0.01)
    scolor input(falsetitle='Show coloured Bars to indicate Trend?')
    delayOffset input.int(defval=0title='Delay Open/Close MA (Forces Non-Repainting)'minval=0step=1)
    tradeType input.string('BOTH'title='What trades should be taken : 'options=['LONG''SHORT''BOTH''NONE'])
    // === /INPUTS ===

    // Constants colours that include fully non-transparent option.
    green100 #008000FF
    lime100 #00FF00FF
    red100 #FF0000FF
    blue100 #0000FFFF
    aqua100 #00FFFFFF
    darkred100 #8B0000FF
    gray100 #808080FF

    // === BASE FUNCTIONS ===
    // Returns MA input selection variant, default to SMA if blank or typo.
    variant(typesrclenoffSigoffALMA) =>
        
    v1 ta.sma(srclen)  // Simple
        
    v2 ta.ema(srclen)  // Exponential
        
    v3 v2 ta.ema(v2len)  // Double Exponential
        
    v4 * (v2 ta.ema(v2len)) + ta.ema(ta.ema(v2len), len)  // Triple Exponential
        
    v5 ta.wma(srclen)  // Weighted
        
    v6 ta.vwma(srclen)  // Volume Weighted
        
    v7 0.0
        sma_1 
    ta.sma(srclen)  // Smoothed
        
    v7 := na(v7[1]) ? sma_1 : (v7[1] * (len 1) + src) / len
        v8 
    ta.wma(ta.wma(srclen 2) - ta.wma(srclen), math.round(math.sqrt(len)))  // Hull
        
    v9 ta.linreg(srclenoffSig)  // Least Squares
        
    v10 ta.alma(srclenoffALMAoffSig)  // Arnaud Legoux
        
    v11 ta.sma(v1len)  // Triangular (extreme smooth)
        // SuperSmoother filter
        // © 2013  John F. Ehlers
        
    a1 math.exp(-1.414 3.14159 len)
        
    b1 a1 math.cos(1.414 3.14159 len)
        
    c2 b1
        c3 
    = -a1 a1
        c1 
    c2 c3
        v12 
    0.0
        v12 
    := c1 * (src nz(src[1])) / c2 nz(v12[1]) + c3 nz(v12[2])
        
    type == 'EMA' v2 type == 'DEMA' v3 type == 'TEMA' v4 type == 'WMA' v5 type == 'VWMA' v6 type == 'SMMA' v7 type == 'HullMA' v8 type == 'LSMA' v9 type == 'ALMA' v10 type == 'TMA' v11 type == 'SSMA' v12 v1

    // security wrapper for repeat calls
    reso(exp, use, res) =>
        
    security_1 request.security(syminfo.tickeridresexpgaps=barmerge.gaps_offlookahead=barmerge.lookahead_on)
        use ? 
    security_1 exp

    // === /BASE FUNCTIONS ===

    // === SERIES SETUP ===
    closeSeries variant(basisTypeclose[delayOffset], basisLenoffsetSigmaoffsetALMA)
    openSeries variant(basisTypeopen[delayOffset], basisLenoffsetSigmaoffsetALMA)
    // === /SERIES ===

    // === PLOTTING ===

    // Get Alternate resolution Series if selected.
    closeSeriesAlt reso(closeSeriesuseResstratRes)
    openSeriesAlt reso(openSeriesuseResstratRes)
    //
    trendColour closeSeriesAlt openSeriesAlt color.green color.red
    bcolour 
    closeSeries openSeriesAlt lime100 red100
    barcolor
    (scolor bcolour natitle='Bar Colours')
    closeP plot(closeSeriesAlttitle='Close Series'color=trendColourlinewidth=2style=plot.style_linetransp=20)
    openP plot(openSeriesAlttitle='Open Series'color=trendColourlinewidth=2style=plot.style_linetransp=20)
    fill(closePopenPcolor=trendColourtransp=80)

    // === /PLOTTING ===
    //

    //
    // === ALERT conditions
    xlong ta.crossover(closeSeriesAltopenSeriesAlt)
    alertcondition(xlongtitle='xlong signal'message='xlong Alert')
    xshort ta.crossunder(closeSeriesAltopenSeriesAlt)
    alertcondition(xshorttitle='xshort signal'message='xshort Alert')
    longCond xlong  // alternative: longCond[1]? false : (xlong or xlong[1]) and close>closeSeriesAlt and close>=open
    alertcondition(longCondtitle='Go LONG signal'message='go long')
    shortCond xshort  // alternative: shortCond[1]? false : (xshort or xshort[1]) and close<closeSeriesAlt and close<=open
    alertcondition(shortCondtitle='Go SHORT'message='Go Short')

    // === /ALERT conditions.

    // === STRATEGY ===
    // stop loss
    slPoints input.int(defval=0title='Initial Stop Loss Points (zero to disable)'minval=0)
    tpPoints input.int(defval=0title='Initial Target Profit Points (zero for disable)'minval=0)
    // Include bar limiting algorithm
    ebar input.int(defval=10000title='Number of Bars for Back Testing'minval=0)
    dummy input(falsetitle='- SET to ZERO for Daily or Longer Timeframes')
    //
    // Calculate how many mars since last bar
    tdays = (timenow time) / 60000.0  // number of minutes since last bar
    tdays := timeframe.ismonthly tdays 1440.0 5.0 4.3 timeframe.multiplier timeframe.isweekly tdays 1440.0 5.0 timeframe.multiplier timeframe.isdaily tdays 1440.0 timeframe.multiplier tdays timeframe.multiplier  // number of bars since last bar
    //
    //set up exit parameters
    TP tpPoints tpPoints na
    SL 
    slPoints slPoints na

    // Make sure we are within the bar range, Set up entries and exit conditions
    //longCond ((ebar==0 or tdays<=ebar) and tradeType!="NONE")
    //alertcondition(crossunder, title="long signal", message="long Signal alert")

    //shortcond ((ebar==0 or tdays<ebar) and tradeType!"NONE")
    //alertcondition(crossover, title="Short signal", message="Short signal Alert")
    // strategy.entry("long", strategy.long, when=longCond==true and tradeType!="SHORT")
    //trategy.entry("long", strategy.long, when=longCond==true and tradeType!="SHORT")
    //  strategy.entry("short", strategy.short, when=shortCond==true and tradeType!="LONG")
    //  strategy.close("long", when = shortCond==true and tradeType=="LONG")
    //   strategy.close("short", when = longCond==true and tradeType=="SHORT")
    //   strategy.exit("XL", from_entry = "long", profit = TP, loss = SL)
    //  strategy.exit("XS", from_entry = "short", profit = TP, loss = SL)

    // === /STRATEGY ===
    // eof 
    16.07.2024 - 10.12.2024


  4. olmazsa olmazlardan.....
    https://tr.tradingview.com/script/He...e-Performance/

    x100/x30...
    PHP Code:
      //@version=5
    // (c) 2022, Konstantin V. Novik
    // It is the update to pinescript 5 of the previous version of this indicator
    indicator(title "Relative Performance"shorttitle "x100/x30"overlay trueprecision 0scale scale.left)
    firstTicker input(title "Ticker for the first security"defval "XU100")
    secondTicker input(title "Ticker for the second security"defval "XU030")
    firstQuotes request.security(firstTickertimeframe.periodclose)
    secondQuotes request.security(secondTickertimeframe.periodclose)
    plot((firstQuotes 100.00) / secondQuotes
    kullanım mantığı https://www.cabotwealth.com/daily/st...performance-rp
    16.07.2024 - 10.12.2024


  5. 16.07.2024 - 10.12.2024

  6. https://tr.tradingview.com/v/4ihoyPXZ/

    kodu yazan...
    ayarlarını iyi yaparsanız... yüzde 80 başarılı olur demiş....
    16.07.2024 - 10.12.2024

Sayfa 236/293 İlkİlk ... 136186226234235236237238246286 ... 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
  •