Sayfa 290/351 İlkİlk ... 190240280288289290291292300340 ... SonSon
Arama sonucu : 2806 madde; 2,313 - 2,320 arası.

Konu: Tradingview

  1. Dynamic Flow Ribbons [BigBeluga] https://tr.tradingview.com/v/hRtkESO4/

    bu kodu siz olsanız ekler miydiniz....
    https://www.tradingview.com/x/0OKltgLn/
    https://www.tradingview.com/x/RBpitZz4/
    https://www.tradingview.com/x/JN0xz5dR/

    ben eklemezdim....neredeyse aynı hesaplama var gibi.....

    kalabalık yapar bence... gerek yok...
    16.07.2024 - 10.12.2024

  2. SMA/EMA Trade Signal https://tr.tradingview.com/v/bk7MwPZd/
    https://www.tradingview.com/x/491aJRFU/

    görüntüye bakınca uzak durmak gerektiği hemen anlaşılır....stratejide hata var....bence kullanılmamalı...
    16.07.2024 - 10.12.2024

  3. bar renklendirme koyalım...macd hesaplamalı...
    MACD Breakout SuperCandles https://tr.tradingview.com/v/rW20MRXs/ kod bu...

    https://www.tradingview.com/x/SieC4woJ/ kodun görüntüsü...

    https://www.tradingview.com/x/97VWteZG/ kombie ile beraber görüntüsü...
    16.07.2024 - 10.12.2024

  4.  Alıntı Originally Posted by @yörük@ Yazıyı Oku
    bar renklendirme koyalım...macd hesaplamalı...
    MACD Breakout SuperCandles https://tr.tradingview.com/v/rW20MRXs/ kod bu...

    https://www.tradingview.com/x/SieC4woJ/ kodun görüntüsü...

    https://www.tradingview.com/x/97VWteZG/ kombie ile beraber görüntüsü...
    kodda bar renklerinin açıklaması yazıyor....
    yeşil al, mavi güçlü al, sarı konsildasyon, kırmızı sat, ben beyaza çevirdim güçlü sat, siyah nötr anlamında....

    https://www.tradingview.com/x/2tDHEPsm/
    https://www.tradingview.com/x/OIoSBID5/

    PHP Code:
    //@version=6
    indicator(title 'kombine edilmiştir dilediğiniz değişikliği ve değer değişimlerini yapabilirsiniz keyif sizin'shorttitle '.'overlay truemax_lines_count 500max_labels_count=500)
    ///////////////////////////////////////////////////
    //@version=6

    var params "Parameters"
    src55 nz(input.source(closetitle "Source"group params))
    len55 input.int(10title "ATR Len"group params)
    multi55 input.float(1.5title "Multi"step 0.25minval 0group params)

    var 
    disp "Display"
    rng_tog input.bool(truetitle "Consolidation Ranges"group disp)
    atr_tog input.bool(falsetitle "ATR Channel"group disp)

    var 
    cols "Colors"
    up_col input.color(#3daa45, title = "Up Color", group = cols)
    down_col input.color(#ff033e, title = "Down Color", group = cols)
    flat_col input.color(color.rgb(2352436), title "Flat Color"inline "3"group cols)
    rng_col input.color(#004d9233, title = "", inline = "3", group = cols)


    //Smooths a Source similar to Rope Stabilization in a Drawing Application. OR a "Range Filter" as some might say ;)
    rope_smoother(float _src55float _threshold) =>

        var 
    float _rope _src55

        _move 
    _src55 _rope //Movement from Rope

        
    _rope += math.max(math.abs(_move) - nz(_threshold), 0) * math.sign(_move//Directional Movement beyond the Threshold
        
        
    [_rope,_rope+_threshold,_rope-_threshold//[Rope, Upper, Lower]

    ///_____________________________________________________________________________________________________________________

    //Calculating Rope
    atr ta.atr(len55)*multi55

    [rope,upper,lower] = rope_smoother(src55,atr)

    //Directional Detection
    var dir 0

    dir 
    := rope rope[1] ? rope rope[1] ? -dir

    if ta.cross(src55,rope)
        
    dir := 0

    //Directional Color Assignment    
    col dir up_col dir down_col flat_col

    ///_____________________________________________________________________________________________________________________

    //High and Low Output Lines
    var float c_hi na
    var float c_lo na

    //Counters for Accumulating Averages
    var float h_sum 0
    var float l_sum 0
    var int c_count 0

    //Flip-Flop
    var ff 1

    //Flip Flop, Pip Slip Top,
    //Bear Drop, Bull Pop, Lunch Time Chop,
    //Tight Stop, Desktop Prop.
    if dir == 0

        
    if dir[1] != 0
            h_sum 
    := 0
            l_sum 
    := 0
            c_count 
    := 0
            ff 
    := ff * -1

        h_sum 
    += upper
        l_sum 
    += lower
        c_count 
    += 1
        c_hi 
    := h_sum/c_count
        c_lo 
    := l_sum/c_count

    ///_____________________________________________________________________________________________________________________

    //Rope
    plot(ropelinewidth 3color coltitle "Trend"force_overlay true)
    /////////////////////////////
    //@version=6

    grp1 "Indicator Settings"
    tpAggressiveness input.string("low""TP Aggressiveness"options=["low""medium""high"], group=grp1tooltip="Controls how aggressive the Take Profit (TP) trigger is. Low = slower exits, High = faster exits."display display.data_window)
    src input.source(hlc3"Source"group=grp1tooltip="Price source used for band calculations"display display.data_window)
    len input.int(21"Length"group=grp1tooltip="Length for the basis calculation"display display.data_window)
    atrLen input.int(14"ATR Length"group=grp1tooltip="Length for ATR or Stdev volatility basis"display display.data_window)
    useATR input.bool(true"Use ATR"group=grp1tooltip="Toggle between ATR or standard deviation for band width"display display.data_window)

    grp2 "Visual Options"
    showRej input.bool(true"Show Take Profit Crosses"group=grp2display display.data_window)
    showBounce input.bool(true"Show Basis Bounce Arrows"group=grp2display display.data_window)
    colorbar input.bool(true"Custom Bar Color"group=grp2display display.data_window)
    green input.color(#00ffbb, "Bullish Color", group=grp2, display = display.data_window)
    red input.color(#ff1100, "Bearish Color", group=grp2, display = display.data_window)
    gray input.color(color.fuchsia"Basis Color"group=grp2display display.data_window)

    basis ta.ema(ta.ema(srclen), len)
    vol useATR ta.atr(atrLen) : ta.stdev(srclen)

    mult1 0.618
    mult2 
    1.0
    mult3 
    1.618
    mult4 
    2.618

    var int trend 0
    trend 
    := basis basis[1] ? basis basis[1] ? -nz(trend[1])

    upper1 basis vol mult1
    upper2 
    basis vol mult2
    upper3 
    basis vol mult3
    upper4 
    basis vol mult4
    lower1 
    basis vol mult1
    lower2 
    basis vol mult2
    lower3 
    basis vol mult3
    lower4 
    basis vol mult4

    plot
    (basistitle="F Trend"color=graylinewidth=1)
    ///////////////////////////
    //@version=6

    //-----------------------------------------
    // User Inputs - Time Frames & Display Settings
    //-----------------------------------------
    groupFrames 'Trend Monitoring Time Frames'

    tf1 input.timeframe('1'title='TF1 - Short'group=groupFrames)
    tf2 input.timeframe('5'title='TF2 - Medium'group=groupFrames)
    tf3 input.timeframe('15'title='TF3 - Long'group=groupFrames)

    statusThreshold input.int(3title='Min Status Matches for Candle Color'options=[1234])

    //-----------------------------------------
    // User Inputs - Candle Color Settings
    //-----------------------------------------
    groupBody 'Candle Color: Body'
    sbBodyColor     input.color(color.bluetitle='SUPERBULL Body'group=groupBody)
    bullBodyColor   input.color(color.greentitle='Bullish Body'group=groupBody)
    baseBodyColor   input.color(color.yellowtitle='Basing Body'group=groupBody)
    bearBodyColor   input.color(color.redtitle='Bearish Body'group=groupBody)
    sbearBodyColor  input.color(color.maroontitle='SUPERBEAR Body'group=groupBody)
    ghostBodyColor  input.color(color.blacktitle='Ghost Candle Body (No Match)'group=groupBody)

    groupBorder 'Candle Color: Border & Wick'
    sbBorderColor     input.color(color.bluetitle='SUPERBULL Border/Wick'group=groupBorder)
    bullBorderColor   input.color(color.greentitle='Bullish Border/Wick'group=groupBorder)
    baseBorderColor   input.color(color.yellowtitle='Basing Border/Wick'group=groupBorder)
    bearBorderColor   input.color(color.redtitle='Bearish Border/Wick'group=groupBorder)
    sbearBorderColor  input.color(color.maroontitle='SUPERBEAR Border/Wick'group=groupBorder)
    ghostBorderColor  input.color(color.blacktitle='Ghost Candle Border/Wick (No Match)'group=groupBorder)

    //-----------------------------------------
    // User Inputs - MACD Settings (at bottom per request)
    //-----------------------------------------
    groupMACD 'MACD Settings'
    macdFastLen input.int(20title='MACD Fast Length'minval=1group=groupMACD)
    macdSlowLen input.int(40title='MACD Slow Length'minval=1group=groupMACD)
    macdSignalLen input.int(5title='MACD Signal Smoothing'minval=1group=groupMACD)
    maType input.string('EMA'title='MACD MA Type'options=['EMA''SMA''WMA'], group=groupMACD)

    //-----------------------------------------
    // MACD Calculation Function
    //-----------------------------------------
    calcMACD(_src_fastLen_slowLen_signalLen) =>
        
    fastMA maType == 'EMA' ta.ema(_src_fastLen) : maType == 'SMA' ta.sma(_src_fastLen) : ta.wma(_src_fastLen)
        
    slowMA maType == 'EMA' ta.ema(_src_slowLen) : maType == 'SMA' ta.sma(_src_slowLen) : ta.wma(_src_slowLen)
        
    macdValue fastMA slowMA
        signalLine 
    maType == 'EMA' ta.ema(macdValue_signalLen) : maType == 'SMA' ta.sma(macdValue_signalLen) : ta.wma(macdValue_signalLen)
        
    hist macdValue signalLine
        
    [macdValuesignalLinehistfastMAslowMA]

    //-----------------------------------------
    // MACD (10m) Logic
    //-----------------------------------------
    [macdLinesignalLinemacdHist__] = request.security(syminfo.tickerid'10'calcMACD(closemacdFastLenmacdSlowLenmacdSignalLen))
    macdBullish macdLine signalLine
    macdStrong 
    macdBullish and macdLine > -0.25 and signalLine > -0.25
    macdSuperBear 
    not macdBullish and macdLine < -0.25 and signalLine < -0.25
    macdNeutral 
    not macdBullish and macdLine > -0.025 and signalLine > -0.025 and not macdSuperBear
    macdText 
    macdStrong 'SUPERBULL' macdSuperBear 'SUPERBEAR' macdNeutral 'Basing' macdBullish 'Bullish' 'Bearish'

    //-----------------------------------------
    // Timeframe Status Function
    //-----------------------------------------
    f_getStatus(tf) =>
        [
    smaHighsmaLow] = request.security(syminfo.tickeridtf, [ta.sma(high20), ta.sma(low20)])
        [
    macdLine_tfsignalLine_tf_fastMA_tfslowMA_tf] = request.security(syminfo.tickeridtfcalcMACD(closemacdFastLenmacdSlowLenmacdSignalLen))
        
    price_tf request.security(syminfo.tickeridtfclose)
        
    macdBullish_tf macdLine_tf signalLine_tf
        aboveSMAs 
    price_tf smaHigh and price_tf smaLow
        belowSMAs 
    price_tf smaHigh and price_tf smaLow
        belowMAs 
    macdLine_tf fastMA_tf and signalLine_tf slowMA_tf
        status 
    ''
        
    statusColor color.gray
        
    if aboveSMAs and macdBullish_tf and macdLine_tf > -0.025
            status 
    := 'SUPERBULL'
        
    else if belowSMAs and not macdBullish_tf and macdLine_tf < -0.025 and belowMAs
            status 
    := 'SUPERBEAR'
        
    else if macdLine_tf > -0.025 and not macdBullish_tf
            status 
    := 'Basing'
        
    else if aboveSMAs and macdBullish_tf
            status 
    := 'Bullish'
        
    else if not aboveSMAs and not macdBullish_tf
            status 
    := 'Bearish'
        
    [statusstatusColor]

    //-----------------------------------------
    // Timeframe Status Logic
    //-----------------------------------------
    [status1color1] = f_getStatus(tf1)
    [
    status5color5] = f_getStatus(tf2)
    [
    status15color15] = f_getStatus(tf3)

    //-----------------------------------------
    // Status Match Count
    //-----------------------------------------
    superbullCount = (macdText == 'SUPERBULL' 0) + (status1 == 'SUPERBULL' 0) + (status5 == 'SUPERBULL' 0) + (status15 == 'SUPERBULL' 0)
    superbearCount = (macdText == 'SUPERBEAR' 0) + (status1 == 'SUPERBEAR' 0) + (status5 == 'SUPERBEAR' 0) + (status15 == 'SUPERBEAR' 0)
    basingCount = (macdText == 'Basing' 0) + (status1 == 'Basing' 0) + (status5 == 'Basing' 0) + (status15 == 'Basing' 0)
    bullishCount = (macdText == 'Bullish' 0) + (status1 == 'Bullish' 0) + (status5 == 'Bullish' 0) + (status15 == 'Bullish' 0)
    bearishCount = (macdText == 'Bearish' 0) + (status1 == 'Bearish' 0) + (status5 == 'Bearish' 0) + (status15 == 'Bearish' 0)

    //-----------------------------------------
    // Candle Coloring Logic
    //-----------------------------------------
    candleBodyColor ghostBodyColor
    candleBorderWickColor 
    ghostBorderColor

    if superbullCount >= statusThreshold
        candleBodyColor 
    := sbBodyColor
        candleBorderWickColor 
    := sbBorderColor
    else if superbearCount >= statusThreshold
        candleBodyColor 
    := sbearBodyColor
        candleBorderWickColor 
    := sbearBorderColor
    else if basingCount >= statusThreshold
        candleBodyColor 
    := baseBodyColor
        candleBorderWickColor 
    := baseBorderColor
    else if bullishCount >= statusThreshold
        candleBodyColor 
    := bullBodyColor
        candleBorderWickColor 
    := bullBorderColor
    else if bearishCount >= statusThreshold
        candleBodyColor 
    := bearBodyColor
        candleBorderWickColor 
    := bearBorderColor

    plotcandle
    (openhighlowclose,
         
    title='Colored Candles',
         
    color=candleBodyColor,
         
    bordercolor=candleBorderWickColor,
         
    wickcolor=candleBorderWickColor)
    /////////////////////////////// 
    16.07.2024 - 10.12.2024

  5. Moving Average Shift [ChartPrime] https://tr.tradingview.com/v/aApUyBnk/

    görüntüde bar renklendiren kod bu.....https://www.tradingview.com/x/ncgkHTbr/ 10 değeri kullanıldı....

    pembe ise sma.. 40 değeri kullanılarak....filtreleme yapıyor....
    Son düzenleme : @yörük@; 15-06-2025 saat: 16:48.
    16.07.2024 - 10.12.2024

  6. Hodrick-Prescott Cycle Component (YavuzAkbay) https://tr.tradingview.com/v/rGcdoCKx/

    bu kod güzel....fiyat hareketinin yüzdesiyle... kanal ciziyor gibi düşünün......

    bakınız....https://www.tradingview.com/x/wG8PfC4s/
    Son düzenleme : @yörük@; 15-06-2025 saat: 16:47.
    16.07.2024 - 10.12.2024

  7. PHP Code:

    //@version=6
    indicator(title="Parabolic SAR Deviation [BigBeluga]"shorttitle="..."overlay=truemax_lines_count 500max_labels_count 500)

    //@version=6
    start input(0.)
    increment input(0.1)
    maximum input(0.9"Max Value")

    //-------------------------------------------------------------------------------------
    // SAR calculation for the chart's main timeframe
    //-------------------------------------------------------------------------------------
    out1 ta.sar(startincrementmaximum)
    plot_color close out1 color.rgb(518264) : close out1 color.rgb(16977) : na

    //-------------------------------------------------------------------------------------
    // Table settings
    //-------------------------------------------------------------------------------------
    show_header input(falsetitle="Show header?"group='Table Settings')
    dashboard_position input.string("Top center"title="Position"options=["Top right""Bottom right""Top left""Bottom left""Top center""Bottom center""Middle right"], group='Table Settings')
    text_size input.string('Normal'title="Size"options=["Tiny""Small""Normal""Large"], group='Table Settings')
    text_color input.color(color.rgb(1168224), title="Text color"group='Table Settings')
    table_color input.color(color.purpletitle="Border color"group='Table Settings')
    //uptrend_indicator = input.string("🔵", title="Uptrend indicator", group='Table Settings')
    //downtrend_indicator = input.string("🟠", title="Downtrend indicator", group='Table Settings')
    uptrend_indicator "🔵"
    downtrend_indicator "🟠"

    //--------------------------------------------------------------------------------------
    // Timeframe settings
    // User selects 10 different timeframes
    //--------------------------------------------------------------------------------------
    tf1 input.timeframe("1"title="Timeframe 1")
    tf2 input.timeframe("3"title="Timeframe 2")
    tf3 input.timeframe("5"title="Timeframe 3")
    tf4 input.timeframe("10"title="Timeframe 4")
    tf5 input.timeframe("15"title="Timeframe 5")
    tf6 input.timeframe("30"title="Timeframe 6")
    tf7 input.timeframe("60"title="Timeframe 7")
    tf8 input.timeframe("120"title="Timeframe 8")
    tf9 input.timeframe("240"title="Timeframe 9")
    tf10 input.timeframe("D"title="Timeframe 10")


    //--------------------------------------------------------------------------------------
    // Table positioning and sizing
    //--------------------------------------------------------------------------------------
    var table_position dashboard_position == 'Top center' position.top_center :
      
    dashboard_position == 'Top left' position.top_left :
      
    dashboard_position == 'Top center' position.top_center :
      
    dashboard_position == 'Bottom right' position.bottom_right :
      
    dashboard_position == 'Bottom left' position.bottom_left :
      
    dashboard_position == 'Bottom center' position.bottom_center :
      
    dashboard_position == 'Middle right' position.middle_right position.middle_right
      
    var table_text_size text_size == 'Normal' size.normal :
      
    text_size == 'Large' size.large :
      
    text_size == 'Tiny' size.tiny :
      
    text_size == 'Small' size.small size.normal

    var table.new(position=table_positioncolumns=3rows=20frame_color=#cdcbcb, frame_width=5, border_color=table_color, border_width=1,bgcolor =color.rgb(21, 21, 21) )

    //--------------------------------------------------------------------------------------
    // Function to determine trend status
    //--------------------------------------------------------------------------------------
    get_trend_status(trend_value) =>
        
    is_uptrend close trend_value
        candle_now 
    is_uptrend uptrend_indicator downtrend_indicator
        candle_now

    //--------------------------------------------------------------------------------------
    // Calculate trend and SAR value for all selected timeframes
    //--------------------------------------------------------------------------------------
    sar_1 request.security(syminfo.tickeridtf1ta.sar(startincrementmaximum))
    sar_2 request.security(syminfo.tickeridtf2ta.sar(startincrementmaximum))
    sar_3 request.security(syminfo.tickeridtf3ta.sar(startincrementmaximum))
    sar_4 request.security(syminfo.tickeridtf4ta.sar(startincrementmaximum))
    sar_5 request.security(syminfo.tickeridtf5ta.sar(startincrementmaximum))
    sar_6 request.security(syminfo.tickeridtf6ta.sar(startincrementmaximum))
    sar_7 request.security(syminfo.tickeridtf7ta.sar(startincrementmaximum))
    sar_8 request.security(syminfo.tickeridtf8ta.sar(startincrementmaximum))
    sar_9 request.security(syminfo.tickeridtf9ta.sar(startincrementmaximum))
    sar_10 request.security(syminfo.tickeridtf10ta.sar(startincrementmaximum))


    trend_indicator_1 get_trend_status(sar_1)
    trend_indicator_2 get_trend_status(sar_2)
    trend_indicator_3 get_trend_status(sar_3)
    trend_indicator_4 get_trend_status(sar_4)
    trend_indicator_5 get_trend_status(sar_5)
    trend_indicator_6 get_trend_status(sar_6)
    trend_indicator_7 get_trend_status(sar_7)
    trend_indicator_8 get_trend_status(sar_8)
    trend_indicator_9 get_trend_status(sar_9)
    trend_indicator_10 get_trend_status(sar_10)

    if 
    tf1 == "60"
        
    tf1 := "1H"
    if tf1 == "120"
        
    tf1 := "2H"
    if tf1 == "180"
        
    tf1 := "3H"
    if tf1 == "240"
        
    tf1 := "4H"

    if tf2 == "60"
        
    tf2 := "1H"
    if tf2 == "120"
        
    tf2 := "2H"
    if tf2 == "180"
        
    tf2 := "3H"
    if tf2 == "240"
        
    tf2 := "4H"

    if tf3 == "60"
        
    tf3 := "1H"
    if tf3 == "120"
        
    tf3 := "2H"
    if tf3 == "180"
        
    tf3 := "3H"
    if tf3 == "240"
        
    tf3 := "4H"

    if tf4 == "60"
        
    tf4 := "1H"
    if tf4 == "120"
        
    tf4 := "2H"
    if tf4 == "180"
        
    tf4 := "3H"
    if tf4 == "240"
        
    tf4 := "4H"

    if tf5 == "60"
        
    tf5 := "1H"
    if tf5 == "120"
        
    tf5 := "2H"
    if tf5 == "180"
        
    tf5 := "3H"
    if tf5 == "240"
        
    tf5 := "4H"

    if tf6 == "60"
        
    tf6 := "1H"
    if tf6 == "120"
        
    tf6 := "2H"
    if tf6 == "180"
        
    tf6 := "3H"
    if tf6 == "240"
        
    tf6 := "4H"

    if tf7 == "60"
        
    tf7 := "1H"
    if tf7 == "120"
        
    tf7 := "2H"
    if tf7 == "180"
        
    tf7 := "3H"
    if tf7 == "240"
        
    tf7 := "4H"

    if tf8 == "60"
        
    tf8 := "1H"
    if tf8 == "120"
        
    tf8 := "2H"
    if tf8 == "180"
        
    tf8 := "3H"
    if tf8 == "240"
        
    tf8 := "4H"

    if tf9 == "60"
        
    tf9 := "1H"
    if tf9 == "120"
        
    tf9 := "2H"
    if tf9 == "180"
        
    tf9 := "3H"
    if tf9 == "240"
        
    tf9 := "4H"

    if tf10 == "60"
        
    tf10 := "1H"
    if tf10 == "120"
        
    tf10 := "2H"
    if tf10 == "180"
        
    tf10 := "3H"
    if tf10 == "240"
        
    tf10 := "4H"


    //---------------------------------------------------------------------------------------------
    // Update table with trend data
    //---------------------------------------------------------------------------------------------
    if (barstate.islast)
       
        
    table.cell(t01tf1text_color=color.whitetext_size=table_text_size,bgcolor color.rgb(212121))
        
    table.cell(t11text="●"text_color=trend_indicator_1==uptrend_indicator?color.lime:color.red,text_size size.large)
        
    table.cell(t21str.tostring(sar_1"#.##"), text_color=color.whitetext_size=table_text_size,bgcolor color.rgb(212121))

        
    table.cell(t02tf2text_color=color.whitetext_size=table_text_size,bgcolor color.rgb(212121))
        
    table.cell(t12text="●"text_color=trend_indicator_2==uptrend_indicator?color.lime:color.red,text_size size.large)
        
    table.cell(t22str.tostring(sar_2"#.##"), text_color=color.whitetext_size=table_text_size,bgcolor color.rgb(212121))
        
        
    table.cell(t03tf3text_color=color.whitetext_size=table_text_size,bgcolorcolor.rgb(212121))
        
    table.cell(t13text="●"text_color=trend_indicator_3==uptrend_indicator?color.lime:color.red,text_size size.large)
        
    table.cell(t23str.tostring(sar_3"#.##"), text_color=color.whitetext_size=table_text_size,bgcolor color.rgb(212121))

        
    table.cell(t04tf4text_color=color.whitetext_size=table_text_sizebgcolor color.rgb(212121))
        
    table.cell(t14text="●"text_color=trend_indicator_4==uptrend_indicator?color.lime:color.red,text_size size.large)
        
    table.cell(t24str.tostring(sar_4"#.##"), text_color=color.whitetext_size=table_text_size,bgcolor color.rgb(212121))

        
    table.cell(t05tf5text_color=color.whitetext_size=table_text_sizebgcolor color.rgb(212121))
        
    table.cell(t15text="●"text_color=trend_indicator_5==uptrend_indicator?color.lime:color.red,text_size size.large)
        
    table.cell(t25str.tostring(sar_5"#.##"), text_color=color.whitetext_size=table_text_size,bgcolor color.rgb(212121))

        
    table.cell(t06tf6text_color=color.whitetext_size=table_text_size,bgcolor color.rgb(212121))
        
    table.cell(t16text="●"text_color=trend_indicator_6==uptrend_indicator?color.lime:color.red,text_size size.large)
        
    table.cell(t26str.tostring(sar_6"#.##"), text_color=color.whitetext_size=table_text_size,bgcolor color.rgb(212121))

        
    table.cell(t07tf7text_color=color.whitetext_size=table_text_size,bgcolor color.rgb(212121))
        
    table.cell(t17text="●"text_color=trend_indicator_7==uptrend_indicator?color.lime:color.red,text_size size.large)
        
    table.cell(t27str.tostring(sar_7"#.##"), text_color=color.whitetext_size=table_text_size,bgcolor color.rgb(212121))

        
    table.cell(t08tf8text_color=color.whitetext_size=table_text_size,bgcolor =  color.rgb(212121))
        
    table.cell(t18text="●"text_color=trend_indicator_8==uptrend_indicator?color.lime:color.red,text_size size.large)
        
    table.cell(t28str.tostring(sar_8"#.##"), text_color=color.whitetext_size=table_text_size,bgcolor color.rgb(212121))

        
    table.cell(t09tf9text_color=color.whitetext_size=table_text_size,bgcolor =  color.rgb(212121))
        
    table.cell(t19text="●"text_color=trend_indicator_9==uptrend_indicator?color.lime:color.red,text_size size.large)
        
    table.cell(t29str.tostring(sar_9"#.##"), text_color=color.whitetext_size=table_text_size,bgcolor color.rgb(212121))

        
    table.cell(t010tf10text_color=color.whitetext_size=table_text_size,bgcolor =  color.rgb(212121))
        
    table.cell(t110text="●"text_color=trend_indicator_10==uptrend_indicator?color.lime:color.red,text_size size.large)
        
    table.cell(t210str.tostring(sar_10"#.##"), text_color=color.whitetext_size=table_text_size,bgcolor color.rgb(212121))

     
    table.cell(t,0,0,"Periyot",text_color color.white,bgcolor color.rgb(212121))
    table.cell(t,1,0,"Trend",text_color color.white,bgcolor color.rgb(212121))
    table.cell(t,2,0,"Fiyat",text_color color.white,bgcolor color.rgb(212121))

    lookback input.int(5"Line Lookback Period"minval=1)

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

    //@version=6

    // INPUTS ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――{
    //float start = input.float(0.004, step = 0.001, group = "SAR")
    //float increment = input.float(0.004, step = 0.001, group = "SAR")
    //int maximum = 1
    bool prices input.bool(true"Signals"group "SAR")
    color col_up input.color(#40c3fb, "", inline = "col", group = "SAR")
    color col_dn input.color(#e040fb, "", inline = "col", group = "SAR")
    float deviation_size input.float(3.5"Deviation"step 0.1group "Deviation Levels")

    color color_na color.new(color.black100)
    color standart_col chart.fg_color

    // }
    // CALCULATIONS――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――{
    out ta.sma(close,50)
    deviation_levels(trend)=>
        
    float dist ta.sma(high-low100)*deviation_size

        
    var lines = array.new<line>(1line(na))
        var 
    labels = array.new<label>(1label(na))

        if 
    trend != trend[1

            for 
    1 to 4
                y 
    trend close+dist*close-dist*i

    bool trend 
    close out 
    bool trend_up 
    ta.crossover(closeout) and barstate.isconfirmed
    bool trend_dn 
    ta.crossunder(closeout) and barstate.isconfirmed

    color trend_col 
    trend col_up col_dn
    // }


    // PLOT ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――{
    if prices
        
    if trend_up
            label
    .new(bar_indexout"▲\n" str.tostring(close"#,###.####"), style=label.style_label_uptextcolor trend_colcolor color_na)

        if 
    trend_dn
            label
    .new(bar_indexoutstr.tostring(close"#,###.####") + "\n▼"style=label.style_label_downtextcolor trend_colcolor color_na)

    deviation_levels(trend)



    // }
    /////////////////////
    //////////
    SAR ta.sar(0.0.10.9)
    sqzOn ta.valuewhen(open[0] < SARSAR0)
    sqzOff ta.valuewhen(open[0] > SARSAR0)

    BE ta.valuewhen(SAR sqzOnSAR * (sqzOn SAR), 0)
    plot(BEtitle 'BE'linewidth 2style plot.style_crosscolor color.new(color.aqua50))

    SE ta.valuewhen(SAR sqzOffSAR * (SAR sqzOff), 0)
    plot(SEtitle 'SE'linewidth 2style plot.style_crosscolor color.new(color.aqua50))
    /////////////////
    s13 ta.sar(00.10.9)
    lookBack13 input(20)
    multi13 input.float(2title 'Multiplier'minval 0.001maxval 2)

    mean13 ta.ema(s13lookBack13)
    stddev multi13 ta.stdev(s13lookBack13)
    b123 mean13 stddev
    s232 
    mean13 stddev

    meanp 
    plot(mean13title 'Sar Trend'color color.new(color.yellow0))
    bsign plot(b123title 'Sar-Üst Kanal 'color color.new(color.green100), linewidth 2)
    ssign plot(s232title 'Sar-Alt Kanal 'color color.new(color.red100), linewidth 2)
    ////////////////// 
    sadeleştirilecek...kendime not
    16.07.2024 - 10.12.2024

  8. PHP Code:
    // Inputs

    string TrendMode input.string('Normal''Trend Mode'options = ['Tight''Normal''Loose''FOMC''Net'], group 'Settings'tooltip 'There are several trend modes available. The mods are lined up based on the aggressiveness of the ATR. Tight & Normal modes are the going to flip way much often whereas the Loose or FOMC will provide much higher wiggle room. The good rule of thumb to use is to just stick with first two modes when trading less volatile sessions or ranges, and use the other two on fast moving expanding environments. The Net mode provides the combination of all modes in one giant net. Some might prefer this mode since it suits well to the scale in scale out methods. ')
    string HTFMode input.string('Auto''HTF Mode'options = ['Auto''Manual'], group 'Settings'tooltip 'Changes the higher time frame mode. The HTF mode set to auto will automatically change the HTF Trend System time frame for you. The auto mode is choosing the most suitable time frames based on the pre-defined time frame pairs that are the most suitable ones. If you prefer your own time frame choose the manual mode.')
    TimeFrameM input.timeframe('60''HTF Aggregation'options = ['1''2''3''5''10''15''20''30''45''60''120''180''240''D''2D''3D''4D''W''2W''3W''M''2M''3M'], group 'Settings'tooltip 'Set the manual time frame for the HTF Trend System.')

    ShowTrendBars input(defval truetitle 'Show Trend Bars'group 'Trend Bars'tooltip 'Trend Bars are based on the DMI and ADX indicators. Whenever the DMI is bearish and ADX is above 20 the candles paint themselfs red. And vice versa for the green candles and bullish DMI. Whenever the ADX falls below the 20, candles are netural which means there is no real trend in place.')
    TrendBarBullish input(#27c22e, title = 'Bullish', group = 'Trend Bars')
    TrendBarBearish input(#ff0000, title = 'Bearish', group = 'Trend Bars')
    TrendBarNeutral input(#f4f4ee, title = 'Neutral', group = 'Trend Bars')
    ShowTrend input(defval truetitle 'Show Trend Line'group 'Trend Line'tooltip 'Trend Line is the first part of the L&L Trend System. The trend line is nothing simplier than the 13 exponential moving average. The color of the Trend Line depends on the position of multiple exponential averages and whether they are stacked on top of each other or not.')
    TrendBullish input(#27c22e, title = 'Bullish', group = 'Trend Line')
    TrendBearish input(#ff0000, title = 'Bearish', group = 'Trend Line')
    TrendNeutral input(#f4f4ee, title = 'Neutral', group = 'Trend Line')
    ShowStop input(defval truetitle 'Show Stop Line'group 'Stop Line'tooltip 'Stop Line is the main and most important part of the system. It is based on a special ATR calculation that takes into consideration the past ATRs and prices of the 13 EMA. Stop Line provides zones that no moving average can. To make it simple it is something like a moving average that uses the ATR not the average price of the previous bars.')
    StopBullish input(#27c22e, title = 'Bullish', group = 'Stop Line')
    StopBearish input(#ff0000, title = 'Bearish', group = 'Stop Line')
    ShowTrend2 input(defval falsetitle 'Show HTF Trend Line'group 'Higher Time Frame Trend Line'tooltip 'Higher Time Frame Trend Line.')
    TrendBullish2 input(#27c22e, title = 'Bullish', group = 'Higher Time Frame Trend Line')
    TrendBearish2 input(#ff0000, title = 'Bearish', group = 'Higher Time Frame Trend Line')
    TrendNeutral2 input(#f4f4ee, title = 'Neutral', group = 'Higher Time Frame Trend Line')
    ShowStop2 input(defval falsetitle 'Show HTF Stop Line'group 'Higher Time Frame Stop Line'tooltip 'Higher Time Frame Stop Line')
    StopBullish2 input(#27c22e, title = 'Bullish', group = 'Higher Time Frame Stop Line')
    StopBearish2 input(#ff0000, title = 'Bearish', group = 'Higher Time Frame Stop Line')
    ShowCloud input(defval truetitle 'Show Cloud'group 'Trend Cloud'tooltip 'Cloud will paint the area behind the Trend Line and Stop Line with custom color.')
    CloudBullish input(color.rgb(391944685), title 'Bullish'group 'Trend Cloud')
    CloudBearish input(color.rgb(2550085), title 'Bearish'group 'Trend Cloud')
    ShowHTFCloud input(defval falsetitle 'Show HTF Cloud'group 'Higher Time Frame Trend Cloud'tooltip 'Higher Time Frame Cloud.')
    CloudBullish2 input(color.rgb(391944685), title 'Bullish'group 'Higher Time Frame Trend Cloud')
    CloudBearish2 input(color.rgb(2550085), title 'Bearish'group 'Higher Time Frame Trend Cloud')

    // Trend Bars (DMI Colored Candles)

    BullishDMI high high[1] > low[1] - low and high high[1] > high high[1] : 0
    BearishDMI 
    low[1] - low high high[1] and low[1] - low low[1] - low 0
    DMIUp 
    100 ta.rma(BullishDMI14) / ta.rma(ta.tr(true), 14)
    DMIDown 100 ta.rma(BearishDMI14) / ta.rma(ta.tr(true), 14)
    ADXx DMIUp DMIDown 100 math.abs(DMIUp DMIDown) / (DMIUp DMIDown) : na
    ADX 
    ta.rma(ADXx14)
    ColorBars ShowTrendBars and DMIUp DMIDown and ADX 20 TrendBarBullish ShowTrendBars and DMIUp DMIDown and ADX 20 TrendBarBearish ShowTrendBars TrendBarNeutral na
    barcolor
    (color ColorBarseditable false)

    // Trend System (First Time Frame)

    ema8 ta.vwma(close8)
    ema13 ta.vwma(close13)
    ema21 ta.vwma(close21)
    ema34 ta.vwma(close34)
    emaup ema8 ema13 and ema13 ema21 and ema21 ema34
    emadn 
    ema8 ema13 and ema13 ema21 and ema21 ema34

    Trend 
    ta.ema(close13)
    TrendColor ShowTrend and emadn and close <= Trend TrendBearish ShowTrend and emaup and close >= Trend TrendBullish ShowTrend TrendNeutral na
    plot
    (Trendtitle 'Atr-Trend-1'color TrendColorlinewidth 2editable false)

    ATRLength = if TrendMode == 'Tight'
        
    60
    else if TrendMode == 'Normal'
        
    80
    else if TrendMode == 'Loose'
        
    100
    else if TrendMode == 'FOMC'
        
    120
    else if TrendMode == 'Net'
        
    140

    ATR 
    ATRLength 100 ta.ema(ta.tr(true), 8)
    Up close Trend ATR
    Down 
    close Trend ATR
    var 0.0
    := Up Down ? -T[1]

    StopLineColor ShowStop and == StopBullish ShowStop StopBearish na
    plotchar
    (== Trend ATR == -Trend ATR T[1], title 'StopLine'char '-'location location.absolutesize size.tinycolor StopLineColoreditable false)

    ATRA = (ATRLength 20) / 100 ta.ema(ta.tr(true), 8)
    Up11 close Trend ATRA
    Down11 
    close Trend ATRA
    var T11 0.0
    T11 
    := Up11 Down11 ? -T11[1]

    StopLineColor1 ShowStop and T11 == StopBullish ShowStop StopBearish na
    plotchar
    (T11 == Trend ATRA T11 == -Trend ATRA T11[1], title 'StopLine2'char '-'location location.absolutesize size.tinycolor StopLineColor1editable false)

    ATRNET TrendMode == 'Net' ? (ATRLength 40) / 100 ta.ema(ta.tr(true), 8) : na
    UpNET 
    close Trend ATRNET
    DownNET 
    close Trend ATRNET
    var TNET 0.0
    TNET 
    := UpNET DownNET ? -TNET[1]

    StopLineColorNET ShowStop and TNET == StopBullish ShowStop StopBearish na
    plotchar
    (TNET == Trend ATRNET TNET == -Trend ATRNET TNET[1], title 'StopLineNET'char '-'location location.absolutesize size.tinycolor StopLineColorNETeditable false)

    ATRNET1 TrendMode == 'Net' ? (ATRLength 60) / 100 ta.ema(ta.tr(true), 8) : na
    UpNET1 
    close Trend ATRNET1
    DownNET1 
    close Trend ATRNET1
    var TNET1 0.0
    TNET1 
    := UpNET1 DownNET1 ? -TNET1[1]

    StopLineColorNET1 ShowStop and TNET1 == StopBullish ShowStop StopBearish na
    plotchar
    (TNET1 == Trend ATRNET1 TNET1 == -Trend ATRNET1 TNET1[1], title 'StopLineNET1'char '-'location location.absolutesize size.tinycolor StopLineColorNET1editable false)

    ATRNET2 TrendMode == 'Net' ? (ATRLength 80) / 100 ta.ema(ta.tr(true), 8) : na
    UpNET2 
    close Trend ATRNET2
    DownNET2 
    close Trend ATRNET2
    var TNET2 0.0
    TNET2 
    := UpNET2 DownNET2 ? -TNET2[1]

    StopLineColorNET2 ShowStop and TNET2 == StopBullish ShowStop StopBearish na
    plotchar
    (TNET2 == Trend ATRNET2 TNET2 == -Trend ATRNET2 TNET2[1], title 'StopLineNET2'char '-'location location.absolutesize size.tinycolor StopLineColorNET2editable false)

    // Higher Time Frame Aggregations

    TimeFrameA timeframe.period == '1' '5' timeframe.period == '2' '5' timeframe.period == '3' '5' timeframe.period == '4' '5' timeframe.period == '5' '30' timeframe.period == '10' '30' timeframe.period == '15' '30' timeframe.period == '30' '240' timeframe.period == '60' '240' timeframe.period == '120' '240' timeframe.period == '180' 'D' timeframe.period == '240' 'D' timeframe.period == 'D' 'W' timeframe.period == 'W' 'M' timeframe.period == 'M' '3M' timeframe.period

    TimeFrame 
    = if HTFMode == 'Auto'
        
    TimeFrameA

    else if HTFMode == 'Manual'
        
    TimeFrameM

    // Trend System (Second Time Frame)

    ema82 request.security(syminfo.tickeridTimeFrameta.vwma(close8))
    ema132 request.security(syminfo.tickeridTimeFrameta.vwma(close13))
    ema212 request.security(syminfo.tickeridTimeFrameta.vwma(close21))
    ema342 request.security(syminfo.tickeridTimeFrameta.vwma(close34))
    emaup2 ema82 ema132 and ema132 ema212 and ema212 ema342
    emadn2 
    ema82 ema132 and ema132 ema212 and ema212 ema342

    Trend2 
    request.security(syminfo.tickeridTimeFrameta.ema(close13))
    TrendColor2 ShowTrend2 and emadn2 and request.security(syminfo.tickeridTimeFrameclose) <= Trend2 TrendBearish2 ShowTrend2 and emaup2 and request.security(syminfo.tickeridTimeFrameclose) >= Trend2 TrendBullish2 ShowTrend2 TrendNeutral2 na
    plot
    (Trend2title 'Atr-Trend-2'color TrendColor2linewidth 2editable false)

    ATRLength2 = if TrendMode == 'Tight'
        
    60
    else if TrendMode == 'Normal'
        
    80
    else if TrendMode == 'Loose'
        
    100
    else if TrendMode == 'FOMC'
        
    120
    else if TrendMode == 'Net'
        
    140

    ATR2 
    ATRLength2 100 request.security(syminfo.tickeridTimeFrameta.ema(ta.tr(true), 8))
    Up2 request.security(syminfo.tickeridTimeFrameclose) > Trend2 ATR2
    Down2 
    request.security(syminfo.tickeridTimeFrameclose) < Trend2 ATR2
    var T2 0.0
    T2 
    := Up2 Down2 ? -T2[1]

    StopLineColor2 ShowStop2 and T2 == StopBullish2 ShowStop2 StopBearish2 na
    plotchar
    (T2 == Trend2 ATR2 T2 == -Trend2 ATR2 T2[1], title 'StopLine2'char '-'location location.absolutesize size.tinycolor StopLineColor2editable false)

    ATR2A = (ATRLength2 20) / 100 request.security(syminfo.tickeridTimeFrameta.ema(ta.tr(true), 8))
    Up2A request.security(syminfo.tickeridTimeFrameclose) > Trend2 ATR2A
    Down2A 
    request.security(syminfo.tickeridTimeFrameclose) < Trend2 ATR2A
    var T2A 0.0
    T2A 
    := Up2A Down2A[1] ? -T2A[1]

    StopLineColor2A ShowStop2 and T2A == StopBullish2 ShowStop2 StopBearish2 na
    plotchar
    (T2A == Trend2 ATR2A T2A == -Trend2 ATR2A T2A[1], title 'StopLine2'char '-'location location.absolutesize size.tinycolor StopLineColor2Aeditable false)

    ATR2ANET TrendMode == 'Net' ? (ATRLength2 40) / 100 request.security(syminfo.tickeridTimeFrameta.ema(ta.tr(true), 8)) : na
    Up2ANET 
    request.security(syminfo.tickeridTimeFrameclose) > Trend2 ATR2ANET
    Down2ANET 
    request.security(syminfo.tickeridTimeFrameclose) < Trend2 ATR2ANET
    var T2ANET 0.0
    T2ANET 
    := Up2ANET Down2ANET[1] ? -T2ANET[1]

    StopLineColor2ANET ShowStop2 and T2ANET == StopBullish2 ShowStop2 StopBearish2 na
    plotchar
    (T2ANET == Trend2 ATR2ANET T2ANET == -Trend2 ATR2ANET T2ANET[1], title 'StopLine2'char '-'location location.absolutesize size.tinycolor StopLineColor2ANETeditable false)

    ATR2ANET1 TrendMode == 'Net' ? (ATRLength2 60) / 100 request.security(syminfo.tickeridTimeFrameta.ema(ta.tr(true), 8)) : na
    Up2ANET1 
    request.security(syminfo.tickeridTimeFrameclose) > Trend2 ATR2ANET1
    Down2ANET1 
    request.security(syminfo.tickeridTimeFrameclose) < Trend2 ATR2ANET1
    var T2ANET1 0.0
    T2ANET1 
    := Up2ANET1 Down2ANET1[1] ? -T2ANET1[1]

    StopLineColor2ANET1 ShowStop2 and T2ANET1 == StopBullish2 ShowStop2 StopBearish2 na
    plotchar
    (T2ANET1 == Trend2 ATR2ANET1 T2ANET1 == -Trend2 ATR2ANET1 T2ANET1[1], title 'StopLine2'char '-'location location.absolutesize size.tinycolor StopLineColor2ANET1editable false)

    ATR2ANET2 TrendMode == 'Net' ? (ATRLength2 80) / 100 request.security(syminfo.tickeridTimeFrameta.ema(ta.tr(true), 8)) : na
    Up2ANET2 
    request.security(syminfo.tickeridTimeFrameclose) > Trend2 ATR2ANET2
    Down2ANET2 
    request.security(syminfo.tickeridTimeFrameclose) < Trend2 ATR2ANET2
    var T2ANET2 0.0
    T2ANET2 
    := Up2ANET2 Down2ANET2[1] ? -T2ANET2[1]

    StopLineColor2ANET2 ShowStop2 and T2ANET2 == StopBullish2 ShowStop2 StopBearish2 na
    plotchar
    (T2ANET2 == Trend2 ATR2ANET2 T2ANET2 == -Trend2 ATR2ANET2 T2ANET2[1], title 'StopLine2'char '-'location location.absolutesize size.tinycolor StopLineColor2ANET2editable false)

    // Trend Clouds

    p1 plot(Trendtitle 'Trend Line'color TrendColorlinewidth 2display display.noneeditable false)
    p2 plot(== Trend ATR == -Trend ATR T[1], title 'StopLine 'color StopLineColorlinewidth 2display display.noneeditable false)
    Cloud ShowCloud and == CloudBullish ShowCloud CloudBearish na
    //fill(p1, p2, title = 'TrendCloud', color = Cloud, editable = false)

    p3 plot(Trend2title 'Trend Line 2'color TrendColor2linewidth 2display display.noneeditable false)
    p4 plot(T2 == Trend2 ATR2 T2 == -Trend2 ATR2 T2[1], title 'StopLine 2'color StopLineColor2linewidth 2display display.noneeditable false)
    Cloud2 ShowHTFCloud and T2 == CloudBullish2 ShowHTFCloud CloudBearish2 na
    //fill(p3, p4, title = 'TrendCloud2', color = Cloud2, editable = false) 
    16.07.2024 - 10.12.2024

Sayfa 290/351 İlkİlk ... 190240280288289290291292300340 ... 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
  •