Sayfa 201/272 İlkİlk ... 101151191199200201202203211251 ... SonSon
Arama sonucu : 2172 madde; 1,601 - 1,608 arası.

Konu: Tradingview

  1. https://tr.tradingview.com/v/phamIEZT/

    5-20 değerleri ile tekrar...
    ve üst üste...
    https://www.tradingview.com/x/Vz7krnWu/

    kendi sıfır çizgilerini kesmeye göre...
    sinyal olsaydı......
    https://www.tradingview.com/x/2dmlfthW/
    Doğum tarihim 16/07/2024 olarak güncellenmiştir.

  2.  Alıntı Originally Posted by @yörük@ Yazıyı Oku
    https://tr.tradingview.com/v/phamIEZT/

    5-20 değerleri ile tekrar...
    ve üst üste...
    https://www.tradingview.com/x/Vz7krnWu/

    kendi sıfır çizgilerini kesmeye göre...
    sinyal olsaydı......
    https://www.tradingview.com/x/2dmlfthW/
    https://www.tradingview.com/x/ik4Fjri8/
    Doğum tarihim 16/07/2024 olarak güncellenmiştir.

  3. Doğum tarihim 16/07/2024 olarak güncellenmiştir.


  4. https://www.tradingview.com/x/VvX7a4kJ/
    dinamik bir fibo ile trend yönü ve 0-1 arası değerleri....
    hızlı bir pivotlada kırılım noktaları....

    çizgiler gizlensin....
    https://www.tradingview.com/x/7KdLqwBh/

    ve derleme kodu....

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

    //@version=5
    indicator("Dynamic Fibonacci Retracement [HG]"overlay true,max_lines_count 100)

    input_lookback  input.int(defval 5title 'Lookback Range'minval 5)
    input_extend1    input.string(defval 'None'title 'Extend'options = ['None''Right''Left''Both'])
    input_width     input.int(defval 1title 'Width'minval 0)
    input_labels    input.bool(defval truetitle 'Labels'inline 'Labels')
    input_offset    input.int(defval 5title '| Offset Right'inline 'Labels')
    input_prices    input.bool(defval truetitle 'Prices'tooltip 'Prints the price of the level next to the retracement level.')
    input_bullColor input.color(defval color.greentitle 'Bull'inline 'color')
    input_bearColor input.color(defval color.redtitle 'Bear'inline 'color')
    input_trendline input.bool(defval truetitle 'Use Trendline'group 'Levels')
    input_use236    input.bool(defval falsetitle ''inline '0'group 'Levels')
    input_236       input.float(defval 0.236title ''inline '0'group 'Levels'step 0.01)
    input_use382    input.bool(defval falsetitle ''inline '382'group 'Levels')
    input_382       input.float(defval 0.382title ''inline '382'group 'Levels'step 0.01)
    input_use5      input.bool(defval truetitle ''inline '382'group 'Levels')
    input_5         input.float(defval 0.5title ''inline '382'group 'Levels'step 0.01)
    input_use618    input.bool(defval falsetitle ''inline '618'group 'Levels')
    input_618       input.float(defval 0.618title ''inline '618'group 'Levels'step 0.01)
    input_use786    input.bool(defval falsetitle ''inline '618'group 'Levels')
    input_786       input.float(defval 0.786title ''inline '618'group 'Levels'step 0.01)

    exType = switch input_extend1
        
    'None' => extend.none
        
    'Right' => extend.right
        
    'Left' => extend.left
        
    'Both' => extend.both

    pl1 
    fixnan(ta.pivotlow(input_lookbackinput_lookback))
    ph1 fixnan(ta.pivothigh(input_lookbackinput_lookback))
    plC ta.barssince(ta.change(pl1))
    phC ta.barssince(ta.change(ph1))

    var 
    string dir na
    since 
    phC plC plC input_lookback phC input_lookback
    if ta.change(ph1) or ta.crossunder(lowpl1)
        
    dir := 'bear'
    if ta.change(pl1) or ta.crossover(highph1)
        
    dir := 'bull'
    col dir == 'bull' input_bullColor input_bearColor

    getOuter
    (pivotsrc) =>
        var 
    srcValue src
        
    if ta.change(pivot)
            
    srcValue := pivot
        
    if pivot == ph1 src srcValue src srcValue
            srcValue 
    := src
        
    [srcValue]

    [
    h] = getOuter(ph1high)
    [
    l] = getOuter(pl1low)

    calcFib(float lofloat hifloat perc) => dir == 'bull' lo - (lo hi) * perc hi - (hi lo) * perc

    levelsArr 
    = array.from(0input_use236 input_236 nainput_use382 input_382 nainput_use5 input_5 nainput_use618 input_618 nainput_use786 input_786 na1)
    var 
    trendline  line.new(nanananastyle line.style_dottedwidth input_width)
    var 
    innerLines = array.new<line>()
    for 
    0 to 6
        
    if innerLines.size() < 7
            innerLines
    .push(line.new(nanananawidth input_width))
        
    innerLines.get(i).set_xy1(bar_index sincecalcFib(lhlevelsArr.get(i)))
        
    innerLines.get(i).set_xy2(bar_indexcalcFib(lhlevelsArr.get(i)))
        
    innerLines.get(i).set_color(col)
        
    innerLines.get(i).set_extend(exType)
        if 
    input_labels
            
    var labelArray = array.new<label>()
            if 
    labelArray.size() < 7
                labelArray
    .push(label.new(nananastyle label.style_none))
            
    labelArray.get(i).set_xy(bar_index input_offsetcalcFib(lhlevelsArr.get(i)))
            
    labelArray.get(i).set_text(str.tostring(levelsArr.get(i)) + (input_prices ' (' str.tostring(calcFib(lhlevelsArr.get(i)), format.mintick) + ')' na))
            
    labelArray.get(i).set_textcolor(col)    

    if 
    input_trendline
        
    if dir == 'bull'
            
    trendline.set_xy1(bar_index sincel)
            
    trendline.set_xy2(bar_indexh)
        else
            
    trendline.set_xy1(bar_index sinceh)
            
    trendline.set_xy2(bar_indexl)
    trendline.set_color(col)
    ///////////////////////////
    // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
    // © HoanGhetti

    //@version=5

    import HoanGhetti/SimpleTrendlines/as tl

    input_len       
    input.int(defval 5title 'Pivot Length'minval 1)
    input_pivotType input.string(defval 'Fast'title 'Pivot Type'options = ['Normal''Fast'], tooltip 'Normal: Uses Pine\'s built-in pivot system.\n\nFast: Uses a custom pivot system that tracks every reversal.')
    input_repaint   input.bool(defval truetitle 'Repainting'tooltip 'If disabled, it will wait for bar confirmation to avoid printing false alerts.')
    input_targets   input.bool(defval truetitle 'Target Levels')
    input_bearC     input.color(defval color.redtitle 'Bear Breakout'group 'Styling')
    input_bullC     input.color(defval color.greentitle 'Bull Breakout'group 'Styling')
    input_extend    input.string(defval extend.nonetitle 'Extend'options = [extend.noneextend.rightextend.leftextend.both], group 'Styling')
    input_style     input.string(defval line.style_dottedtitle 'Trendline Style'options = [line.style_dottedline.style_dashedline.style_solid], group 'Styling')
    input_tstyle    input.string(defval line.style_dashedtitle 'Target Style'options = [line.style_dottedline.style_dashedline.style_solid], group 'Styling')
    input_override  input.bool(defval truetitle 'Override Source'group 'Override'tooltip 'Overriding the source will allow the script to create trendlines on any specified source.')
    input_useSrc    input.bool(defval truetitle 'Use Source for Cross Detection'group 'Override'tooltip 'Instead of checking if the close value crossed trendline, check for the specified source.')
    input_source    input.source(defval lowtitle 'Source'group 'Override')

    pl fixnan(ta.pivotlow(input_override input_source lowinput_pivotType == 'Normal' input_len 1input_len))
    ph fixnan(ta.pivothigh(input_override input_source highinput_pivotType == 'Normal' input_len 1input_len))

    pivot(float pType) =>
        
    pivot pType == pl pl ph
        xAxis 
    ta.valuewhen(ta.change(pivot), bar_index0) - ta.valuewhen(ta.change(pivot), bar_index1)
        
    prevPivot ta.valuewhen(ta.change(pivot), pivot1)
        
    pivotCond ta.change(pivot) and (pType == pl pivot prevPivot pivot prevPivot)
        
    pData tl.new(x_axis xAxisoffset input_lenstrictMode truestrictType pType == pl 1)
        
    pData.drawLine(pivotCondprevPivotpivotinput_override input_source na)
        
    pData

    breakout
    (tl.Trendline thisfloat pType) =>
        var 
    bool hasCrossed false
        
    if ta.change(this.lines.startline.get_y1())
            
    hasCrossed := false
        this
    .drawTrendline(not hasCrossed)
        
    confirmation not hasCrossed and (input_repaint not hasCrossed barstate.isconfirmed)
        if (
    pType == pl ? (input_override and input_useSrc input_source close) < this.lines.trendline.get_y2() : (input_override and input_useSrc input_source close) > this.lines.trendline.get_y2()) and confirmation
            hasCrossed 
    := true
            this
    .lines.startline.set_xy2(this.lines.trendline.get_x2(), this.lines.trendline.get_y2())
            
    this.lines.trendline.set_xy2(nana)
            
    this.lines.startline.copy()
        
    hasCrossed

    plData 
    pivot(pl)
    phData pivot(ph)

    style(tl.Trendline thiscolor col) =>
        
    this.lines.startline.set_color(col), this.lines.trendline.set_color(col)
        
    this.lines.startline.set_width(2), this.lines.trendline.set_width(2)
        
    this.lines.trendline.set_style(input_style), this.lines.trendline.set_extend(input_extend)
    style(plDatainput_bearC), style(phDatainput_bullC)

    cu breakout(plDatapl)
    co breakout(phDataph)
    plotshape(ta.change(cu) and cu plData.lines.startline.get_y2() : natitle 'Bearish Breakout'style shape.labeldowncolor input_bearCtextcolor color.whitelocation location.abovebartext 'PS')
    plotshape(ta.change(co) and co phData.lines.startline.get_y2() : natitle 'Bullish Breakout'style shape.labelupcolor input_bullCtextcolor color.whitelocation location.belowbartext 'PA')
    alertcondition(ta.change(cu) and cu'Bearish Breakout')
    alertcondition(ta.change(co) and co'Bullish Breakout')

    // Target Levels [v4 Update]
    phData_target tl.new(phData.values.changeInX)
    plData_target tl.new(plData.values.changeInX)
    phData_target.drawLine(ta.change(phData.values.y1) and input_targetsphData.values.y2phData.values.y2)
    plData_target.drawLine(ta.change(plData.values.y1) and input_targetsplData.values.y2plData.values.y2)

    target_style(tl.Trendline thiscolor col) =>
        
    this.lines.startline.set_style(input_tstyle)
        
    this.lines.trendline.set_style(input_tstyle)
        
    this.lines.startline.set_color(col)
        
    this.lines.trendline.set_color(col)
    target_style(plData_targetinput_bearC)
    target_style(phData_targetinput_bullC)
    breakout(phData_targetph)
    breakout(plData_targetpl)
    /////////////////////// 
    Doğum tarihim 16/07/2024 olarak güncellenmiştir.

  5. Doğum tarihim 16/07/2024 olarak güncellenmiştir.

  6. https://www.tradingview.com/x/TcXOiovZ/

    bu kodu....... skalasız aynı ekrana düşürmek baya uğraştırıcı.....
    Doğum tarihim 16/07/2024 olarak güncellenmiştir.

  7. https://tr.tradingview.com/v/TQSL9xVn/

    kodun içine hull ma ve range kullanarak kombine yapmış....
    https://www.tradingview.com/x/0m0klapi/

    kodda ilgimi çeken...
    range hesaplaması....
    ile bar renklendirmesi....

    gereksiz yerleri atınca....

    PHP Code:
     //@version=5
    indicator(title="Range Filter x Hull Suite"shorttitle="RF x Hull"overlay=true)

    //selectedSession = input.string("No filter", options=["No filter", "New York", "London", "Tokyo", "Sydney"], title="Filter entry signals & alerts by session")

    grp_CS          "Candlesticks"
    //colorEntrybar   = input(true, title="Show entry candles", group=grp_CS, inline="el")
    //markEntrybar    = input(true, title="Arrow", group=grp_CS, inline="el")
    //entryLabels     = input(false, title="Label", group=grp_CS, inline="el")
    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"
    //showWatermark   = input(true, title="Show watermark", group=grp_MAIN)
    //enableSessions  = input(false, title="Show sessions", group=grp_MAIN)
    //showHullRibbon  = input(true, title="Show Hull ribbon", group=grp_MAIN)
    showRF          input(falsetitle="Show Range Filter"group=grp_MAIN)
    showRFBands     input(falsetitle="Show Range Filter bands"group=grp_MAIN)

    //grp_MAVE        = "Moving averages"
    //enableMA        = input(false, title="Show moving averages", group=grp_MAVE)
    //enableMTFMA     = input(false, title="Show MTF moving average levels", group=grp_MAVE, tooltip="This will show up to three moving average for different timeframes, defaults are set to the 144 ema, and the 3m, 5m and 15m timeframes.")
    //tripleMAFilter  = input(false, title="Triple moving average trend filter", group=grp_MAVE, tooltip="This will use 3 moving averages, short, mid and long, to detect trend when they are lined up one above the other in order for buys, and in reverse order for sells.\n\nIt is for the purpose of avoiding trades when price may likely be consolidating.")
    //showMATrendRibbon=input(false, title="Triple moving average trend ribbon", group=grp_MAVE, tooltip="This will show a ribbon at the bottom of the chart when the 3 moving averages are trending one above the other in order.")

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

    // Target Bands
    //hband = filt + smrng
    //lband = filt - smrng

    // 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(filtcolor=filtcolorlinewidth=2title="Range Filter"display=(showRF display.all display.none))

    barcolor(barcolor
    burası iş görüyor....

    bunu....önceki tasarıma ekleyince..... çizgiler iptal edilecek.....

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

    //@version=5
    indicator("Dynamic Fibonacci Retracement [HG]"overlay true,max_lines_count 100)

    input_lookback  input.int(defval 5title 'Lookback Range'minval 5)
    input_extend1    input.string(defval 'None'title 'Extend'options = ['None''Right''Left''Both'])
    input_width     input.int(defval 1title 'Width'minval 0)
    input_labels    input.bool(defval truetitle 'Labels'inline 'Labels')
    input_offset    input.int(defval 5title '| Offset Right'inline 'Labels')
    input_prices    input.bool(defval truetitle 'Prices'tooltip 'Prints the price of the level next to the retracement level.')
    input_bullColor input.color(defval color.greentitle 'Bull'inline 'color')
    input_bearColor input.color(defval color.redtitle 'Bear'inline 'color')
    input_trendline input.bool(defval truetitle 'Use Trendline'group 'Levels')
    input_use236    input.bool(defval falsetitle ''inline '0'group 'Levels')
    input_236       input.float(defval 0.236title ''inline '0'group 'Levels'step 0.01)
    input_use382    input.bool(defval falsetitle ''inline '382'group 'Levels')
    input_382       input.float(defval 0.382title ''inline '382'group 'Levels'step 0.01)
    input_use5      input.bool(defval truetitle ''inline '382'group 'Levels')
    input_5         input.float(defval 0.5title ''inline '382'group 'Levels'step 0.01)
    input_use618    input.bool(defval falsetitle ''inline '618'group 'Levels')
    input_618       input.float(defval 0.618title ''inline '618'group 'Levels'step 0.01)
    input_use786    input.bool(defval falsetitle ''inline '618'group 'Levels')
    input_786       input.float(defval 0.786title ''inline '618'group 'Levels'step 0.01)

    exType = switch input_extend1
        
    'None' => extend.none
        
    'Right' => extend.right
        
    'Left' => extend.left
        
    'Both' => extend.both

    pl1 
    fixnan(ta.pivotlow(input_lookbackinput_lookback))
    ph1 fixnan(ta.pivothigh(input_lookbackinput_lookback))
    plC ta.barssince(ta.change(pl1))
    phC ta.barssince(ta.change(ph1))

    var 
    string dir na
    since 
    phC plC plC input_lookback phC input_lookback
    if ta.change(ph1) or ta.crossunder(lowpl1)
        
    dir := 'bear'
    if ta.change(pl1) or ta.crossover(highph1)
        
    dir := 'bull'
    col dir == 'bull' input_bullColor input_bearColor

    getOuter
    (pivotsrc) =>
        var 
    srcValue src
        
    if ta.change(pivot)
            
    srcValue := pivot
        
    if pivot == ph1 src srcValue src srcValue
            srcValue 
    := src
        
    [srcValue]

    [
    h] = getOuter(ph1high)
    [
    l] = getOuter(pl1low)

    calcFib(float lofloat hifloat perc) => dir == 'bull' lo - (lo hi) * perc hi - (hi lo) * perc

    levelsArr 
    = array.from(0input_use236 input_236 nainput_use382 input_382 nainput_use5 input_5 nainput_use618 input_618 nainput_use786 input_786 na1)
    var 
    trendline  line.new(nanananastyle line.style_dottedwidth input_width)
    var 
    innerLines = array.new<line>()
    for 
    0 to 6
        
    if innerLines.size() < 7
            innerLines
    .push(line.new(nanananawidth input_width))
        
    innerLines.get(i).set_xy1(bar_index sincecalcFib(lhlevelsArr.get(i)))
        
    innerLines.get(i).set_xy2(bar_indexcalcFib(lhlevelsArr.get(i)))
        
    innerLines.get(i).set_color(col)
        
    innerLines.get(i).set_extend(exType)
        if 
    input_labels
            
    var labelArray = array.new<label>()
            if 
    labelArray.size() < 7
                labelArray
    .push(label.new(nananastyle label.style_none))
            
    labelArray.get(i).set_xy(bar_index input_offsetcalcFib(lhlevelsArr.get(i)))
            
    labelArray.get(i).set_text(str.tostring(levelsArr.get(i)) + (input_prices ' (' str.tostring(calcFib(lhlevelsArr.get(i)), format.mintick) + ')' na))
            
    labelArray.get(i).set_textcolor(col)    

    if 
    input_trendline
        
    if dir == 'bull'
            
    trendline.set_xy1(bar_index sincel)
            
    trendline.set_xy2(bar_indexh)
        else
            
    trendline.set_xy1(bar_index sinceh)
            
    trendline.set_xy2(bar_indexl)
    trendline.set_color(col)
    ///////////////////////////
    // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
    // © HoanGhetti

    //@version=5

    import HoanGhetti/SimpleTrendlines/as tl

    input_len       
    input.int(defval 5title 'Pivot Length'minval 1)
    input_pivotType input.string(defval 'Fast'title 'Pivot Type'options = ['Normal''Fast'], tooltip 'Normal: Uses Pine\'s built-in pivot system.\n\nFast: Uses a custom pivot system that tracks every reversal.')
    input_repaint   input.bool(defval truetitle 'Repainting'tooltip 'If disabled, it will wait for bar confirmation to avoid printing false alerts.')
    input_targets   input.bool(defval truetitle 'Target Levels')
    input_bearC     input.color(defval color.redtitle 'Bear Breakout'group 'Styling')
    input_bullC     input.color(defval color.greentitle 'Bull Breakout'group 'Styling')
    input_extend    input.string(defval extend.nonetitle 'Extend'options = [extend.noneextend.rightextend.leftextend.both], group 'Styling')
    input_style     input.string(defval line.style_dottedtitle 'Trendline Style'options = [line.style_dottedline.style_dashedline.style_solid], group 'Styling')
    input_tstyle    input.string(defval line.style_dashedtitle 'Target Style'options = [line.style_dottedline.style_dashedline.style_solid], group 'Styling')
    input_override  input.bool(defval truetitle 'Override Source'group 'Override'tooltip 'Overriding the source will allow the script to create trendlines on any specified source.')
    input_useSrc    input.bool(defval truetitle 'Use Source for Cross Detection'group 'Override'tooltip 'Instead of checking if the close value crossed trendline, check for the specified source.')
    input_source    input.source(defval lowtitle 'Source'group 'Override')

    pl fixnan(ta.pivotlow(input_override input_source lowinput_pivotType == 'Normal' input_len 1input_len))
    ph fixnan(ta.pivothigh(input_override input_source highinput_pivotType == 'Normal' input_len 1input_len))

    pivot(float pType) =>
        
    pivot pType == pl pl ph
        xAxis 
    ta.valuewhen(ta.change(pivot), bar_index0) - ta.valuewhen(ta.change(pivot), bar_index1)
        
    prevPivot ta.valuewhen(ta.change(pivot), pivot1)
        
    pivotCond ta.change(pivot) and (pType == pl pivot prevPivot pivot prevPivot)
        
    pData tl.new(x_axis xAxisoffset input_lenstrictMode truestrictType pType == pl 1)
        
    pData.drawLine(pivotCondprevPivotpivotinput_override input_source na)
        
    pData

    breakout
    (tl.Trendline thisfloat pType) =>
        var 
    bool hasCrossed false
        
    if ta.change(this.lines.startline.get_y1())
            
    hasCrossed := false
        this
    .drawTrendline(not hasCrossed)
        
    confirmation not hasCrossed and (input_repaint not hasCrossed barstate.isconfirmed)
        if (
    pType == pl ? (input_override and input_useSrc input_source close) < this.lines.trendline.get_y2() : (input_override and input_useSrc input_source close) > this.lines.trendline.get_y2()) and confirmation
            hasCrossed 
    := true
            this
    .lines.startline.set_xy2(this.lines.trendline.get_x2(), this.lines.trendline.get_y2())
            
    this.lines.trendline.set_xy2(nana)
            
    this.lines.startline.copy()
        
    hasCrossed

    plData 
    pivot(pl)
    phData pivot(ph)

    style(tl.Trendline thiscolor col) =>
        
    this.lines.startline.set_color(col), this.lines.trendline.set_color(col)
        
    this.lines.startline.set_width(2), this.lines.trendline.set_width(2)
        
    this.lines.trendline.set_style(input_style), this.lines.trendline.set_extend(input_extend)
    style(plDatainput_bearC), style(phDatainput_bullC)

    cu breakout(plDatapl)
    co breakout(phDataph)
    plotshape(ta.change(cu) and cu plData.lines.startline.get_y2() : natitle 'Bearish Breakout'style shape.labeldowncolor input_bearCtextcolor color.whitelocation location.abovebartext 'PS')
    plotshape(ta.change(co) and co phData.lines.startline.get_y2() : natitle 'Bullish Breakout'style shape.labelupcolor input_bullCtextcolor color.whitelocation location.belowbartext 'PA')
    alertcondition(ta.change(cu) and cu'Bearish Breakout')
    alertcondition(ta.change(co) and co'Bullish Breakout')

    // Target Levels [v4 Update]
    phData_target tl.new(phData.values.changeInX)
    plData_target tl.new(plData.values.changeInX)
    phData_target.drawLine(ta.change(phData.values.y1) and input_targetsphData.values.y2phData.values.y2)
    plData_target.drawLine(ta.change(plData.values.y1) and input_targetsplData.values.y2plData.values.y2)

    target_style(tl.Trendline thiscolor col) =>
        
    this.lines.startline.set_style(input_tstyle)
        
    this.lines.trendline.set_style(input_tstyle)
        
    this.lines.startline.set_color(col)
        
    this.lines.trendline.set_color(col)
    target_style(plData_targetinput_bearC)
    target_style(phData_targetinput_bullC)
    breakout(phData_targetph)
    breakout(plData_targetpl)
    ///////////////////////
    //@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(filtcolor=filtcolorlinewidth=1title="Range Filter"display=(showRF display.all display.none))

    barcolor(barcolor
    https://www.tradingview.com/x/JiYVAb2w/
    Doğum tarihim 16/07/2024 olarak güncellenmiştir.

Sayfa 201/272 İlkİlk ... 101151191199200201202203211251 ... 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
  •