Sayfa 211/275 İlkİlk ... 111161201209210211212213221261 ... SonSon
Arama sonucu : 2198 madde; 1,681 - 1,688 arası.

Konu: Tradingview

  1. PHP Code:
      // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
    // © daytraderph


    //@version=5
    indicator('Dynamic Range'overlay=true)
    res input.timeframe(defval='D')


    dayrange high low
    r1 
    request.security(syminfo.tickeridresdayrange[1])
    r2 request.security(syminfo.tickeridresdayrange[2])
    r3 request.security(syminfo.tickeridresdayrange[3])
    r4 request.security(syminfo.tickeridresdayrange[4])
    r5 request.security(syminfo.tickeridresdayrange[5])
    r6 request.security(syminfo.tickeridresdayrange[6])
    r7 request.security(syminfo.tickeridresdayrange[7])
    r8 request.security(syminfo.tickeridresdayrange[8])
    r9 request.security(syminfo.tickeridresdayrange[9])
    r10 request.security(syminfo.tickeridresdayrange[10])
    r11 request.security(syminfo.tickeridresdayrange[11])
    r12 request.security(syminfo.tickeridresdayrange[12])
    oo request.security(syminfo.tickeridresopenbarmerge.gaps_offbarmerge.lookahead_on)
    zone1 oo + (r1 r2 r3 r4 r5) / 10
    zone2 
    oo + (r1 r2 r3 r4 r5 r6 r7 r8 r9 r10) / 10 2
    zone3 
    oo - (r1 r2 r3 r4 r5) / 10
    zone4 
    oo - (r1 r2 r3 r4 r5 r6 r7 r8 r9 r10) / 10 2
    z1 
    plot(zone1title='D-Range'color=color.new(color.yellow0), linewidth=1style=plot.style_cross)
    //z2 = plot(zone2, title='Z2', color=color.new(color.green, 0), linewidth=1, style=plot.style_circles)
    //z3 = plot(zone3, title='Z3', color=color.new(color.red, 0), linewidth=1, style=plot.style_circles)
    z4 plot(zone4title='D-Range'color=color.new(color.aqua0), linewidth=1style=plot.style_cross
    16.07.2024 - 10.12.2024

  2. 16.07.2024 - 10.12.2024

  3. https://tr.tradingview.com/v/bUdYv5cD/

    ohlc değerleri kullanarak range hesaplama...
    2 farklı zaman dilimi kullanabilirsiniz....
    16.07.2024 - 10.12.2024

  4. https://tr.tradingview.com/v/oYw1zztt/
    güzel range kodu...
    alternatif time frame yi işaretleyin
    16.07.2024 - 10.12.2024

  5. PHP Code:
     //@version=5
    indicator(title='Range Adaptive Channel'shorttitle='RAC'overlay=true)

    string reversal_type input.string(defval='ATR'options=['ATR''Traditional'], title='Reversal Type:'inline='rt')
    float reversal_modifier input.float(defval=14title=''inline='rt')
    float reversal_multiplier input.float(defval=3title=''inline='rt'tooltip='-The type of range to use for the width of the channel. \n-Price modifier or atr length parameter depending on type. \n-Multiplier to apply to range.')
    string ALT_TF input.string(defval='D'title='Timeframe:'inline='itf')
    bool USE_ALT_TF input.bool(defval=truetitle='Use Alternative Timeframe?'inline='itf')
    float expansion_rate input.float(defval=0.25title='Expansion Rate:'inline='er')
    bool expand_range input.bool(defval=truetitle='Expand Range'inline='er'tooltip='Expand Channel by rate when price touches extremes.')

    float atr_1 ta.atr(math.max(1math.round(reversal_modifier)))
    float reversal_block 
     switch (
    reversal_type)
        (
    'ATR') => reversal_multiplier atr_1 
        
    ('Traditional') => reversal_multiplier reversal_modifier 
        
    => 0.0

    bot_function
    () =>
        
    float _bot_base high reversal_block
        float _previous 
    nz(_bot_base[1], _bot_base)
        if 
    _previous reversal_block high
            _bot_base 
    := high reversal_block
        
    else if low _previous
            
    if expand_range
                _bot_base 
    := low reversal_block expansion_rate 
            
    else
                
    _bot_base := low
        
    else
            
    _bot_base := _previous

    top_function
    () =>
        
    float _top_base low reversal_block
        float _previous 
    nz(_top_base[1], _top_base)
        if 
    _previous reversal_block low
            _top_base 
    := low reversal_block
        
    else if high _previous
            
    if expand_range
                _top_base 
    := high reversal_block expansion_rate 
            
    else
                
    _top_base := high
        
    else
            
    _top_base := _previous

    bot_function_1 
    bot_function()
    security_1 request.security(syminfo.tickeridALT_TFbot_function_1)
    bot_function_2 bot_function()
    bot USE_ALT_TF security_1 bot_function_2
    top_function_1 
    top_function()
    security_2 request.security(syminfo.tickeridALT_TFtop_function_1)
    top_function_2 top_function()
    top USE_ALT_TF security_2 top_function_2

    top_f 
    ta.change(bot) < or ta.change(top) < top na
    bot_f 
    ta.change(bot) < or ta.change(top) < bot na
    top_r 
    ta.change(bot) > or ta.change(top) > top na
    bot_r 
    ta.change(bot) > or ta.change(top) > bot na

    top_border 
    top - (top bot) * 0.25
    bot_border 
    bot + (top bot) * 0.25
    mid_border 
    bot + (top bot) * 0.50

    p_top_f 
    plot(series=top_ftitle='0'color=color.new(color.lime0), style=plot.style_linebr)
    //p_bot_f = plot(series=bot_f, title='tf', color=color.new(color.lime, 0), style=plot.style_linebr)
    p_top_r plot(series=top_rtitle='1'color=color.new(color.red0), style=plot.style_linebr)
    //p_bot_r = plot(series=bot_r, title='tr', color=color.new(color.red, 0), style=plot.style_linebr)
    //fill(p_top_f, p_bot_f, color.new(color.lime, 90), title='direction fill')
    //fill(p_top_r, p_bot_r, color.new(color.red, 90), title='direction fill')

    plot(title='0'series=botcolor=color.new(color.lime0))
    plot(title='1'series=topcolor=color.new(color.red0))

    plot(title='1'series=top_borderstyle=plot.style_circlescolor=color.new(color.red0))
    plot(title='0'series=bot_borderstyle=plot.style_circlescolor=color.new(color.lime0))
    plot(title='01'series=mid_borderstyle=plot.style_circlescolor=color.new(#537cee, 0)) 
    16.07.2024 - 10.12.2024

  6. PHP Code:
     // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
    // © arunbabumvk_23

    //@version=5
    indicator(title='Range Breakout'overlay=true)
    range_length input.int(5minval=3title='Range Length')
    rangeHighest ta.highest(highrange_length)
    rangeBreakout close rangeHighest[1] ? 0

    rangeSmallest 
    ta.lowest(lowrange_length)
    rangeBreakdown close rangeSmallest[1] ? 0

    plotshape
    (rangeBreakoutstyle=shape.labeluplocation=location.belowbarcolor=color.rgb(87146100))
    plotshape(rangeBreakdownstyle=shape.labeldownlocation=location.abovebarcolor=color.rgb(1937480)) 
    istediğiniz uzunluğa range kırılımları hesaplatabilirsiniz.....
    16.07.2024 - 10.12.2024

  7. https://tr.tradingview.com/v/O9eCvZR0/
    5 dakkalık grafiklerde denenebilir...
    16.07.2024 - 10.12.2024

  8. etiket sinyalli ve bar renklendirmeli range kodu... v5 çevrildi....

    PHP Code:
      // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
    // © DonovanWall

    //██████╗ ██╗    ██╗
    //██╔══██╗██║    ██║
    //██║  ██║██║ █╗ ██║
    //██║  ██║██║███╗██║
    //██████╔╝╚███╔███╔╝
    //╚═════╝  ╚══╝╚══╝ 

    //@version=5
    indicator(title='Range Filter [DW] & Labels'shorttitle='RF [DW] & Labels'overlay=true)

    //This is an experimental study designed to filter out minor price action for a clearer view of trends.

    //Inspired by the QQE's volatility filter, this filter applies the process directly to price rather than to a smoothed RSI.

    //First, a smooth average price range is calculated for the basis of the filter and multiplied by a specified amount.
    //Next, the filter is calculated by gating price movements that do not exceed the specified range.
    //Lastly the target ranges are plotted to display the prices that will trigger filter movement.

    //Custom bar colors are included. The color scheme is based on the filtered price trend.

    //-----------------------------------------------------------------------------------------------------------------------------------------------------------------
    //Updates:

    // -> Migrated to v4.
    // -> Range Filter and the bands are now calculated in a singular function.
    // -> There are now two different calculation methods for the filter. Select the type you want to use via the "Filter Type" input. Type 1 is the original formula.
    // -> Multiple range sizing methods are now available. You can choose from the following scales:
    //    - Points
    //    - Pips (Works best with forex pairs, obviously)
    //    - Ticks
    //    - % of Price
    //    - ATR
    //    - Average Change (Default. This is the original sizing method.)
    //    - Standard Deviation
    //    - Absolute (Absolute numerical value)
    // -> Range smoothing is now optional, and you can specify your smoothing length. Smoothing only affects dynamic scales (ATR, Average Change, and Standard Deviation).
    // -> Filter movement can now be determined using wicks or close. This can be specified via the "Movement Source" input.
    // -> Stability Fix: Added correction for NaN values to stabilize initial states.
    // -> Reorganized the script structure.
    // -> Revamped the color scheme.

    //-----------------------------------------------------------------------------------------------------------------------------------------------------------------
    //Updates:

    // - The Range Filter functions have now been rebuilt using Pine's awesome new array functions.

    // - Standard deviation calculation has been adjusted to calculate the same as TV's built in stdev() function.

    // - Rewritten filter direction and bar color variables.

    // - Included an external output variable for trend information that can easily be sent to other scripts without hardcoding.
    //   The output format is 1 for bullish, and -1 for bearish.
    //   To use this external variable with another script, simply select it from your other script's source dropdown tab.

    // - Added the ability to average range filter values based on a user defined number of filter changes.
    //   This averaging method utilized the Conditional Sampling EMA function I introduced in my Resampling Filter Pack and only takes a new sample when the filter changes its value.
    //   This opens up a whole new world of possible filter outputs.

    //-----------------------------------------------------------------------------------------------------------------------------------------------------------------
    //Functions
    //-----------------------------------------------------------------------------------------------------------------------------------------------------------------

    //Conditional Sampling EMA Function 
    Cond_EMA(xcondn) =>
        var 
    val = array.new_float(0)
        var 
    ema_val = array.new_float(1)
        if 
    cond
            
    array.push(valx)
            if array.
    size(val) > 1
                
    array.remove(val0)
            if 
    na(array.get(ema_val0))
                array.
    fill(ema_val, array.get(val0))
            array.
    set(ema_val0, (array.get(val0) - array.get(ema_val0)) * (/ (1)) + array.get(ema_val0))
        
    EMA = array.get(ema_val0)
        
    EMA

    //Conditional Sampling SMA Function
    Cond_SMA(xcondn) =>
        var 
    vals = array.new_float(0)
        if 
    cond
            
    array.push(valsx)
            if array.
    size(vals) > n
                
    array.remove(vals0)
        
    SMA = array.avg(vals)
        
    SMA

    //Standard Deviation Function
    Stdev(xn) =>
        
    math.sqrt(Cond_SMA(math.pow(x2), 1n) - math.pow(Cond_SMA(x1n), 2))

    //Range Size Function
    rng_size(xscaleqtyn) =>
        
    ATR Cond_EMA(ta.tr(true), 1n)
        
    AC Cond_EMA(math.abs(x[1]), 1n)
        
    SD Stdev(xn)
        
    rng_size scale == 'Pips' qty 0.0001 scale == 'Points' qty syminfo.pointvalue scale == '% of Price' close qty 100 scale == 'ATR' qty ATR scale == 'Average Change' qty AC scale == 'Standard Deviation' qty SD scale == 'Ticks' qty syminfo.mintick qty
        rng_size

    //Two Type Range Filter Function
    rng_filt(hlrng_ntypesmoothsnav_rfav_n) =>
        
    rng_smooth Cond_EMA(rng_1sn)
        
    smooth rng_smooth rng_
        
    var rfilt = array.new_float(2, (l) / 2)
        array.
    set(rfilt1, array.get(rfilt0))
        if 
    type == 'Type 1'
            
    if > array.get(rfilt1)
                array.
    set(rfilt0r)
            if 
    < array.get(rfilt1)
                array.
    set(rfilt0r)
        if 
    type == 'Type 2'
            
    if >= array.get(rfilt1) + r
                
    array.set(rfilt0, array.get(rfilt1) + math.floor(math.abs(- array.get(rfilt1)) / r) * r)
            if 
    <= array.get(rfilt1) - r
                
    array.set(rfilt0, array.get(rfilt1) - math.floor(math.abs(- array.get(rfilt1)) / r) * r)
        
    rng_filt1 = array.get(rfilt0)
        
    hi_band1 rng_filt1 r
        lo_band1 
    rng_filt1 r
        rng_filt2 
    Cond_EMA(rng_filt1rng_filt1 != rng_filt1[1], av_n)
        
    hi_band2 Cond_EMA(hi_band1rng_filt1 != rng_filt1[1], av_n)
        
    lo_band2 Cond_EMA(lo_band1rng_filt1 != rng_filt1[1], av_n)
        
    rng_filt av_rf rng_filt2 rng_filt1
        hi_band 
    av_rf hi_band2 hi_band1
        lo_band 
    av_rf lo_band2 lo_band1
        
    [hi_bandlo_bandrng_filt]

    //-----------------------------------------------------------------------------------------------------------------------------------------------------------------
    //Inputs
    //-----------------------------------------------------------------------------------------------------------------------------------------------------------------

    //Filter Type
    f_type input.string(defval='Type 1'options=['Type 1''Type 2'], title='Filter Type')

    //Movement Source
    mov_src input.string(defval='Close'options=['Wicks''Close'], title='Movement Source')

    //Range Size Inputs
    rng_qty input.float(defval=2.618minval=0.0000001title='Range Size')
    rng_scale input.string(defval='Average Change'options=['Points''Pips''Ticks''% of Price''ATR''Average Change''Standard Deviation''Absolute'], title='Range Scale')

    //Range Period
    rng_per input.int(defval=14minval=1title='Range Period (for ATR, Average Change, and Standard Deviation)')

    //Range Smoothing Inputs
    smooth_range input(defval=truetitle='Smooth Range')
    smooth_per input.int(defval=27minval=1title='Smoothing Period')

    //Filter Value Averaging Inputs
    av_vals input(defval=truetitle='Average Filter Changes')
    av_samples input.int(defval=2minval=1title='Number Of Changes To Average')

    //-----------------------------------------------------------------------------------------------------------------------------------------------------------------
    //Definitions
    //-----------------------------------------------------------------------------------------------------------------------------------------------------------------

    //High And Low Values
    h_val mov_src == 'Wicks' high close
    l_val 
    mov_src == 'Wicks' low close

    //Range Filter Values
    [h_bandl_bandfilt] = rng_filt(h_vall_valrng_size((h_val l_val) / 2rng_scalerng_qtyrng_per), rng_perf_typesmooth_rangesmooth_perav_valsav_samples)

    //Direction Conditions
    var fdir 0.0
    fdir 
    := filt filt[1] ? filt filt[1] ? -fdir
    upward 
    fdir == 0
    downward 
    fdir == -0

    //Colors
    filt_color upward #05ff9b : downward ? #ff0583 : #cccccc
    bar_color upward and close filt close close[1] ? #05ff9b : #00b36b : downward and close < filt ? close < close[1] ? #ff0583 : #b8005d : #cccccc

    //-----------------------------------------------------------------------------------------------------------------------------------------------------------------
    //Outputs
    //-----------------------------------------------------------------------------------------------------------------------------------------------------------------

    //Filter Plot
    filt_plot plot(filtcolor=filt_colorlinewidth=3title='Filter'transp=0)

    //Band Plots
    h_band_plot plot(h_bandcolor=color.new(#05ff9b, 100), title='High Band')
    l_band_plot plot(l_bandcolor=color.new(#ff0583, 100), title='Low Band')

    //Band Fills
    fill(h_band_plotfilt_plotcolor=color.new(#00b36b, 85), title='High Band Fill')
    fill(l_band_plotfilt_plotcolor=color.new(#b8005d, 85), title='Low Band Fill')

    //Bar Color
    barcolor(bar_color)

    //External Trend Output
    plot(fdireditable=falsedisplay=display.nonetitle='External Output - Trend Signal'transp=100)

    // Trading Conditions Logic
    longCond close filt and close close[1] and upward or close filt and close close[1] and upward 0
    shortCond 
    close filt and close close[1] and downward or close filt and close close[1] and downward 0

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

    // Plot Buy and Sell Labels
    plotshape(longConditiontitle='Buy Signal'text='BUY'textcolor=color.new(color.white0), style=shape.labelupsize=size.normallocation=location.belowbarcolor=color.new(color.green0))
    plotshape(shortConditiontitle='Sell Signal'text='SELL'textcolor=color.new(color.white0), style=shape.labeldownsize=size.normallocation=location.abovebarcolor=color.new(color.red0))

    // Alerts
    alertcondition(longConditiontitle='Buy Alert'message='BUY')
    alertcondition(shortConditiontitle='Sell Alert'message='SELL'
    16.07.2024 - 10.12.2024

Sayfa 211/275 İlkİlk ... 111161201209210211212213221261 ... 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
  •