Sayfa 205/352 İlkİlk ... 105155195203204205206207215255305 ... SonSon
Arama sonucu : 2814 madde; 1,633 - 1,640 arası.

Konu: Tradingview

  1. deneme
    PHP Code:
       // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
    // © RafaelZioni
    //@version=5
    indicator(title='SAR'overlay=true)

    len85 input(20)

    z(closelen85) =>
        
    h85 0.0
        d85 
    0.0
        
    for i85 0 to len85 1 by 1
            k85 
    = (len85 i85) * len85
            h85 
    += k85
            d85 
    += close[i85] * k85
            d85
        d85 
    h85

    c85 
    z(closemath.floor(math.sqrt(len85)))
    start85 0.01
    increment85 
    0.01
    maximum85 
    0.2
    s85 
    ta.sar(start85increment85maximum85)
    s185 z(s85len85)
    pc85 close s185 color.red color.green
    plot
    (s185,"20"style=plot.style_linecolor=pc85linewidth=1)

    len856 input(50)

    z1(closelen856) =>
        
    h856 0.0
        d856 
    0.0
        
    for i856 0 to len856 1 by 1
            k856 
    = (len856 i856) * len856
            h856 
    += k856
            d856 
    += close[i856] * k856
            d856
        d856 
    h856

    c856 
    z1(closemath.floor(math.sqrt(len856)))
    start856 0.01
    increment856 
    0.01
    maximum856 
    0.2
    s856 
    ta.sar(start856increment856maximum856)
    s1856 z1(s856len856)
    pc856 close s1856 color.red color.aqua
    plot
    (s1856,"50"style=plot.style_linecolor=pc856linewidth=1)

    len8567 input(100)

    z11(closelen8567) =>
        
    h8567 0.0
        d8567 
    0.0
        
    for i8567 0 to len8567 1 by 1
            k8567 
    = (len8567 i8567) * len8567
            h8567 
    += k8567
            d8567 
    += close[i8567] * k8567
            d8567
        d8567 
    h8567

    c8567 
    z11(closemath.floor(math.sqrt(len8567)))
    start8567 0.01
    increment8567 
    0.01
    maximum8567 
    0.2
    s8567 
    ta.sar(start8567increment8567maximum8567)
    s18567 z11(s8567len8567)
    pc8567 close s18567 color.red color.yellow
    plot
    (s18567,"100"style=plot.style_linecolor=pc8567linewidth=1
    16.07.2024 - 10.12.2024

  2. deneme

    PHP Code:
      //@version=5
    indicator("**"overlay true,max_boxes_count=500,max_lines_count=500format=format.price)

    // Custom cosh function
    cosh(float x) =>
        (
    math.exp(x) + math.exp(-x)) / 2

    // Custom acosh function
    acosh(float x) =>
        
    na math.log(math.sqrt(1))

    // Custom sinh function
    sinh(float x) =>
        (
    math.exp(x) - math.exp(-x)) / 2

    // Custom asinh function
    asinh(float x) =>
        
    math.log(math.sqrt(1))

    // Custom inverse tangent function
    atan(float x) =>
        
    math.pi math.atan(x)

    // Chebyshev Type I Moving Average
    chebyshevI(float srcint lenfloat ripple) =>
        
    0.
        b 
    0.
        g 
    0.
        chebyshev 
    0.
        
        a 
    := cosh(len acosh(/ (ripple)))
        
    := sinh(len asinh(ripple))
        
    := (b) / (b)
        
    chebyshev := (g) * src nz(chebyshev[1])
        
    chebyshev

    bool_to_float
    (bool source) =>
        
    source 0

    ema
    (source)=>
        var 
    float ema 0.0
        
    var int count 0
        count 
    := nz(count[1]) + 1
        ema 
    := (1.0 2.0 / (count 1.0)) * nz(ema[1]) + 2.0 / (count 1.0) * source
        ema

    atan2
    (yx) =>
        var 
    float angle 0.0
        
    if 0
            angle 
    := math.atan(x)
        else
            if 
    and >= 0
                angle 
    := math.atan(x) + math.pi
            
    else
                if 
    and 0
                    angle 
    := math.atan(x) - math.pi
                
    else
                    if 
    == and 0
                        angle 
    := math.pi 2
                    
    else
                        if 
    == and 0
                            angle 
    := -math.pi 2
        angle

    degrees
    (float source) =>
        
    source 180 math.pi

    tra
    ()=>
        
    atr ema(ta.tr)
        
    slope = (close close[10]) / (atr 10)
        
    angle_rad atan2(slope1)
        
    degrees degrees(angle_rad)
        
    source ta.sma((degrees high low), 2)

    mats(sourcelength) =>
        
    smooth 0.
        higher_high 
    math.max(math.sign(ta.change(ta.highest(length))), 0)
        
    lower_low math.max(math.sign(ta.change(ta.lowest(length)) * -1), 0)
        
    time_constant math.pow(ta.sma(bool_to_float(higher_high or lower_low), length), 2)
        
    smooth := nz(smooth[1] + time_constant * (source smooth[1]), source)

        
    wilders_period length 1

        atr 
    math.abs(nz(smooth[1]) - smooth)
        
    ma_atr ta.ema(atrwilders_period)
        
    delta_fast_atr ta.ema(ma_atrwilders_period) * length 0.4

        result 
    0.0
        
    if smooth nz(result[1])
            if 
    smooth delta_fast_atr result[1]
                
    result := result[1]
            else
                
    result := smooth delta_fast_atr
        
    else
            if 
    smooth delta_fast_atr result[1]
                
    result := result[1]
            else
                
    result := smooth delta_fast_atr

        
    // Return
        
    result

    length20 
    input.int(1"Length"1)

    up_color input.color(color.rgb(22364251100), ""inline "color")
    down_color input.color(color.rgb(22364251100), ""inline "color")
    enable_glow input.bool(true"Enable Glow"inline "color")

    mats20 mats(tra(), length20)


    atr20 ta.atr(length20)


    colour20 ta.sma(close1) > mats20 up_color down_color


    atr_10 
    ema(ta.tr) / 2

    alpha 
    color.new(color.black100)

    max20 mats20 atr_10

    min20 
    mats20 atr_10


    center20 
    plot(mats20"T0"colour20style=plot.style_stepline,  editable true)

    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    /////////////////////////////////////////////////////////////////////////////////
    //@version=5
    start88 input(0.1title="start"group="Parabolic SAR")
    increment88 input(0.1title="Increment"group="Parabolic SAR")
    maximum88 input(0.1title="Maximum"group="Parabolic SAR"
    out88 ta.sar(start88increment88maximum88)
    sarChange ta.change(out88<high)
    var 
    prevSar out88
    if(sarChange)
        
    prevSar := out88[1] + ((out88[1]/100)*0.0009)
     
    plot(out88 and sarChange?na:prevSarstyle=plot.style_linebroffset=-1color=out88<high?color.yellow:color.aquatitle="T1"linewidth=2)

    //////////////////////////////////////////////////////////////
    length79=(1)
    src79=close
    start179 
    input(0.1)
    increment179 input(0.1)
    maximum179 input(0.1"Max Value")
    out179 ta.sar(start179increment179maximum179)

    momo19 src79 src79[length79]

    smdo19 out179 momo19

    //plot(smdo19, "S0S", style=plot.style_line, color=color.rgb(229, 77, 243, 100))
    plot(smdo19"T"style=plot.style_lineoffset=1color=smdo19<high?color.lime:color.red,  linewidth=1)

    ////////////////////////////////////////////////////////////

    //@version=5

    len44 input.int(2'Length'step=1minval=1)
    len45 input.int(3'Length'step=1minval=1)
    len46 input.int(4'Length'step=1minval=1)
    len47 input.int(5'Length'step=1minval=1)
    displace input.int(0'Displace'step=1minval=0)
    ma_type input.string('SMA''MA Type'options=['SMA',  'HMA'])

    //Hilo Activator
    float hilo na
    hi44 
    ta.sma(highlen44)
    hi45 ta.sma(highlen45)
    hi46 ta.sma(highlen46)
    hi47 ta.sma(highlen47)
    lo44 ta.sma(lowlen44)
    lo45 ta.sma(lowlen45)
    lo46 ta.sma(lowlen46)
    lo47 ta.sma(lowlen47)


    // Hull Moving Average (HMA)
    //if ma_type == 'HMA'
        //hi := ta.wma(2 * ta.wma(high, len44 / 2) - ta.wma(high, len44), math.round(math.sqrt(len44)))
        //lo := ta.wma(2 * ta.wma(low, len44 / 2) - ta.wma(low, len44), math.round(math.sqrt(len44)))

    hilo := close hi44[displace] ? close lo44[displace] ? -hilo[1]
    hilo := close hi45[displace] ? close lo45[displace] ? -hilo[1]
    hilo := close hi46[displace] ? close lo46[displace] ? -hilo[1]
    hilo := close hi47[displace] ? close lo47[displace] ? -hilo[1]
    ghla44 hilo == -hi44[displace] : lo44[displace]
    ghla45 hilo == -hi45[displace] : lo45[displace]
    ghla46 hilo == -hi46[displace] : lo46[displace]
    ghla47 hilo == -hi47[displace] : lo47[displace]
    color44 hilo == -color.red color.lime

    //Alerts
    //buyCondition = hilo == 1 and hilo[1] == -1
    //sellCondition = hilo == -1 and hilo[1] == 1

    //if buyCondition
        //alert('Long', alert.freq_once_per_bar)

    //if sellCondition
        //alert('Short', alert.freq_once_per_bar)

    //Plots 
    plot(ghla44"T2"color=color44style=plot.style_crosslinewidth 1)
    plot(ghla45"T3"color=color44style=plot.style_crosslinewidth 1)
    plot(ghla46"T4"color=color44style=plot.style_crosslinewidth 1)
    plot(ghla47"T5"color=color44style=plot.style_crosslinewidth 1)
    //plotshape(buyCondition, title = "Long", color = color.lime, textcolor = color.lime, text = "Long", style = shape.triangleup, location = location.belowbar, size = size.small)
    //plotshape(sellCondition, title = "Short", color = color.red, textcolor = color.red, text = "Short", style = shape.triangledown, location = location.abovebar, size = size.small)


    ////////////////////////////////////////

    //@version=5
    grp_CS          "Candlesticks"
    showRanging     input(truetitle="Color consolidation candles"group=grp_CStooltip="Determined by the Range Filter settings as ranging/consolidating mid-range")
    allCandleColor  input(truetitle="Color trending candles"group=grp_CStooltip="Determined by the Range Filter settings as not ranging/consolidating")

    grp_MAIN        "General"
    showRF          input(falsetitle="Show Range Filter"group=grp_MAIN)
    showRFBands     input(falsetitle="Show Range Filter bands"group=grp_MAIN)

    // Color variables
    grp_THEME "Theme"
    upColor   input.color(color.rgb(0225255), title="Bullish*"group=grp_THEMEtooltip="This will be applied to entry candles, the Range Filter, and the Hull ribbon. These are not always technically bullish candles, but rather derive their logic from the Range Filter bar coloring instead of OHLC values.")
    downColor input.color(color.rgb(2262107), title="Bearish*"group=grp_THEMEtooltip="This will be applied to entry candles, the Range Filter, and the Hull ribbon. These are not always technically bearish candles, but rather derive their logic from the Range Filter bar coloring instead of OHLC values.")
    midColor  input.color(color.orangetitle="Consolidation candle"group=grp_THEMEtooltip="Determined by the Range Filter settings as ranging")


    //=Range Filter
    //==================================================================================================================================

    grp_RF "Range Filter"
    src input(defval=hl2title="Source"group=grp_RF)
    per input.int(defval=27minval=1title="Sampling Period"group=grp_RF)
    mult input.float(defval=2.7minval=0.1title="Range Multiplier"group=grp_RF)

    // 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])


    // Colors
    filtcolor upward upColor downward downColor midColor

    barcolor 
    src filt and src src[1] and upward ? (allCandleColor upColor na) :
       
    src filt and src src[1] and upward ? (allCandleColor upColor na) : 
       
    src filt and src src[1] and downward ? (allCandleColor downColor na) : 
       
    src filt and src src[1] and downward ? (allCandleColor downColor na) : (showRanging midColor na)

    isUpColor src filt and src src[1] and upward true :
       
    src filt and src src[1] and upward true false

    isDownColor 
    src filt and src src[1] and downward true 
       
    src filt and src src[1] and downward true false

    isOrange 
    src filt and src src[1] and upward na :
       
    src filt and src src[1] and upward na 
       
    src filt and src src[1] and downward na 
       
    src filt and src src[1] and downward na true

    //filtplot = plot(filt, color=filtcolor, linewidth=1, title="Range Filter", display=(showRF ? display.all : display.none))

    barcolor(barcolor)

    //////////////////////////

    /////////////////////// 
    16.07.2024 - 10.12.2024

  3. https://www.tradingview.com/x/VbX0EO4Y/
    sanırım tavanı hayırlı olsun diyeceğiz....
    16.07.2024 - 10.12.2024

  4. yedeklemeler....temmuz 2023...

    PHP Code:
      //@version=5
    indicator("**"overlay true,max_boxes_count=500,max_lines_count=500format=format.price)

    // Custom cosh function
    cosh(float x) =>
        (
    math.exp(x) + math.exp(-x)) / 2

    // Custom acosh function
    acosh(float x) =>
        
    na math.log(math.sqrt(1))

    // Custom sinh function
    sinh(float x) =>
        (
    math.exp(x) - math.exp(-x)) / 2

    // Custom asinh function
    asinh(float x) =>
        
    math.log(math.sqrt(1))

    // Custom inverse tangent function
    atan(float x) =>
        
    math.pi math.atan(x)

    // Chebyshev Type I Moving Average
    chebyshevI(float srcint lenfloat ripple) =>
        
    0.
        b 
    0.
        g 
    0.
        chebyshev 
    0.
        
        a 
    := cosh(len acosh(/ (ripple)))
        
    := sinh(len asinh(ripple))
        
    := (b) / (b)
        
    chebyshev := (g) * src nz(chebyshev[1])
        
    chebyshev

    bool_to_float
    (bool source) =>
        
    source 0

    ema
    (source)=>
        var 
    float ema 0.0
        
    var int count 0
        count 
    := nz(count[1]) + 1
        ema 
    := (1.0 2.0 / (count 1.0)) * nz(ema[1]) + 2.0 / (count 1.0) * source
        ema

    atan2
    (yx) =>
        var 
    float angle 0.0
        
    if 0
            angle 
    := math.atan(x)
        else
            if 
    and >= 0
                angle 
    := math.atan(x) + math.pi
            
    else
                if 
    and 0
                    angle 
    := math.atan(x) - math.pi
                
    else
                    if 
    == and 0
                        angle 
    := math.pi 2
                    
    else
                        if 
    == and 0
                            angle 
    := -math.pi 2
        angle

    degrees
    (float source) =>
        
    source 180 math.pi

    tra
    ()=>
        
    atr ema(ta.tr)
        
    slope = (close close[10]) / (atr 10)
        
    angle_rad atan2(slope1)
        
    degrees degrees(angle_rad)
        
    source ta.sma((degrees high low), 2)

    mats(sourcelength) =>
        
    smooth 0.
        higher_high 
    math.max(math.sign(ta.change(ta.highest(length))), 0)
        
    lower_low math.max(math.sign(ta.change(ta.lowest(length)) * -1), 0)
        
    time_constant math.pow(ta.sma(bool_to_float(higher_high or lower_low), length), 2)
        
    smooth := nz(smooth[1] + time_constant * (source smooth[1]), source)

        
    wilders_period length 1

        atr 
    math.abs(nz(smooth[1]) - smooth)
        
    ma_atr ta.ema(atrwilders_period)
        
    delta_fast_atr ta.ema(ma_atrwilders_period) * length 0.4

        result 
    0.0
        
    if smooth nz(result[1])
            if 
    smooth delta_fast_atr result[1]
                
    result := result[1]
            else
                
    result := smooth delta_fast_atr
        
    else
            if 
    smooth delta_fast_atr result[1]
                
    result := result[1]
            else
                
    result := smooth delta_fast_atr

        
    // Return
        
    result

    length20 
    input.int(1"Length"1)

    up_color input.color(color.rgb(22364251100), ""inline "color")
    down_color input.color(color.rgb(22364251100), ""inline "color")
    enable_glow input.bool(true"Enable Glow"inline "color")

    mats20 mats(tra(), length20)


    atr20 ta.atr(length20)


    colour20 ta.sma(close1) > mats20 up_color down_color


    atr_10 
    ema(ta.tr) / 2

    alpha 
    color.new(color.black100)

    max20 mats20 atr_10

    min20 
    mats20 atr_10


    center20 
    plot(mats20"T0"colour20style=plot.style_stepline,  editable true)

    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    /////////////////////////////////////////////////////////////////////////////////
    //@version=5
    start88 input(0.1title="start"group="Parabolic SAR")
    increment88 input(0.1title="Increment"group="Parabolic SAR")
    maximum88 input(0.1title="Maximum"group="Parabolic SAR"
    out88 ta.sar(start88increment88maximum88)
    sarChange ta.change(out88<high)
    var 
    prevSar out88
    if(sarChange)
        
    prevSar := out88[1] + ((out88[1]/100)*0.0009)
     
    plot(out88 and sarChange?na:prevSarstyle=plot.style_linebroffset=-1color=out88<high?color.yellow:color.aquatitle="T1"linewidth=2)

    //////////////////////////////////////////////////////////////
    length79=(1)
    src79=close
    start179 
    input(0.1)
    increment179 input(0.1)
    maximum179 input(0.1"Max Value")
    out179 ta.sar(start179increment179maximum179)

    momo19 src79 src79[length79]

    smdo19 out179 momo19

    //plot(smdo19, "S0S", style=plot.style_line, color=color.rgb(229, 77, 243, 100))
    plot(smdo19"T"style=plot.style_lineoffset=1color=smdo19<high?color.lime:color.red,  linewidth=1)

    ////////////////////////////////////////////////////////////

    //@version=5

    len44 input.int(2'Length'step=1minval=1)
    len45 input.int(3'Length'step=1minval=1)
    len46 input.int(4'Length'step=1minval=1)
    len47 input.int(5'Length'step=1minval=1)
    displace input.int(0'Displace'step=1minval=0)
    ma_type input.string('SMA''MA Type'options=['SMA',  'HMA'])

    //Hilo Activator
    float hilo na
    hi44 
    ta.sma(highlen44)
    hi45 ta.sma(highlen45)
    hi46 ta.sma(highlen46)
    hi47 ta.sma(highlen47)
    lo44 ta.sma(lowlen44)
    lo45 ta.sma(lowlen45)
    lo46 ta.sma(lowlen46)
    lo47 ta.sma(lowlen47)


    // Hull Moving Average (HMA)
    //if ma_type == 'HMA'
        //hi := ta.wma(2 * ta.wma(high, len44 / 2) - ta.wma(high, len44), math.round(math.sqrt(len44)))
        //lo := ta.wma(2 * ta.wma(low, len44 / 2) - ta.wma(low, len44), math.round(math.sqrt(len44)))

    hilo := close hi44[displace] ? close lo44[displace] ? -hilo[1]
    hilo := close hi45[displace] ? close lo45[displace] ? -hilo[1]
    hilo := close hi46[displace] ? close lo46[displace] ? -hilo[1]
    hilo := close hi47[displace] ? close lo47[displace] ? -hilo[1]
    ghla44 hilo == -hi44[displace] : lo44[displace]
    ghla45 hilo == -hi45[displace] : lo45[displace]
    ghla46 hilo == -hi46[displace] : lo46[displace]
    ghla47 hilo == -hi47[displace] : lo47[displace]
    color44 hilo == -color.red color.lime

    //Alerts
    //buyCondition = hilo == 1 and hilo[1] == -1
    //sellCondition = hilo == -1 and hilo[1] == 1

    //if buyCondition
        //alert('Long', alert.freq_once_per_bar)

    //if sellCondition
        //alert('Short', alert.freq_once_per_bar)

    //Plots 
    plot(ghla44"T2"color=color44style=plot.style_crosslinewidth 1)
    plot(ghla45"T3"color=color44style=plot.style_crosslinewidth 1)
    plot(ghla46"T4"color=color44style=plot.style_crosslinewidth 1)
    plot(ghla47"T5"color=color44style=plot.style_crosslinewidth 1)
    //plotshape(buyCondition, title = "Long", color = color.lime, textcolor = color.lime, text = "Long", style = shape.triangleup, location = location.belowbar, size = size.small)
    //plotshape(sellCondition, title = "Short", color = color.red, textcolor = color.red, text = "Short", style = shape.triangledown, location = location.abovebar, size = size.small)


    ////////////////////////////////////////

    //@version=5
    grp_CS          "Candlesticks"
    showRanging     input(truetitle="Color consolidation candles"group=grp_CStooltip="Determined by the Range Filter settings as ranging/consolidating mid-range")
    allCandleColor  input(truetitle="Color trending candles"group=grp_CStooltip="Determined by the Range Filter settings as not ranging/consolidating")

    grp_MAIN        "General"
    showRF          input(falsetitle="Show Range Filter"group=grp_MAIN)
    showRFBands     input(falsetitle="Show Range Filter bands"group=grp_MAIN)

    // Color variables
    grp_THEME "Theme"
    upColor   input.color(color.rgb(0225255), title="Bullish*"group=grp_THEMEtooltip="This will be applied to entry candles, the Range Filter, and the Hull ribbon. These are not always technically bullish candles, but rather derive their logic from the Range Filter bar coloring instead of OHLC values.")
    downColor input.color(color.rgb(2262107), title="Bearish*"group=grp_THEMEtooltip="This will be applied to entry candles, the Range Filter, and the Hull ribbon. These are not always technically bearish candles, but rather derive their logic from the Range Filter bar coloring instead of OHLC values.")
    midColor  input.color(color.orangetitle="Consolidation candle"group=grp_THEMEtooltip="Determined by the Range Filter settings as ranging")


    //=Range Filter
    //==================================================================================================================================

    grp_RF "Range Filter"
    src input(defval=hl2title="Source"group=grp_RF)
    per input.int(defval=27minval=1title="Sampling Period"group=grp_RF)
    mult input.float(defval=2.7minval=0.1title="Range Multiplier"group=grp_RF)

    // 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])


    // Colors
    filtcolor upward upColor downward downColor midColor

    barcolor 
    src filt and src src[1] and upward ? (allCandleColor upColor na) :
       
    src filt and src src[1] and upward ? (allCandleColor upColor na) : 
       
    src filt and src src[1] and downward ? (allCandleColor downColor na) : 
       
    src filt and src src[1] and downward ? (allCandleColor downColor na) : (showRanging midColor na)

    isUpColor src filt and src src[1] and upward true :
       
    src filt and src src[1] and upward true false

    isDownColor 
    src filt and src src[1] and downward true 
       
    src filt and src src[1] and downward true false

    isOrange 
    src filt and src src[1] and upward na :
       
    src filt and src src[1] and upward na 
       
    src filt and src src[1] and downward na 
       
    src filt and src src[1] and downward na true

    //filtplot = plot(filt, color=filtcolor, linewidth=1, title="Range Filter", display=(showRF ? display.all : display.none))

    barcolor(barcolor)

    //////////////////////////

    /////////////////////// 
    16.07.2024 - 10.12.2024

  5. döngüleme denemesi....

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

    //@version=5
    indicator("."overlay truemax_boxes_count 100)

    ////////////////////////////////
    start1 input(0)
    increment1 input(0.1)
    maximum1 input(1"Max Value")
    out1 ta.sar(start1increment1maximum1)
    plot(out1"KısaDöngü"style=plot.style_linecolor=#f0ce0e)
    /////////////////////////////////
    start2 input(0)
    increment2 input(0.1)
    maximum2 input(0.1"Max Value")
    out2 ta.sar(start2increment2maximum2)
    plot(out2"OrtaDöngü"style=plot.style_linecolor=#06deee)
    ///////////////////////////////////
    start21 input(0)
    increment21 input(0.01)
    maximum21 input(0.1"Max Value")
    out21 ta.sar(start21increment21maximum21)
    plot(out21"UzunDöngü"style=plot.style_linecolor=#f2f3f7)
    /////////////////////////////////
    start213 input(0.1)
    increment213 input(0.1)
    maximum213 input(1"Max Value")
    out213 ta.sar(start213increment213maximum213)
    plot(out213"KıyasDöngü"style=plot.style_linecolor=#c20bf0) 
    16.07.2024 - 10.12.2024

  6. PHP Code:
      //@version=5
    indicator("**"overlay true,max_boxes_count=500,max_lines_count=500)

    color greencolor #2DD204
    color redcolor #D2042D 

    int Maxncomp 5
    int MaxLag 
    20
    int MaxArrayLength 
    100

    // Calculation of the function Sn, needed to calculate the eigenvalues
    // Negative determinants are counted there 
    gaussSn(matrix<floatAfloat lint n)=>
        array<
    float= array.new<float>(n0)
        
    matrix<floatmatrix.copy(A)
        
    int count 0
        int cp 
    0
        float c 
    0.
        float s1 
    0.
        float s2 
    0.
        
    for 0 to n 
            matrix
    .set(Biimatrix.get(Bii) - l)
        for 
    0 to n 
            
    for 1 to n 
                
    if matrix.get(Bkk) == 0
                    
    for i1 0 to n 1
                        
    array.set(wi1matrix.get(Bi1k)) 
                        
    matrix.set(Bi1kmatrix.get(Bi11))
                        
    matrix.set(Bi11, array.get(wi1))
                    
    cp := cp 1
                c 
    := matrix.get(Bik) / matrix.get(Bkk
                for 
    0 to n 
                    matrix
    .set(Bijmatrix.get(Bij) - matrix.get(Bkj) * c)
        
    count := 0
        s1 
    := 1
        
    for 0 to n 
            s2 
    := matrix.get(Bii
            if 
    s2 0
                count 
    := count 1
        count

    // Calculation of eigenvalues by the bisection method}
    // The good thing is that as many eigenvalues are needed, so many will count,
    // saves a lot of resources
    gaussbisectionl(matrix<floatAint kint n)=>
        
    float e1 0.
        float maxnorm 
    0.
        float cn 
    0.
        float a1 
    0.
        float b1 
    0.
        float c 
    0.
        
    for 0 to n 
            cn 
    := 0
            
    for 0 to n 
                cn 
    := cn matrix.get(Aii
            if 
    maxnorm cn 
                maxnorm 
    := cn
        a1 
    := 0
        b1 
    := 10 maxnorm
        e1 
    := 1.0 maxnorm 10000000
        
    while math.abs(b1 a1) > e1
            c 
    := 1.0 * (a1 b1) / 2
            
    if gaussSn(Acn) < k
                a1 
    := c
            
    else
                
    b1 := c
        float out 
    = (a1 b1) / 2.0
        out

    // Calculates eigenvectors for already computed eigenvalues 
    svector(matrix<floatAfloat lint n, array<floatV)=>
        
    int cp 0
        matrix
    <floatmatrix.copy(A)
        
    float c 0
        
    array<float= array.new<float>(n0)
        for 
    0 to n 
            matrix
    .set(Biimatrix.get(Bii) - l)
        for 
    0 to n 
            
    for 1 to n 1
                
    if matrix.get(Bkk) == 0
                    
    for i1 0 to n 
                        
    array.set(wi1matrix.get(Bi1k))
                        
    matrix.set(Bi1kmatrix.get(Bi11))
                        
    matrix.set(Bi11, array.get(wi1))
                    
    cp += 1
                
                c 
    := 1.0 matrix.get(Bik) / matrix.get(Bkk
                for 
    0 to n 
                    matrix
    .set(Bijmatrix.get(Bij) - matrix.get(Bkj) * c)
        array.
    set(V11)
        
    := 1
        
    for 2 to 0 
            
    array.set(Vi0
            for 
    i to n 
                
    array.set(Vi, array.get(Vi) - matrix.get(Bij) * array.get(Vj))
            array.
    set(Vi, array.get(Vi) / matrix.get(Bii))
            
    += math.pow(array.get(Vi), 2)
        for 
    0 to n 
            
    array.set(Vi, array.get(Vi) / math.sqrt(c))

    // Fast Singular SSA - "Caterpillar" method
    // X-vector of the original series
    // n-length
    // l-lag length
    // s-number of eigencomponents
    // (there the original series is divided into components, and then restored, here you set how many components you need)
    // Y - the restored row (smoothed by the caterpillar) 
    fastsingular(array<floatXint n1int l1int s1)=>
        
    int n math.min(MaxArrayLengthn1)
        
    int l math.min(MaxLagl1)
        
    int s math.min(Maxncomps1)
        
        
    matrix<floatmatrix.new<float>(ll0.)
        
    matrix<floatmatrix.new<float>(nl0.)
        
    matrix<floatBn matrix.new<float>(ln0.)
        
    matrix<floatmatrix.new<float>(ln0.)
        
    matrix<floatYn matrix.new<float>(ln0.)
        
        var array<
    floatvtarr = array.new<float>(l0.)
        array<
    floatls = array.new<float>(MaxLag0)
        array<
    floatVtemp = array.new<float>(MaxLag0)
        array<
    float= array.new<float>(n0)
        
        
    int k 1
        
        
    // We form matrix A in the method that I downloaded from the site of the creators of this matrix S 
        
    for 0 to l 1  
            
    for 0 to l 
                matrix
    .set(Aij0)
                for 
    0 to k 
                    matrix
    .set(Aijmatrix.get(Aij) + array.get(Xm) * array.get(Xj))
                    
    matrix.set(Bmj, array.get(Xj))

        
    //Find the eigenvalues and vectors of the matrix A
        
    for 0 to s 1  
            
    array.set(lsigaussbisectionl(Ail))
            
    svector(A, array.get(lsi), lVtemp)  
            for 
    0 to l 
                matrix
    .set(Vij, array.get(Vtempj))

        
    // The restored matrix is formed
        
    for i1 0 to s 1
            
    for 0 to k 1  
                matrix
    .set(Yni1i0
                for 
    0 to l 1  
                    matrix
    .set(Yni1imatrix.get(Yni1i) + matrix.get(Bij) * matrix.get(Vi1j))

            for 
    0 to l 
                
    for 0 to k 
                    matrix
    .set(Bnijmatrix.get(Vi1i) * matrix.get(Yni1j))
                    
            
    //Diagonal averaging (series recovery)
            
    int kb k
            int lb 
    l
            
    for 0 to n 1  
                matrix
    .set(Yni1i0)
                if 
    lb 
                    
    for 0 to i
                        
    if <= k
                            matrix
    .set(Yni1imatrix.get(Yni1i) + matrix.get(Bnjj))
                        if 
    k
                            matrix
    .set(Yni1imatrix.get(Yni1i) + matrix.get(Bnjj))
                    
                    
    matrix.set(Yni1imatrix.get(Yni1i) / (1.0 * (1)))
                if (
    lb <= i) and (kb 1)
                    for 
    0 to lb 1  
                        
    if <= k
                            matrix
    .set(Yni1imatrix.get(Yni1i) + matrix.get(Bnjj))
                        if 
    k
                            matrix
    .set(Yni1imatrix.get(Yni1i) + matrix.get(Bnjj))
                    
    matrix.set(Yni1imatrix.get(Yni1i) / (1.0 lb))
                if 
    kb <= 
                    
    for kb 1 to n kb  
                        
    if <= k
                            matrix
    .set(Yni1imatrix.get(Yni1i) + matrix.get(Bnjj))
                        if 
    k
                            matrix
    .set(Yni1imatrix.get(Yni1i) + matrix.get(Bnjj))
        
                    
    matrix.set(Yni1imatrix.get(Yni1i) / (1.0 * (i))) 

        
    // Here, if not summarized, then there will be separate decomposition components
        // process by own functions 
        
    for 0 to n 1
            
    array.set(Yi0
            for 
    i1 0 to s 1  
                
    array.set(Yi, array.get(Yi) + matrix.get(Yni1i))
        
    Y

    float src 
    input.source(close"Source"group "Basic Settings")
    int lag input.int(10"Lag"group "Basic Settings")
    int ncomp input.int(2"Number of Computations"group "Basic Settings")
    int ssapernorm input.int(20"SSA Period Normalization"group "Basic Settings")
    int numbars input.int(33"Number of Bars"group "Basic Settings")
    int backbars input.int(40"Number of Bars to Render"group "Basic Settings"tooltip ="How many bars to plot.The higher the number the slower the computation.")

    bool colorbars input.bool(true"Color bars?"group "UI Options")
    bool showSigs input.bool(false"Show signals?"group "UI Options")

    float out 0.
    float sig 
    0.
    float
    [] srcVal = array.new_float(numbars 10)

    if 
    last_bar_index bar_index backbars
        
    for 0 to numbars 1
            
    array.set(srcValinz(src[i]))

        
    float[] pv fastsingular(srcValnumbarslagncomp
        
    out := array.get(pv0)
        
    sig := out[1]

    color colorout out sig greencolor redcolor

    bool goLong 
    ta.crossover(outsig)
    bool goShort ta.crossunder(outsig)

    plot(last_bar_index bar_index backbars out na"TR"color coloroutlinewidth 1)
    barcolor(last_bar_index bar_index backbars and colorbars colorout na)


    //@version=5

    // Custom cosh function
    cosh(float x) =>
        (
    math.exp(x) + math.exp(-x)) / 2

    // Custom acosh function
    acosh(float x) =>
        
    na math.log(math.sqrt(1))

    // Custom sinh function
    sinh(float x) =>
        (
    math.exp(x) - math.exp(-x)) / 2

    // Custom asinh function
    asinh(float x) =>
        
    math.log(math.sqrt(1))

    // Custom inverse tangent function
    atan(float x) =>
        
    math.pi math.atan(x)

    // Chebyshev Type I Moving Average
    chebyshevI(float srcint lenfloat ripple) =>
        
    0.
        b 
    0.
        g 
    0.
        chebyshev 
    0.
        
        a 
    := cosh(len acosh(/ (ripple)))
        
    := sinh(len asinh(ripple))
        
    := (b) / (b)
        
    chebyshev := (g) * src nz(chebyshev[1])
        
    chebyshev

    bool_to_float
    (bool source) =>
        
    source 0

    ema
    (source)=>
        var 
    float ema 0.0
        
    var int count 0
        count 
    := nz(count[1]) + 1
        ema 
    := (1.0 2.0 / (count 1.0)) * nz(ema[1]) + 2.0 / (count 1.0) * source
        ema

    atan2
    (yx) =>
        var 
    float angle 0.0
        
    if 0
            angle 
    := math.atan(x)
        else
            if 
    and >= 0
                angle 
    := math.atan(x) + math.pi
            
    else
                if 
    and 0
                    angle 
    := math.atan(x) - math.pi
                
    else
                    if 
    == and 0
                        angle 
    := math.pi 2
                    
    else
                        if 
    == and 0
                            angle 
    := -math.pi 2
        angle

    degrees
    (float source) =>
        
    source 180 math.pi

    tra
    ()=>
        
    atr ema(ta.tr)
        
    slope = (close close[10]) / (atr 10)
        
    angle_rad atan2(slope1)
        
    degrees degrees(angle_rad)
        
    source ta.sma((degrees high low), 2)

    mats(sourcelength) =>
        
    smooth 0.
        higher_high 
    math.max(math.sign(ta.change(ta.highest(length))), 0)
        
    lower_low math.max(math.sign(ta.change(ta.lowest(length)) * -1), 0)
        
    time_constant math.pow(ta.sma(bool_to_float(higher_high or lower_low), length), 2)
        
    smooth := nz(smooth[1] + time_constant * (source smooth[1]), source)

        
    wilders_period length 1

        atr 
    math.abs(nz(smooth[1]) - smooth)
        
    ma_atr ta.ema(atrwilders_period)
        
    delta_fast_atr ta.ema(ma_atrwilders_period) * length 0.4

        result 
    0.0
        
    if smooth nz(result[1])
            if 
    smooth delta_fast_atr result[1]
                
    result := result[1]
            else
                
    result := smooth delta_fast_atr
        
    else
            if 
    smooth delta_fast_atr result[1]
                
    result := result[1]
            else
                
    result := smooth delta_fast_atr

        
    // Return
        
    result

    length 
    input.int(2"Length"2)
    up_color input.color(color.lime""inline "color")
    down_color input.color(color.red""inline "color")
    enable_glow input.bool(true"Enable Glow"inline "color")

    mats mats(tra(), length)

    atr ta.atr(length)

    colour ta.sma(close2) > mats up_color down_color

    atr_10 
    ema(ta.tr) / 2

    alpha 
    color.new(color.black100)

    max mats atr_10
    min 
    mats atr_10

    center 
    plot(mats"TS"coloureditable true
    16.07.2024 - 10.12.2024

  7. deneme..
    etiketli döngü....
    PHP Code:
     // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
    // © carefulCode53358
    //@version=5
    indicator("*"overlay truemax_lines_count 100max_labels_count 100format=format.price)
    start1 input.float(title='Start'defval=0.1step=0.1)
    increment1 input.float(title='Increment'defval=0.1step=0.1)
    maximum1 input.float(title='Max Value'defval=1step=0.1)
    putlabel1 input(title='Put Labels'defval=true)
    colup1 input.color(title='Colors'defval=color.rgb(0230119100), inline='col')
    coldn1 input.color(title=''defval=color.rgb(2558282100), inline='col')

    int trend1 0
    float sar1 
    0.0
    float ep1 
    0.0
    float af1 
    0.0

    trend1 
    := nz(trend1[1])
    ep1 := nz(ep1[1])
    af1 := nz(af1[1])
    sar1 := sar1[1]

    if 
    trend1 == and not na(high[1])
        
    trend1 := high >= high[1] or low >= low[1] ? : -1
        sar1 
    := trend1 low[1] : high[1]
        
    ep1 := trend1 high[1] : low[1]
        
    af1 := start1
        af1
    else
        
    nextsar1 sar1
        
    if trend1 0
            
    if high[1] > ep1
                ep1 
    := high[1]
                
    af1 := math.min(maximum1af1 increment1)
                
    af1

            nextsar1 
    := sar1 af1 * (ep1 sar1)
            
    nextsar1 := math.min(math.min(low[1], low[2]), nextsar1)

            
    //Reversal
            
    if nextsar1 low
                trend1 
    := -1
                nextsar1 
    := ep1
                ep1 
    := low
                af1 
    := start1
                af1
        
    else
            if 
    low[1] < ep1
                ep1 
    := low[1]
                
    af1 := math.min(maximum1af1 increment1)
                
    af1

            nextsar1 
    := sar1 af1 * (ep1 sar1)
            
    nextsar1 := math.max(math.max(high[1], high[2]), nextsar1)

            
    //Reversal
            
    if nextsar1 high
                trend1 
    := 1
                nextsar1 
    := ep1
                ep1 
    := high
                af1 
    := start1
                af1
        sar1 
    := nextsar1
        sar1

    plot
    (sar1title='2.Döngü'color=trend1 colup1 coldn1linewidth=1style=plot.style_line)

    if 
    ta.change(trend1) > and putlabel1
        label
    .new(bar_indexsar1text=str.tostring(math.round_to_mintick(sar1)), color=colup1style=label.style_nonesize=size.smalltextcolor color.lime)
    if 
    ta.change(trend1) < and putlabel1
        label
    .new(bar_indexsar1text=str.tostring(math.round_to_mintick(sar1)), color=coldn1style=label.style_nonesize=size.smalltextcolor color.red)

    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    start12 input.float(title='Start'defval=0step=0.1)
    increment12 input.float(title='Increment'defval=0.1step=0.1)
    maximum12 input.float(title='Max Value'defval=1step=0.1)
    putlabel12 input(title='Put Labels'defval=true)
    colup12 input.color(title='Colors'defval=color.rgb(0230119100), inline='col')
    coldn12 input.color(title=''defval=color.rgb(2558282100), inline='col')

    int trend12 0
    float sar12 
    0.0
    float ep12 
    0.0
    float af12 
    0.0

    trend12 
    := nz(trend12[1])
    ep12 := nz(ep12[1])
    af12 := nz(af12[1])
    sar12 := sar12[1]

    if 
    trend12 == and not na(high[1])
        
    trend12 := high >= high[1] or low >= low[1] ? : -1
        sar12 
    := trend12 low[1] : high[1]
        
    ep12 := trend12 high[1] : low[1]
        
    af12 := start12
        af12
    else
        
    nextsar12 sar12
        
    if trend12 0
            
    if high[1] > ep12
                ep12 
    := high[1]
                
    af12 := math.min(maximum12af12 increment12)
                
    af12

            nextsar12 
    := sar12 af12 * (ep12 sar12)
            
    nextsar12 := math.min(math.min(low[1], low[2]), nextsar12)

            
    //Reversal
            
    if nextsar12 low
                trend12 
    := -1
                nextsar12 
    := ep12
                ep12 
    := low
                af12 
    := start12
                af12
        
    else
            if 
    low[1] < ep12
                ep12 
    := low[1]
                
    af12 := math.min(maximum12af12 increment12)
                
    af12

            nextsar12 
    := sar12 af12 * (ep12 sar12)
            
    nextsar12 := math.max(math.max(high[1], high[2]), nextsar12)

            
    //Reversal
            
    if nextsar12 high
                trend12 
    := 1
                nextsar12 
    := ep12
                ep12 
    := high
                af12 
    := start12
                af12
        sar12 
    := nextsar12
        sar12

    plot
    (sar12title='3.Döngü'color=trend12 colup12 coldn12linewidth=1style=plot.style_line)

    if 
    ta.change(trend12) > and putlabel12
        label
    .new(bar_indexsar12text=str.tostring(math.round_to_mintick(sar12)), color=colup12style=label.style_label_upsize=size.smalltextcolor color.lime)
    if 
    ta.change(trend12) < and putlabel12
        label
    .new(bar_indexsar12text=str.tostring(math.round_to_mintick(sar12)), color=coldn12style=label.style_label_downsize=size.smalltextcolor color.red)

    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    start123 input.float(title='Start'defval=0step=0.1)
    increment123 input.float(title='Increment'defval=0.1step=0.1)
    maximum123 input.float(title='Max Value'defval=0.1step=0.1)
    putlabel123 input(title='Put Labels'defval=true)
    colup123 input.color(title='Colors'defval=color.rgb(0230119100), inline='col')
    coldn123 input.color(title=''defval=color.rgb(2558282100), inline='col')

    int trend123 0
    float sar123 
    0.0
    float ep123 
    0.0
    float af123 
    0.0

    trend123 
    := nz(trend123[1])
    ep123 := nz(ep123[1])
    af123 := nz(af123[1])
    sar123 := sar123[1]

    if 
    trend123 == and not na(high[1])
        
    trend123 := high >= high[1] or low >= low[1] ? : -1
        sar123 
    := trend123 low[1] : high[1]
        
    ep123 := trend123 high[1] : low[1]
        
    af123 := start123
        af123
    else
        
    nextsar123 sar123
        
    if trend123 0
            
    if high[1] > ep123
                ep123 
    := high[1]
                
    af123 := math.min(maximum123af123 increment123)
                
    af123

            nextsar123 
    := sar123 af123 * (ep123 sar123)
            
    nextsar123 := math.min(math.min(low[1], low[2]), nextsar123)

            
    //Reversal
            
    if nextsar123 low
                trend123 
    := -1
                nextsar123 
    := ep123
                ep123 
    := low
                af123 
    := start123
                af123
        
    else
            if 
    low[1] < ep123
                ep123 
    := low[1]
                
    af123 := math.min(maximum123af123 increment123)
                
    af123

            nextsar123 
    := sar123 af123 * (ep123 sar123)
            
    nextsar123 := math.max(math.max(high[1], high[2]), nextsar123)

            
    //Reversal
            
    if nextsar123 high
                trend123 
    := 1
                nextsar123 
    := ep123
                ep123 
    := high
                af123 
    := start123
                af123
        sar123 
    := nextsar123
        sar123

    plot
    (sar123title='4.Döngü'color=trend123 colup123 coldn123linewidth=1style=plot.style_line)

    if 
    ta.change(trend123) > and putlabel123
        label
    .new(bar_indexsar123text=str.tostring(math.round_to_mintick(sar123)), color=colup123style=label.style_label_upsize=size.small,textcolor color.lime)
    if 
    ta.change(trend123) < and putlabel123
        label
    .new(bar_indexsar123text=str.tostring(math.round_to_mintick(sar123)), color=coldn123style=label.style_label_downsize=size.smalltextcolor color.red)

    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    start1234 input.float(title='Start'defval=0step=0.1)
    increment1234 input.float(title='Increment'defval=0.01step=0.1)
    maximum1234 input.float(title='Max Value'defval=0.1step=0.1)
    putlabel1234 input(title='Put Labels'defval=true)
    colup1234 input.color(title='Colors'defval=color.rgb(0230119100), inline='col')
    coldn1234 input.color(title=''defval=color.rgb(2558282100), inline='col')

    int trend1234 0
    float sar1234 
    0.0
    float ep1234 
    0.0
    float af1234 
    0.0

    trend1234 
    := nz(trend1234[1])
    ep1234 := nz(ep1234[1])
    af1234 := nz(af1234[1])
    sar1234 := sar1234[1]

    if 
    trend1234 == and not na(high[1])
        
    trend1234 := high >= high[1] or low >= low[1] ? : -1
        sar1234 
    := trend1234 low[1] : high[1]
        
    ep1234 := trend1234 high[1] : low[1]
        
    af1234 := start1234
        af1234
    else
        
    nextsar1234 sar1234
        
    if trend1234 0
            
    if high[1] > ep1234
                ep1234 
    := high[1]
                
    af1234 := math.min(maximum1234af1234 increment1234)
                
    af1234

            nextsar1234 
    := sar1234 af1234 * (ep1234 sar1234)
            
    nextsar1234 := math.min(math.min(low[1], low[2]), nextsar1234)

            
    //Reversal
            
    if nextsar1234 low
                trend1234 
    := -1
                nextsar1234 
    := ep1234
                ep1234 
    := low
                af1234 
    := start1234
                af1234
        
    else
            if 
    low[1] < ep1234
                ep1234 
    := low[1]
                
    af1234 := math.min(maximum1234af1234 increment1234)
                
    af1234

            nextsar1234 
    := sar1234 af1234 * (ep1234 sar1234)
            
    nextsar1234 := math.max(math.max(high[1], high[2]), nextsar1234)

            
    //Reversal
            
    if nextsar1234 high
                trend1234 
    := 1
                nextsar1234 
    := ep1234
                ep1234 
    := high
                af1234 
    := start1234
                af1234
        sar1234 
    := nextsar1234
        sar1234

    plot
    (sar1234title='5.Döngü'color=trend1234 colup1234 coldn1234linewidth=1style=plot.style_line)

    if 
    ta.change(trend1234) > and putlabel1234
        label
    .new(bar_indexsar1234text=str.tostring(math.round_to_mintick(sar1234)), color=colup1234style=label.style_label_upsize=size.smalltextcolor color.lime)
    if 
    ta.change(trend1234) < and putlabel1234
        label
    .new(bar_indexsar1234text=str.tostring(math.round_to_mintick(sar1234)), color=coldn1234style=label.style_label_downsize=size.smalltextcolor color.red)

    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    start12345 input.float(title='Start'defval=0.05step=0.1)
    increment12345 input.float(title='Increment'defval=0.075step=0.1)
    maximum12345 input.float(title='Max Value'defval=0.35step=0.1)
    putlabel12345 input(title='Put Labels'defval=true)
    colup12345 input.color(title='Colors'defval=color.rgb(0230119100), inline='col')
    coldn12345 input.color(title=''defval=color.rgb(2558282100), inline='col')

    int trend12345 0
    float sar12345 
    0.0
    float ep12345 
    0.0
    float af12345 
    0.0

    trend12345 
    := nz(trend12345[1])
    ep12345 := nz(ep12345[1])
    af12345 := nz(af12345[1])
    sar12345 := sar12345[1]

    if 
    trend12345 == and not na(high[1])
        
    trend12345 := high >= high[1] or low >= low[1] ? : -1
        sar12345 
    := trend12345 low[1] : high[1]
        
    ep12345 := trend12345 high[1] : low[1]
        
    af12345 := start12345
        af12345
    else
        
    nextsar12345 sar12345
        
    if trend12345 0
            
    if high[1] > ep12345
                ep12345 
    := high[1]
                
    af12345 := math.min(maximum12345af12345 increment12345)
                
    af12345

            nextsar12345 
    := sar12345 af12345 * (ep12345 sar12345)
            
    nextsar12345 := math.min(math.min(low[1], low[2]), nextsar12345)

            
    //Reversal
            
    if nextsar12345 low
                trend12345 
    := -1
                nextsar12345 
    := ep12345
                ep12345 
    := low
                af12345 
    := start12345
                af12345
        
    else
            if 
    low[1] < ep12345
                ep12345 
    := low[1]
                
    af12345 := math.min(maximum12345af12345 increment12345)
                
    af12345

            nextsar12345 
    := sar12345 af12345 * (ep12345 sar12345)
            
    nextsar12345 := math.max(math.max(high[1], high[2]), nextsar12345)

            
    //Reversal
            
    if nextsar12345 high
                trend12345 
    := 1
                nextsar12345 
    := ep12345
                ep12345 
    := high
                af12345 
    := start12345
                af12345
        sar12345 
    := nextsar12345
        sar12345

    plot
    (sar12345title='1.Döngü'color=trend12345 colup12345 coldn12345linewidth=1style=plot.style_line)

    if 
    ta.change(trend12345) > and putlabel12345
        label
    .new(bar_indexsar12345text=str.tostring(math.round_to_mintick(sar12345)), color=colup12345style=label.style_label_upsize=size.smalltextcolor color.lime)
    if 
    ta.change(trend12345) < and putlabel1234
        label
    .new(bar_indexsar12345text=str.tostring(math.round_to_mintick(sar12345)), color=coldn12345style=label.style_label_downsize=size.smalltextcolor color.red)

    //////////////////////////////////////////////////////// 
    16.07.2024 - 10.12.2024


Sayfa 205/352 İlkİlk ... 105155195203204205206207215255305 ... 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
  •