Artan

34,10 10 18:10
12,00 9.99 18:10
6.742,50 9.99 18:10
36,58 9.98 18:10
18,32 9.96 18:10
Artan Hisseler

Azalan

477,00 -10 18:10
7,92 -10 18:10
95,40 -10 18:10
31,90 -9.99 18:10
30,48 -9.98 18:10
Azalan Hisseler

İşlem

15.610.120.553,75 18:10
15.395.772.063,75 18:10
12.839.122.521,65 18:10
11.391.294.342,66 18:10
10.987.845.810,50 18:10
Tüm Hisseler
Sayfa 363/364 İlkİlk ... 263313353361362363364 SonSon
Arama sonucu : 2911 madde; 2,897 - 2,904 arası.

Konu: Tradingview

  1. PHP Code:
    //@version=6
    // by tncylyv(jay555b)
    indicator("CISD by tncylyv"shorttitle=".."overlay=truemax_lines_count=500max_labels_count=500)

    var 
    string vanity_group "Visual Settings"

    magic_wand_toggle input.bool(true"Show Active CISD Level (Plot)"group=vanity_group)

    drama_filter input.string("Both""Triggered CISD Display"options=["Both""Bullish Only""Bearish Only""None"], group=vanity_group)

    amnesia_mode input.bool(false"Limit Displayed Historical Lines"group=vanity_group)
    short_term_memory input.int(10"Max Lines to Show"minval=1group=vanity_group)

    yell_at_me input.bool(true"Show Labels"group=vanity_group)
    girth_units input.int(1"Line Width"minval=1group=vanity_group)
    scream_volume input.string(size.normal"Label Size"options=[size.tinysize.smallsize.normalsize.large], group=vanity_group)

    hipster_font_toggle input.string("Default""Font Family"options=["Default""Monospace"], group=vanity_group)
    fashion_choice input.string("Solid""Triggered Line Style"options=["Solid""Dashed""Dotted"], group=vanity_group)

    crayon_box "Colors"
    shrek_mode input.color(color.new(color.green0), "Bullish CISD"group=crayon_box)
    blood_bath input.color(color.new(color.red0), "Bearish CISD"group=crayon_box)

    nerd_stats "Debug"
    paranoia_switch input.bool(false"Debug: Show Extreme Tracking"group=nerd_stats)

    gossip_column "HTF Trend Panel" 
    stalker_mode input.bool(true"Show Multi-Timeframe Table"group=gossip_column)
    feng_shui input.string("Bottom Right""Table Position"options=["Top Right""Middle Right""Bottom Right""Bottom Left"], group=gossip_column)
    eye_test input.string("Small""Table Size"options=["Tiny""Small""Normal""Large"], group=gossip_column)
    // ---------------------------------------------------------

    var string fancy_typeface hipster_font_toggle == "Monospace" font.family_monospace font.family_default

    decode_fashion_statement
    (outfit) =>
        switch 
    outfit
            
    "Solid"  => line.style_solid
            
    "Dashed" => line.style_dashed
            
    => line.style_dotted

    chosen_style 
    decode_fashion_statement(fashion_choice)

    var 
    int vibes 0
    var float bagholder_entry na
    var int time_machine_setting na
    var float pain_threshold na

    var label sticky_note_of_shame na
    var array<linegraveyard_of_hopes = array.new<line>()
    var array<
    labelchoir_of_screams = array.new<label>()

    consult_the_crystal_ball(int bias) =>
        
    int temporal_shift 0
        float ancient_price 
    open
        
    for 0 to 500
            int candle_attitude 
    close[i] > open[i] ? close[i] < open[i] ? -0
            
    if candle_attitude == 0
                
    continue
            
    bool mood_match candle_attitude == bias
            
    if not mood_match
                
    break
            
    temporal_shift := i
            ancient_price 
    := open[i]
        [
    ancient_pricebar_index temporal_shift]

    archaeologist_jones(int bias) =>
        
    int i 1
        bool artifact_found 
    false
        int dig_site_idx 
    0
        float artifact_value 
    na
        
    for 1 to 500
            i 
    := j
            int candle_attitude 
    close[i] > open[i] ? close[i] < open[i] ? -0
            
    if candle_attitude == 0
                
    continue
            
    bool is_correct_era candle_attitude == bias
            
    if not artifact_found
                
    if is_correct_era
                    artifact_found 
    := true
                    dig_site_idx 
    := i
                    artifact_value 
    := open[i]
            else
                if 
    not is_correct_era
                    
    break
                
    dig_site_idx := i
                artifact_value 
    := open[i]
        [
    artifact_valuebar_index dig_site_idx]

    if 
    vibes == and bar_index 10
        int first_impression 
    close open close open ? -0
        
    if first_impression == 0
            
    for 1 to 50
                first_impression 
    := close[k] > open[k] ? close[k] < open[k] ? -0
                
    if first_impression != 0
                    
    break
        if 
    first_impression != 0
            vibes 
    := first_impression
            
    [origin_priceorigin_time] = consult_the_crystal_ball(first_impression)
            
    bagholder_entry := origin_price
            time_machine_setting 
    := origin_time
            pain_threshold 
    := first_impression == high low

    int candle_personality 
    close open close open ? -0
    float fresh_hopium 
    na
    int fresh_timestamp 
    na

    if vibes == 1
        
    if high pain_threshold
            pain_threshold 
    := high
            
    if candle_personality == 1
                
    [p_pricep_idx] = consult_the_crystal_ball(1)
                
    fresh_hopium := p_price
                fresh_timestamp 
    := p_idx
            
    else
                [
    p_pricep_idx] = archaeologist_jones(1)
                
    fresh_hopium := p_price
                fresh_timestamp 
    := p_idx
            bagholder_entry 
    := fresh_hopium
            time_machine_setting 
    := fresh_timestamp

    else if vibes == -1
        
    if low pain_threshold
            pain_threshold 
    := low
            
    if candle_personality == -1
                
    [p_pricep_idx] = consult_the_crystal_ball(-1)
                
    fresh_hopium := p_price
                fresh_timestamp 
    := p_idx
            
    else
                [
    p_pricep_idx] = archaeologist_jones(-1)
                
    fresh_hopium := p_price
                fresh_timestamp 
    := p_idx
            bagholder_entry 
    := fresh_hopium
            time_machine_setting 
    := fresh_timestamp

    bool shorts_squeezed 
    vibes == -and close bagholder_entry
    bool longs_rekt 
    vibes == and close bagholder_entry

    if shorts_squeezed or longs_rekt
        bool should_i_paint_it 
    false
        
        
    if drama_filter == "Both"
            
    should_i_paint_it := true
        
    else if drama_filter == "Bullish Only"
            
    should_i_paint_it := shorts_squeezed
        
    else if drama_filter == "Bearish Only"
            
    should_i_paint_it := longs_rekt

        
    if should_i_paint_it
            color mood_ring 
    shorts_squeezed shrek_mode blood_bath
            line tragedy_line 
    line.new(time_machine_settingbagholder_entrybar_indexbagholder_entrycolor=mood_ringwidth=girth_unitsstyle=chosen_style)
            array.
    push(graveyard_of_hopestragedy_line)

            
    label loud_noise na
            
    //if yell_at_me
                //int middle_of_nowhere = math.round((time_machine_setting + bar_index) / 2)
                //string gibberish = shorts_squeezed ? "+ALL" : "-SAT"
                //color ink_color = shorts_squeezed ? shrek_mode : blood_bath
                //loud_noise := label.new(middle_of_nowhere, bagholder_entry, gibberish, style=shorts_squeezed ? label.style_label_down : label.style_label_up, color=color.new(#000000, 100), textcolor=ink_color, size=scream_volume, text_font_family = fancy_typeface)
            
            
    array.push(choir_of_screamsloud_noise)

        
    int new_emotional_state shorts_squeezed : -1
        vibes 
    := new_emotional_state
        
    [reset_pricereset_time] = consult_the_crystal_ball(new_emotional_state)
        
    bagholder_entry := reset_price
        time_machine_setting 
    := reset_time
        pain_threshold 
    := new_emotional_state == high low

    color active_crayon 
    vibes == shrek_mode blood_bath

    plot
    (magic_wand_toggle bagholder_entry na"Trend"color=active_crayonlinewidth=girth_unitsstyle=plot.style_stepline)
    ///////////////////////


    start88 input.float(0.'Starting value')
    inc88 input.float(0.01'Increment')
    max88 input.float(0.02'Max Value')
    width input.float(3.00'Zone width')

    atrs ta.atr(100) * width
    sarone 
    ta.sar(start88inc88max88)
    sarzone = if close sarone
        sarone 
    atrs
    else if close sarone
        sarone 
    atrs
    sartwo 
    ta.sar(start88 2inc88 2max88 2)

    p1 plot(sarone'3Gir'color close sarone #2962ff00 : #e91e6200, style = plot.style_circles)
    p3 plot(sarzone'3Çık'color close sarone #2962ff00 : #e91e6200, style = plot.style_circles)
    /////////////////////
    width2 input.float(5.00'Zone width')
    atrs2 ta.atr(100) * width2
    sarone2 
    ta.sar(start88inc88max88)
    sarzone2 = if close sarone2
        sarone2 
    atrs2
    else if close sarone2
        sarone2 
    atrs2
    sartwo2 
    ta.sar(start88 2inc88 2max88 2)

    p12 plot(sarone2'5Gir'color close sarone2 #2962ff00 : #e91e6200, style = plot.style_circles)
    p32 plot(sarzone2'5Çık'color close sarone2 #2962ff00 : #e91e6200, style = plot.style_circles)
    ///////////////////////
    width24 input.float(9.00'Zone width')
    atrs24 ta.atr(100) * width24
    sarone24 
    ta.sar(start88inc88max88)
    sarzone24 = if close sarone24
        sarone24 
    atrs24
    else if close sarone24
        sarone24 
    atrs24
    sartwo24 
    ta.sar(start88 2inc88 2max88 2)

    p124 plot(sarone24'9Gir'color close sarone24 #2962ff00 : #e91e6200, style = plot.style_circles)
    p324 plot(sarzone24'9Çık'color close sarone24 #2962ff00 : #e91e6200, style = plot.style_circles)
    ////////////////////////////// 
    sarla scalping denemesi örneği... https://www.tradingview.com/x/9m0J5xES/
    16.07.2024 - 10.12.2024

  2. atr ve sar scalping deneme örneği.... https://www.tradingview.com/x/wwXfRTmq/
    PHP Code:
    //@version=6
    // by tncylyv(jay555b)
    indicator("CISD by tncylyv"shorttitle=".."overlay=truemax_lines_count=500max_labels_count=500)

    //////////////////////
    // 1. PSAR (Fiyata EN YAKIN / En Agresif)
    // Artış oranı çok yüksek (0.05) olduğu için fiyata hemen yapışır.
    start1 0.0 // İsteğiniz üzerine SIFIR
    inc1 input.float(0.05title '1. Artış (En Yakın)'step 0.01group '1. En Yakın PSAR')
    max1 input.float(0.50title '1. Limit'step 0.05group '1. En Yakın PSAR')

    // 2. PSAR (Orta Yakınlık)
    start2 0.01 // İsteğiniz üzerine SIFIR
    inc2 input.float(0.1title '2. Artış (Orta)'step 0.01group '2. Orta PSAR')
    max2 input.float(0.99title '2. Limit'step 0.05group '2. Orta PSAR')

    // 3. PSAR (Nispeten Daha Uzak ama Standarttan Yakın)
    start3 0. // İsteğiniz üzerine SIFIR
    inc3 input.float(0.1title '3. Artış (Uzak)'step 0.01group '3. Uzak PSAR')
    max3 input.float(0.99title '3. Limit'step 0.05group '3. Uzak PSAR')

    // 4. PSAR (Nispeten Daha Uzak ama Standarttan Yakın)
    start33 0. // İsteğiniz üzerine SIFIR
    inc33 input.float(0.01title '3. Artış (Uzak)'step 0.01group '3. Uzak PSAR')
    max33 input.float(0.99title '3. Limit'step 0.05group '3. Uzak PSAR')

    // --- HESAPLAMALAR ---
    psar1 ta.sar(start1inc1max1)
    psar2 ta.sar(start2inc2max2)
    psar3 ta.sar(start3inc3max3)

    psar33 ta.sar(start33inc33max33)

    /////
    // Define colors for bullish and bearish conditions
    GreenFluorescent color.rgb(02550)
    RedFluorescent color.rgb(25500)

    plot(psar1"3HS",style plot.style_crosscolor close psar1 GreenFluorescent close psar1 RedFluorescent na)
    plot(psar2,"SR1"style plot.style_crosscolor close psar2 GreenFluorescent close psar2 RedFluorescent na)
    plot(psar3,"SR2"style plot.style_crosscolor close psar3 GreenFluorescent close psar3 RedFluorescent na)
    plot(psar33,"4TR"style plot.style_crosscolor close psar33 GreenFluorescent close psar33 RedFluorescent na)
    //h=(psar2+psar3)/2
    //plot(h,"0", style = plot.style_stepline, color = close > h ? color.yellow : close < h ? color.fuchsia : na)
    //////////////////////////////////


    // Inputs
    input(1title 'Key Vaule. \'This changes the sensitivity\'')
    input(10title 'ATR Period')
    input(truetitle 'Signals from Heikin Ashi Candles')

    xATR ta.atr(c)
    nLoss xATR

    src77 
    request.security(ticker.heikinashi(syminfo.tickerid), timeframe.periodcloselookahead barmerge.lookahead_off) : close

    xATRTrailingStop 
    0.0
    iff_1 
    src77 nz(xATRTrailingStop[1], 0) ? src77 nLoss src77 nLoss
    iff_2 
    src77 nz(xATRTrailingStop[1], 0) and src77[1] < nz(xATRTrailingStop[1], 0) ? math.min(nz(xATRTrailingStop[1]), src77 nLoss) : iff_1
    xATRTrailingStop 
    := src77 nz(xATRTrailingStop[1], 0) and src77[1] > nz(xATRTrailingStop[1], 0) ? math.max(nz(xATRTrailingStop[1]), src77 nLoss) : iff_2

    pos 
    0
    iff_3 
    src77[1] > nz(xATRTrailingStop[1], 0) and src77 nz(xATRTrailingStop[1], 0) ? -nz(pos[1], 0)
    pos := src77[1] < nz(xATRTrailingStop[1], 0) and src77 nz(xATRTrailingStop[1], 0) ? iff_3

    xcolor 
    pos == -color.red pos == color.green color.blue

    ema 
    ta.ema(src771)
    above ta.crossover(emaxATRTrailingStop)
    below ta.crossover(xATRTrailingStopema)

    buy src77 xATRTrailingStop and above
    sell 
    src77 xATRTrailingStop and below

    barbuy 
    src77 xATRTrailingStop
    barsell 
    src77 xATRTrailingStop

    plotshape
    (buytitle 'Buy'text 'A'style shape.labeluplocation location.belowbarcolor color.new(color.green0), textcolor color.new(color.white0), size size.tiny)
    plotshape(selltitle 'Sell'text 'S'style shape.labeldownlocation location.abovebarcolor color.new(color.red0), textcolor color.new(color.white0), size size.tiny)

    barcolor(barbuy color.green na)
    barcolor(barsell color.red na)

    alertcondition(buy'UT Long''UT Long')
    alertcondition(sell'UT Short''UT Short')
    ///////////////////////////////////// 
    16.07.2024 - 10.12.2024

  3. PHP Code:
    //@version=6

    indicator(title '..'shorttitle '.' overlay true)

    // PMI_LA Indicator Parameters
    sm input(4title 'PMI_LA Smoothing Period')
    cd input(0.4title 'PMI_LA Constant D')
    cd1 input(-0.6title 'PMI_LA Constant D')
    cd12 input(1.4title 'PMI_LA Constant D')
    ebc input(falsetitle 'PMI_LA Color Bars')
    ribm input(falsetitle 'PMI_LA Ribbon Mode')

    // Buy Sell Indicator Parameters
    input(2title 'BSI Multiplier')
    input(30title 'BSI ATR Period')
    input(falsetitle 'BSI Heikin Ashi Candles')

    // PMI_LA Calculation
    var float i1 na
    var float i2 na
    var float i3 na
    var float i4 na
    var float i5 na
    var float i6 na
    var float bfr na
    var float bfr1 na
    var float bfr12 na
    var color bfrC na
    var color bfrC1 na
    var color bfrC12 na
    var float di na
    var float c1 na
    var float c2 na
    var float c3 na
    var float c33 na
    var float c333 na
    var float c4 na
    var float c44 na
    var float c444 na
    var float c5 na
    var float c55 na
    var float c555 na

    src_pmi 
    close
    di 
    := (sm 1.0) / 2.0 1.0
    c1 
    := / (di 1.0)
    c2 := c1
    c3 
    := 3.0 * (cd cd cd cd cd)
    c33 := 3.0 * (cd1 cd1cd1 cd1 cd1)
    c333 := 3.0 * (cd12 cd12cd12 cd12 cd12)
    c4 := -3.0 * (2.0 cd cd cd cd cd cd)
    c44 := -3.0 * (2.0 cd1 cd1 cd1 cd1 cd1 cd1)
    c444 := -3.0 * (2.0 cd12 cd12 cd12 cd12 cd12 cd12)
    c5 := 3.0 cd 1.0 cd cd cd 3.0 cd cd
    c55 
    := 3.0 cd1 1.0 cd1 cd1 cd1 3.0 cd1 cd1
    c555 
    := 3.0 cd12 1.0 cd12 cd12 cd12 3.0 cd12 cd12
    i1 
    := c1 src_pmi c2 nz(i1[1])
    i2 := c1 i1 c2 nz(i2[1])
    i3 := c1 i2 c2 nz(i3[1])
    i4 := c1 i3 c2 nz(i4[1])
    i5 := c1 i4 c2 nz(i5[1])
    i6 := c1 i5 c2 nz(i6[1])
    bfr := -cd cd cd i6 c3 i5 c4 i4 c5 i3
    bfr1 
    := -cd1 cd1 cd1 i6 c33 i5 c44 i4 c55 i3
    bfr12 
    := -cd12 cd12 cd12 i6 c333 i5 c444 i4 c555 i3
    bfrC 
    := bfr nz(bfr[1]) ? color.rgb(7617579100) : bfr nz(bfr[1]) ? color.rgb(2558282100) : color.rgb(33149243100)
    bfrC1 := bfr1 nz(bfr1[1]) ? color.rgb(7617579100) : bfr1 nz(bfr1[1]) ? color.rgb(2558282100) : color.rgb(33149243100)
    bfrC12 := bfr12 nz(bfr12[1]) ? color.rgb(7617579100) : bfr12 nz(bfr12[1]) ? color.rgb(2558282100) : color.rgb(33149243100)

    // Buy Sell Indicator Calculation
    xATR ta.atr(c)
    nLoss xATR
    src_bsi 
    request.security(ticker.heikinashi(syminfo.tickerid), timeframe.periodcloselookahead barmerge.lookahead_off) : close
    var float xATRTrailingStop na
    iff_1 
    src_bsi nz(xATRTrailingStop[1], 0) ? src_bsi nLoss src_bsi nLoss
    iff_2 
    src_bsi nz(xATRTrailingStop[1], 0) and src_bsi[1] < nz(xATRTrailingStop[1], 0) ? math.min(nz(xATRTrailingStop[1]), src_bsi nLoss) : iff_1
    xATRTrailingStop 
    := src_bsi nz(xATRTrailingStop[1], 0) and src_bsi[1] > nz(xATRTrailingStop[1], 0) ? math.max(nz(xATRTrailingStop[1]), src_bsi nLoss) : iff_2
    var int pos na
    pos 
    := src_bsi[1] < nz(xATRTrailingStop[1], 0) and src_bsi nz(xATRTrailingStop[1], 0) ? src_bsi[1] > nz(xATRTrailingStop[1], 0) and src_bsi nz(xATRTrailingStop[1], 0) ? -nz(pos[1], 0)

    xcolor pos == -color.red pos == color.green color.blue
    ema 
    ta.ema(src_bsi1)
    above ta.crossover(emaxATRTrailingStop)
    below ta.crossover(xATRTrailingStopema)
    buy src_bsi xATRTrailingStop and above
    sell 
    src_bsi xATRTrailingStop and below

    // Plotting
    plot(ribm na bfrtitle 'C()'linewidth 2color bfrCstyle=plot.style_circles)
    plot(ribm na bfr1title 'D()'linewidth 2color bfrC1style=plot.style_circles)
    plot(ribm na bfr12title 'B()'linewidth 2color bfrC12style=plot.style_circles)
    //bgcolor(ribm ? bfrC : na)

    //plotshape(buy, title = 'Buy', text = 'Buy', style = shape.labelup, location = location.belowbar, color = color.new(color.green, 0), textcolor = color.new(color.black, 0), size = size.tiny)
    //plotshape(sell, title = 'Sell', text = 'Sell', style = shape.labeldown, location = location.abovebar, color = color.new(color.red, 0), textcolor = color.new(color.black, 0), size = size.tiny)

    //barcolor(buy ? color.green : sell ? color.red : na)

    //alertcondition(buy, 'Purra Long', 'Purra Long')
    //alertcondition(sell, 'Purra Short', 'Purra Short')
    /////////////////////
    // Constants
    const string calc   "Core Calculation Settings" 
    const string thres  "Signals Settings"
    const string ui     "Plotting and Coloring"
    const color  GREEN  #48ff0000
    const color  RED    #ff000000

    // Inputs
    int   calc_p        input.int(3"Average True Range Period"group=calc)
    float atr_factor    input.float(0.3"Factor"step 0.1group=calc)
    int   start         input.int(1"For Loop Start"inline="FL"group=calc)
    int   end           input.int(4"End",maxval 50inline="FL"group=calc)

    bool  show_refs     input.bool(false"Show Reference Lines"group=thres)
    bool  showls        input.bool(true"Show Long and Short Signals On Chart?"group=thres)
    int   thresL        input.int(3"Long Threshold"group=thresinline=thres)
    int   thresS        input.int(-3"Short Threshold"group=thresinline=thres)

    color longcol       input.color(GREEN"Long Color"group=ui)
    color shortcol      input.color(RED"Short Color"group=ui)
    int   lineW         input.int(1"Line Width"group=ui)
    bool  onchart       input.bool(true"Show On Chart?"group=ui)
    bool  paintCandles  input.bool(false"Paint Candles to Trend?"group=ui)
    bool  bgCol         input.bool(false"Background Color?"group=ui)

    method transp(color xint t) =>
        
    color.new(xt)

    // Types
    type tCalc
        float atr
        float band
        float trail
        float up
        float dn
        float score

    type tCond
        bool longCond
        bool shortCond

    type tState
        int signal

    var tCalc  c99  tCalc.new(nananananana)
    var 
    tCond  cd99 tCond.new(falsefalse)
    var 
    tState st tState.new(1)
    var 
    color coloring na 
    float scoreS 
    0.0

    // Core calcs 
    c99.atr  := ta.atr(calc_p)
    c99.band := c99.atr atr_factor

    var float trailS na
    trailS 
    := close
    trailS 
    := nz(trailS[1], trailS)

    c99.up := close c99.band
    c99
    .dn := close c99.band

    if c99.dn trailS
        trailS 
    := c99.dn
    if c99.up trailS
        trailS 
    := c99.up

    c99
    .trail := trailS

    for start to end by 1
        scoreS 
    += (trailS trailS[i] ? : -1)
        
    scoreS

    c99
    .score := scoreS

    cd99
    .longCond  := c99.score thresL
    cd99
    .shortCond := ta.crossunder(c99.scorethresS)


    if 
    cd99.longCond and not cd99.shortCond
        st
    .signal := 1
        coloring 
    := longcol
    else if cd99.shortCond
        st
    .signal := -1
        coloring 
    := shortcol

    //plot(c.score, "", coloring, lineW)
    plot(c99.trail"A()"coloringlineWplot.style_circlesfalseforce_overlay truedisplay onchart?display.all:display.none)

    if 
    barstate.islast and show_refs
        line
    .new(x1=last_bar_indexx2=bar_index 1y1=thresLy2=thresLcolor=chart.fg_color.transp(50), style=line.style_dashedextend=extend.right)
        
    line.new(x1=last_bar_indexx2=bar_index 1y1=thresSy2=thresScolor=chart.fg_color.transp(50), style=line.style_dashedextend=extend.right)

    // Long and Short Signals 
    //plotcandle(open, high, low, close, "Mum",
         //coloring, coloring, true,
         //bordercolor=coloring,
         //display=paintCandles ? display.all : display.none, force_overlay=true)

    //bgcolor(bgCol?coloring.transp(80):na, force_overlay=true)

    int sigS st.signal
    plotshape
    (sigS == and sigS[1] == -1"Long Signal"shape.triangleuplocation.belowbarlongcol0"𝕃"longcoltruesize.smalldisplay=showls display.all display.noneforce_overlay=true)
    plotshape(sigS == -and sigS[1] == 1"Short Signal"shape.triangledownlocation.abovebarshortcol0"𝕊"shortcoltruesize.smalldisplay=showls display.all display.noneforce_overlay=true)
    ////////// 
    16.07.2024 - 10.12.2024

  4. sar kırılımlı...scalping denemesi.... bar renklendirmeli... zemin kanallı.... https://www.tradingview.com/x/ujydHa7H/
    PHP Code:
    //@version=6
    indicator("."overlay truemax_labels_count 500)
    ///////////////
    import carlpwilliams2/CarlLib/as carlLib

    showBreakLabels 
    input.bool(truetitle 'Show breakouts'group 'Breakout Labels')
    showVolumeBreakLabels input.bool(truetitle 'Show Breakouts with high volume'group 'Breakout Labels')

    timeframe input.timeframe(''title 'Timeframe')
    [
    OpenHighLowCloseVolume] = request.security(syminfo.tickeridtimeframe, [openhighlowclosevolume])

    [
    bodySizewickSizeupperShadowlowerShadowlowerShadowPercentageupperShadowPercentageshadowRatiowickPercentage] = carlLib.candleDetails(OpenHighLowClose)


    start44 input(0.title 'start'group 'Parabolic SAR')
    increment44 input(0.01title 'Increment'group 'Parabolic SAR')
    maximum44 input(0.2'Max Value'group 'Parabolic SAR')

    out44 request.security(syminfo.tickeridtimeframeta.sar(start44increment44maximum44), gaps barmerge.gaps_off)

    sarChange ta.change(out44 High)

    var 
    prevSar out44

    if sarChange
        prevSar 
    := out44[1] + out44[1] / 100 0.02
        prevSar

    crossOverLong 
    out44 Close and Close Open and (ta.crossover(CloseprevSar) or ta.crossover(Close[1], prevSar))
    crossOverShort out44 Close and Close Open and ta.crossunder(CloseprevSar)

    plot(sarChange na prevSarstyle plot.style_linebroffset = -1color out44 high color.new(#030bf6, 0) : color.new(#fa0404, 0), title = 'Yön', linewidth = 3)

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

    // --------------------------------------------------------------------------------------------------------------------}
    // 📌 𝙐𝙎𝙀𝙍 𝙄𝙉𝙋𝙐𝙏𝙎
    // --------------------------------------------------------------------------------------------------------------------{
    int     length      input.int(10"Length")
    bool    show_bands  input.bool(true"Trend Bands")
    color   col_up      input.color(#0425f7, "", inline = "col")
    color   col_dn      input.color(#e14c60, "", inline = "col")
    color   col_range   input.color(#ebf706, "", inline = "col")


    // --------------------------------------------------------------------------------------------------------------------}
    // 📌 𝙄𝙉𝘿𝙄𝘾𝘼𝙏𝙊𝙍 𝘾𝘼𝙇𝘾𝙐𝙇𝘼𝙏𝙄𝙊𝙉𝙎
    // --------------------------------------------------------------------------------------------------------------------{
    smema(srclength)=>
        
    ta.sma(ta.ema(srclength), length)

    col_distance(srccol)=>
        
    distance math.abs(close src)

        
    col_size distance ta.percentile_linear_interpolation(distance400100)

        
    show_bands color.from_gradient(col_size00.5color(na), col) : color(na)

    float smema     smema(closelength)
    float distance1 close smema
    float distance2 
    smema close

    float step 
    smema(high-low100)

    float smema_up3 smema step 3
    float smema_up2 
    smema step 2
    float smema_up1 
    smema step

    float smema_dn3 
    smema step 3
    float smema_dn2 
    smema step 2
    float smema_dn1 
    smema step

    bool trend 
    smema smema[1]

    bool above3 close smema_up3
    bool above2 
    close smema_up2
    bool above1 
    close smema_up1

    bool below1 
    close smema_dn1
    bool below2 
    close smema_dn2
    bool below3 
    close smema_dn3

    int bull_strength 
    = (above1 0) + (above2 0) + (above3 0)
    int bear_strength = (below1 0) + (below2 0) + (below3 0)

    label_signal =
         
    trend and bull_strength >= ?  :
         
    not trend and bear_strength >= ? -0


    // --------------------------------------------------------------------------------------------------------------------}

    color   color_class label_signal col_up label_signal col_dn col_range

    // Labels
    barcolor(color_class)

    color   col_mid smema smema[1] ? col_up col_dn

    start88 
    input.float(0.'Starting value')
    inc88 input.float(0.01'Increment')
    max88 input.float(0.02'Max Value')
    width input.float(10.00'Zone width')

    atrs ta.atr(100) * width
    sarone 
    ta.sar(start88inc88max88)
    sarzone = if close sarone
        sarone 
    atrs
    else if close sarone
        sarone 
    atrs
    sartwo 
    ta.sar(start88 2inc88 2max88 2)

    p1 plot(sarone'Kanal'color close sarone #2962ff00 : #e91e6200, style = plot.style_circles)
    p3 plot(sarzone'Kanal'color close sarone #2962ff00 : #e91e6200, style = plot.style_circles)
    fill(p1p3color close sarone color.new(#2962ff, 80) : color.new(#e91e63, 80)) 
    16.07.2024 - 10.12.2024

  5. https://www.tradingview.com/x/BpcYyofA/

    PHP Code:
    //@version=6
    indicator('.'overlay truemax_lines_count 500max_boxes_count 500)

    // --- 1. VISUAL SETTINGS ---
    i_boxColor input.color(color.new(#787b86, 92), 'Range Background', group = 'Visuals')
    i_gpBullishColor input.color(color.new(#4caf50, 60), 'Bullish GP Color', group = 'Visuals')
    i_gpBearishColor input.color(color.new(#f44336, 60), 'Bearish GP Color', group = 'Visuals')
    i_liqColor input.color(color.new(#ffeb3b, 85), 'Liquidity Zones Color', group = 'Visuals')
    i_lineColor input.color(color.white'Boundary Line Color'group 'Visuals')
    i_whiteText color.white

    // Range Settings
    i_autoFit input.bool(true'Auto-Fit Box to last high and low'group 'Range Settings')
    i_lookback input.int(100'Lookback Period'minval 2group 'Range Settings')
    i_offsetR input.int(10'Box Offset Right'minval 0group 'Range Settings')

    // FVG Settings
    i_showFVG input.bool(true'Show Fair Value Gaps (FVG)'group 'FVG Settings')
    i_fvgLen input.int(10'FVG Extension (Bars)'minval 1group 'FVG Settings')
    i_bullFVGColor input.color(color.new(#4caf4f, 100), 'Bullish FVG Color', group = 'FVG Settings')
    i_bearFVGColor input.color(color.new(#f44336, 100), 'Bearish FVG Color', group = 'FVG Settings')

    i_showLabels input.bool(true'Show Price Lines & Labels'group 'Visuals')

    // --- 2. CORE CALCULATIONS ---
    int hOff ta.highestbars(highi_lookback)
    int lOff ta.lowestbars(lowi_lookback)

    float rHigh high[-hOff]
    float rLow low[-lOff]
    float rDiff rHigh rLow

    // KORREKTUR: anchorBar nutzt nun die korrekten Identifier lOff und hOff
    int anchorBar i_autoFit bar_index math.min(hOfflOff) : bar_index i_lookback

    float bUp 
    rLow rDiff 0.382
    float bLo 
    rLow rDiff 0.35
    float sUp 
    rHigh rDiff 0.35
    float sLo 
    rHigh rDiff 0.382

    // --- 3. FVG LOGIC ---
    if i_showFVG
        
    if low high[2]
            
    box.new(bar_index[1], lowbar_index i_fvgLenhigh[2], bgcolor i_bullFVGColorborder_color na)
        if 
    high low[2]
            
    box.new(bar_index[1], highbar_index i_fvgLenlow[2], bgcolor i_bearFVGColorborder_color na)

    // --- 4. VISUALS (BOXES) ---
    var box b_Range box.new(nanananaxloc xloc.bar_indexbgcolor i_boxColorborder_color color.gray)
    var 
    box b_Bullish box.new(nanananaxloc xloc.bar_indexbgcolor i_gpBullishColorborder_color natext 'LONG GİR'text_color color.whitetext_size size.small)
    var 
    box b_Bearish box.new(nanananaxloc xloc.bar_indexbgcolor i_gpBearishColorborder_color natext 'SHORT GİR'text_color color.whitetext_size size.small)
    var 
    box b_LiqTop box.new(nanananaxloc xloc.bar_indexbgcolor i_liqColorborder_color natext ' LONG KAPAT SHORT GİR'text_color i_whiteTexttext_size size.small)
    var 
    box b_LiqBot box.new(nanananaxloc xloc.bar_indexbgcolor i_liqColorborder_color natext 'SHORT KAPAT LONG GİR'text_color i_whiteTexttext_size size.small)

    var array<
    linel_levels = array.new_line()
    var array<
    labellb_prices = array.new_label()

    if 
    barstate.isfirst
        
    for 0 to 7 by 1
            
    array.push(l_levelsline.new(nanananaxloc xloc.bar_indexcolor i_lineColor))
            array.
    push(lb_priceslabel.new(nana''xloc xloc.bar_indexcolor color.new(color.black100), textcolor i_lineColorsize size.normalstyle label.style_label_left))

    if 
    barstate.islast
        int rightBar 
    bar_index i_offsetR
        box
    .set_lefttop(b_RangeanchorBarrHigh)
        
    box.set_rightbottom(b_RangerightBarrLow)
        
    box.set_lefttop(b_BullishanchorBarbUp)
        
    box.set_rightbottom(b_BullishrightBarbLo)
        
    box.set_lefttop(b_BearishanchorBarsUp)
        
    box.set_rightbottom(b_BearishrightBarsLo)
        
    box.set_lefttop(b_LiqTopanchorBarrHigh)
        
    box.set_rightbottom(b_LiqToprightBarrHigh rDiff 0.05)
        
    box.set_lefttop(b_LiqBotanchorBarrLow rDiff 0.05)
        
    box.set_rightbottom(b_LiqBotrightBarrLow)

        if 
    i_showLabels
            
    array<floatp_vals = array.from(rHighrHigh rDiff 0.05sUpsLobUpbLorLow rDiff 0.05rLow)
            for 
    0 to 7 by 1
                float v 
    = array.get(p_valsi)
                
    line.set_xy1(array.get(l_levelsi), anchorBarv)
                
    line.set_xy2(array.get(l_levelsi), rightBarv)
                
    label.set_xy(array.get(lb_pricesi), rightBarv)
                
    label.set_text(array.get(lb_pricesi), ' ' str.tostring(vformat.mintick))

    // --- 5. SIGNAL LOGIC ---
    bool sfpShort high rHigh and close rHigh
    bool sfpLong 
    low rLow and close rLow

    var bool tBear false
    var bool tBull false
    if high >= sLo and low <= sUp
        tBear 
    := true
        tBear
    if low <= bUp and high >= bLo
        tBull 
    := true
        tBull

    bool pL 
    close[2] < open[2] and close[1] > open[1] and close high[1]
    bool pS close[2] > open[2] and close[1] < open[1] and close low[1]

    bool signalLongOnly tBull and pL
    bool signalShortOnly 
    tBear and pS

    if signalShortOnly or tBear and high rHigh
        tBear 
    := false
        tBear
    if signalLongOnly or tBull and low rLow
        tBull 
    := false
        tBull

    // RANGE ALANINI BELİRLEMEK İÇİN KULLLANILIR./////////////////////

    grp_sett "General Settings"
    len        input.int(5"Short-Term Sensitivity"minval=2group=grp_sett)
    color_up   input.color(#089981, "Historical Wave Color", group=grp_sett)

    grp_cast "Short-Term Forecast"
    show_ext_bull input.bool(true"Show Bullish Extension (Up)"group=grp_cast)
    show_ext_bear input.bool(true"Show Bearish Extension (Down)"group=grp_cast)
    color_cont    input.color(#ff9800, "Extension Color", group=grp_cast)

    link_scenarios input.bool(false"Start Reversal after Extension?"group=grp_cast)

    show_reversal input.bool(true"Show Reversal"group=grp_cast)
    color_rev     input.color(#f9ed03, "Reversal Color", group=grp_cast)



    grp_vis   "Dashboard & Visuals"
    show_table  input.bool(true"Show Target Table"group=grp_vis)
    show_labels input.bool(true"Show Chart Labels"group=grp_vis)
    show_grid   input.bool(true"Show Horizontal Fib Levels"group=grp_vis)
    show_inv    input.bool(true"Show Invalidation Line"group=grp_vis)
    show_div    input.bool(true"Show RSI Divergence (DİKKAT RSI DÖNÜŞ)"group=grp_vistooltip="Highlights setups where Price and RSI disagree (Divergence), indicating a stronger reversal signal.")

    // -----------------------------------------------------------------------------
    // STORAGE
    // -----------------------------------------------------------------------------
    var float[] pPrices = array.new_float()
    var 
    int[]   pBars   = array.new_int()
    var 
    bool[]  pDirs   = array.new_bool() 
    var 
    float[] pRSI    = array.new_float() // NEW: Store RSI values

    var float[] pPricesM = array.new_float()
    var 
    int[]   pBarsM   = array.new_int()
    var 
    bool[]  pDirsM   = array.new_bool()

    var 
    line[]  ghostLines  = array.new_line()
    var 
    label[] ghostLabels = array.new_label()
    //var table   infoTable   = table.new(position.top_right, 4, 20, border_width = 1)

    // -----------------------------------------------------------------------------
    // FUNCTIONS
    // -----------------------------------------------------------------------------
    // Updated to store RSI
    addPivot(float pint bbool dfloat rfloat[] pricesint[] barsbool[] dirsfloat[] rsis) =>
        array.
    unshift(pricesp)
        array.
    unshift(barsb)
        array.
    unshift(dirsd)
        array.
    unshift(rsisr// Store RSI
        
    if array.size(prices) > 20
            
    array.pop(prices)
            array.
    pop(bars)
            array.
    pop(dirs)
            array.
    pop(rsis)

    // Overload for Macro (no RSI tracking needed yet)
    addPivotMacro(float pint bbool dfloat[] pricesint[] barsbool[] dirs) =>
        array.
    unshift(pricesp)
        array.
    unshift(barsb)
        array.
    unshift(dirsd)
        if array.
    size(prices) > 20
            
    array.pop(prices)
            array.
    pop(bars)
            array.
    pop(dirs)

    drawPred(int t1float p1int t2float p2string txtstring fibcolor colint width) =>
        
    line.new(t1p1t2p2color=colstyle=line.style_dashedwidth=width)
        array.
    push(ghostLinesl)
        
        
    //if show_grid
            //l_hor = line.new(t2, p2, t2 + 10, p2, color=color.new(col, 50), style=line.style_dotted, width=1)
            //array.push(ghostLines, l_hor)

        
    if show_labels
            lbl_text 
    txt "\n" str.tostring(p2format.mintick)
            
    lb label.new(t2p2text=lbl_textcolor=color.new(color.white100), textcolor=colstyle=label.style_label_leftsize=size.small)
            array.
    push(ghostLabelslb)

    fillRow(int rstring tstring ffloat pcolor c) =>
        
    pct_diff = (close) / close 100
        pct_str  
    = (pct_diff "+" "") + str.tostring(pct_diff"#.##") + "%"
        
    pct_col  pct_diff >= #089981 : #f23645 
        
        //table.cell(infoTable, 0, r, t, text_color=color.white, bgcolor=c, text_size=size.small)
        //table.cell(infoTable, 1, r, f, text_color=color.white, bgcolor=color.new(c, 20), text_size=size.small)
        //table.cell(infoTable, 2, r, str.tostring(p, format.mintick), text_color=color.white, bgcolor=color.new(color.black, 20), text_size=size.small)
        //table.cell(infoTable, 3, r, pct_str, text_color=pct_col, bgcolor=color.new(color.black, 20), text_size=size.small)

    // -----------------------------------------------------------------------------
    // MAIN LOGIC
    // -----------------------------------------------------------------------------
    // Calculate RSI for Divergence Checks
    my_rsi ta.rsi(close14)

    ph77 ta.pivothigh(highlenlen)
    pl77 ta.pivotlow(lowlenlen)

    if 
    not na(ph77)
        
    // Pass RSI at the time of the pivot (offset by len)
        
    addPivot(ph77bar_index[len], truemy_rsi[len], pPricespBarspDirspRSI)
    if 
    not na(pl77)
        
    addPivot(pl77bar_index[len], falsemy_rsi[len], pPricespBarspDirspRSI)

    //phM = ta.pivothigh(high, len_macro, len_macro)
    //plM = ta.pivotlow(low, len_macro, len_macro)

    //if not na(phM)
        //addPivotMacro(phM, bar_index[len_macro], true, pPricesM, pBarsM, pDirsM)
    //if not na(plM)
        //addPivotMacro(plM, bar_index[len_macro], false, pPricesM, pBarsM, pDirsM)

    //if (not na(ph77) or not na(pl77)) and array.size(pPrices) > 1
        //p1_val = array.get(pPrices, 0)
        //p1_bar = array.get(pBars, 0)
        //p2_val = array.get(pPrices, 1)
        //p2_bar = array.get(pBars, 1)
        //line.new(p2_bar, p2_val, p1_bar, p1_val, color=color_up, width=1)

    // 3. PREDICTIVE LOGIC & TABLE
    if barstate.islast
        
    for l in ghostLines
            line
    .delete(l)
        for 
    lb in ghostLabels
            label
    .delete(lb)
        array.
    clear(ghostLines)
        array.
    clear(ghostLabels)
        
        
    //table.clear(infoTable, 0, 0, 3, 19)
        
        //if show_table
            //table.cell(infoTable, 0, 0, "DALGA", bgcolor=color.gray, text_color=color.white)
            //table.cell(infoTable, 1, 0, "FİBO", bgcolor=color.gray, text_color=color.white)
            ///table.cell(infoTable, 2, 0, "HEDEF", bgcolor=color.gray, text_color=color.white)
            //table.cell(infoTable, 3, 0, "% +/-", bgcolor=color.gray, text_color=color.white)
        
        
    int tbl_row 

        
    if array.size(pPrices) > 0
            last_conf_val 
    = array.get(pPrices0)
            
    last_conf_bar = array.get(pBars0)
            
    last_conf_dir = array.get(pDirs0)
            
            
    int bars_elapsed bar_index last_conf_bar
            float live_pivot_val 
    0.0
            int   live_pivot_bar 
    0
            bool  live_pivot_dir 
    bool(na)
            
    float live_pivot_rsi 50.0 // Default
            
            
    if last_conf_dir 
                lowest_val 
    1000000.0
                lowest_idx 
    0
                
    for 0 to bars_elapsed
                    
    if low[i] < lowest_val
                        lowest_val 
    := low[i]
                        
    lowest_idx := bar_index[i]
                        
    live_pivot_rsi := my_rsi[i// Capture RSI at lowest point
                
    live_pivot_val := lowest_val
                live_pivot_bar 
    := lowest_idx
                live_pivot_dir 
    := false 
            
    else 
                
    highest_val 0.0
                highest_idx 
    0
                
    for 0 to bars_elapsed
                    
    if high[i] > highest_val
                        highest_val 
    := high[i]
                        
    highest_idx := bar_index[i]
                        
    live_pivot_rsi := my_rsi[i// Capture RSI at highest point
                
    live_pivot_val := highest_val
                live_pivot_bar 
    := highest_idx
                live_pivot_dir 
    := true 

            float vol 
    math.abs(last_conf_val live_pivot_val)
            if 
    vol == 
                vol 
    := syminfo.mintick 100

            float rev_start_price 
    live_pivot_val
            int   rev_start_bar   
    live_pivot_bar
            
            
    // =========================================================
            // SCENARIO 1: EXTENSION
            // =========================================================
            
    float pExt na
            int   tExt 
    bar_index 10
            bool  drawing_ext 
    false

            
    if not live_pivot_dir 
                
    if show_ext_bear
                    calc_price 
    live_pivot_val - (vol 0.5)
                    
    pExt := math.max(0.01calc_price)
                    
    drawPred(live_pivot_barlive_pivot_valtExtpExt"(KAPAT)""0.5"color_cont2)
                    if 
    show_table
                        fillRow
    (tbl_row"SHORT KAPAT""0.5 Vol"pExtcolor_cont)
                        
    tbl_row += 1
                    drawing_ext 
    := true
            
    else 
                if 
    show_ext_bull
                    pExt 
    := live_pivot_val + (vol 0.5)
                    
    drawPred(live_pivot_barlive_pivot_valtExtpExt"(KAPAT)""0.5"color_cont2)
                    if 
    show_table
                        fillRow
    (tbl_row"LONG KAPAT""0.5 Vol"pExtcolor_cont)
                        
    tbl_row += 1
                    drawing_ext 
    := true

            
    if link_scenarios and drawing_ext
                rev_start_price 
    := pExt
                rev_start_bar   
    := tExt

            
    // =========================================================
            // SCENARIO 2: REVERSAL + RSI DIVERGENCE CHECK
            // =========================================================
            
    if show_reversal
                int t_step 
    5
                
                
    // --- RSI DIVERGENCE LOGIC ---
                
    bool has_div false
                
    // Check if we have history
                
    if array.size(pPrices) > 1
                    
    // If Live is Low, compare to Previous Low (index 1)
                    
    if not live_pivot_dir 
                        prev_low_val 
    = array.get(pPrices1)
                        
    prev_low_rsi = array.get(pRSI1)
                        
    // BULLISH DIV: Lower Price + Higher RSI
                        
    if live_pivot_val prev_low_val and live_pivot_rsi prev_low_rsi
                            has_div 
    := true
                    
    // If Live is High, compare to Previous High (index 1)
                    
    else 
                        
    prev_high_val = array.get(pPrices1)
                        
    prev_high_rsi = array.get(pRSI1)
                        
    // BEARISH DIV: Higher Price + Lower RSI
                        
    if live_pivot_val prev_high_val and live_pivot_rsi prev_high_rsi
                            has_div 
    := true

                
    // Invalidation Line
                
    if show_inv
                    inv_col 
    color.red
                    inv_y   
    rev_start_price
                    l_inv   
    line.new(rev_start_barinv_yrev_start_bar 25inv_ycolor=inv_colwidth=1style=line.style_solid)
                    array.
    push(ghostLinesl_inv)
                    
                    
    // Add Lightning Bolt if Divergence Detected
                    
    inv_txt "DENGE" + (has_div and show_div " DİKKAT RSI DÖNÜŞ" "")
                    
    inv_txt_col has_div and show_div color.yellow inv_col
                    
                    
    if show_labels
                        lb_inv 
    label.new(rev_start_bar 30inv_ytext=inv_txtcolor=color.new(color.white100), textcolor=inv_txt_colstyle=label.style_label_leftsize=size.small)
                        array.
    push(ghostLabelslb_inv)
                    
                    
    //if show_table
                        //fillRow(tbl_row, "GEÇERSİZ", (has_div and show_div ? "RSI ⚡" : "DİKKAT"), inv_y, color.red)
                        //tbl_row += 1

                
    if not live_pivot_dir 
                    p1 
    math.max(0.01rev_start_price + (vol 0.382))
                    
    t1 rev_start_bar 
                    drawPred
    (rev_start_barrev_start_pricet1p1"(1)""0.382"color_rev2)
                    if 
    show_table
                        fillRow
    (tbl_row"1""0.382"p1color_rev)
                        
    tbl_row += 1
                    
                    p2 
    math.max(0.01p1 - ((p1 rev_start_price) * 0.618))
                    
    t2 t1 t_step
                    drawPred
    (t1p1t2p2"(2)""0.618"color_rev2)
                    if 
    show_table
                        fillRow
    (tbl_row"2""0.618"p2color_rev)
                        
    tbl_row += 1
                    
                    p3 
    math.max(0.01p2 + ((p1 rev_start_price) * 1.618))
                    
    t3 t2 t_step
                    drawPred
    (t2p2t3p3"(3)""1.618"color_rev2)
                    if 
    show_table
                        fillRow
    (tbl_row"3""1.618"p3color_rev)
                        
    tbl_row += 1

                    p4 
    math.max(0.01p3 - ((p3 p2) * 0.382))
                    
    t4 t3 t_step
                    drawPred
    (t3p3t4p4"(4)""0.382"color_rev2)
                    if 
    show_table
                        fillRow
    (tbl_row"4""0.382"p4color_rev)
                        
    tbl_row += 1

                    p5 
    math.max(0.01p4 + (p1 rev_start_price))
                    
    t5 t4 t_step
                    drawPred
    (t4p4t5p5"(5)""1.0"color_rev2)
                    if 
    show_table
                        fillRow
    (tbl_row"5""1.0"p5color_rev)
                        
    tbl_row += 1
                    
                
    else 
                    
    pA math.max(0.01rev_start_price - (vol 0.382))
                    
    tA rev_start_bar 5
                    drawPred
    (rev_start_barrev_start_pricetApA"(A)""0.382"color_rev2)
                    if 
    show_table
                        fillRow
    (tbl_row"A""0.382"pAcolor_rev)
                        
    tbl_row += 1

                    pB 
    math.max(0.01pA + ((rev_start_price pA) * 0.618))
                    
    tB tA t_step
                    drawPred
    (tApAtBpB"(B)""0.618"color_rev2)
                    if 
    show_table
                        fillRow
    (tbl_row"B""0.618"pBcolor_rev)
                        
    tbl_row += 1

                    pC 
    math.max(0.01pB - ((rev_start_price pA) * 1.272))
                    
    tC tB t_step
                    drawPred
    (tBpBtCpC"(C)""1.272"color_rev2)
                    if 
    show_table
                        fillRow
    (tbl_row"C""1.272"pCcolor_rev)
                        
    tbl_row += 1

        
    // ==============ELİOT HESAPLAMASIDIR.===========================================
    // ─────────────────────────── INPUTS ───────────────────────────
    var GRP1 "Core Settings"
    //i_lookback      = input.int(50, "Lookback Period", minval=20, maxval=100, group=GRP1, tooltip="How far back to look for S/R levels.")
    i_pivotStrength input.int(5"Pivot Strength"minval=2maxval=8group=GRP1tooltip="Bars needed to confirm a pivot. Higher = fewer but stronger levels.")
    i_maxLevels     input.int(2"Max Levels Each Side"minval=1maxval=5group=GRP1)
    i_zoneWidth     input.float(0.25"Zone Width %"minval=0.05maxval=0.5step=0.05group=GRP1)
    i_minDistance   input.float(1.0"Min Distance Between Levels %"minval=0.2maxval=3.0step=0.1group=GRP1tooltip="Lower values allow more levels to appear")

    var 
    GRP2 "Visual Settings"

    i_supportColor  input.color(#00ff88, "Support Color", group=GRP2)
    i_resistColor   input.color(#ff3366, "Resistance Color", group=GRP2)


    // ─────────────────────────── PERSISTENT DRAWING ARRAYS ───────────────────────────
    var array<linesupportLines = array.new_line(0)
    var array<
    lineresistLines = array.new_line(0)
    var array<
    boxsupportBoxes = array.new_box(0)
    var array<
    boxresistBoxes = array.new_box(0)
    var array<
    labelsupportLabels = array.new_label(0)
    var array<
    labelresistLabels = array.new_label(0)

    // ─────────────────────────── FUNCTIONS ───────────────────────────

    // Clear all drawings
    clearDrawings() =>
        for 
    ln in supportLines
            line
    .delete(ln)
        array.
    clear(supportLines)
        
        for 
    ln in resistLines
            line
    .delete(ln)
        array.
    clear(resistLines)
        
        for 
    bx in supportBoxes
            box
    .delete(bx)
        array.
    clear(supportBoxes)
        
        for 
    bx in resistBoxes
            box
    .delete(bx)
        array.
    clear(resistBoxes)
        
        for 
    lb in supportLabels
            label
    .delete(lb)
        array.
    clear(supportLabels)
        
        for 
    lb in resistLabels
            label
    .delete(lb)
        array.
    clear(resistLabels)

    // Find pivot levels - with safe bounds checking to prevent historical buffer errors
    findPivots(int lookbackint strengthbool isSupport) =>
        array<
    floatlevels = array.new_float(0)
        
        
    // Safe bounds that work for all TradingView plans and replay mode
        
    int safeStrength math.min(strength8)
        
        
    // Calculate safe maximum based on available bars
        // Use bar_index to ensure we never exceed what's available
        
    int availableBars math.max(0bar_index safeStrength 1)
        
    int safeMaxLookback math.min(lookbackavailableBars50)  // Cap at 50 for performance
        
        // Only proceed if we have enough bars
        
    if bar_index >= safeStrength and safeMaxLookback >= safeStrength
            
    for safeStrength to safeMaxLookback
                
    // Safety check: ensure we won't exceed available bars
                
    int maxAccess safeStrength
                
    if maxAccess >= bar_index
                    
    break
                
                
    bool isPivot true
                float price 
    isSupport low[i] : high[i]
                
                for 
    1 to safeStrength
                    int leftIdx 
    j
                    int rightIdx 
    j
                    
                    
    // Bounds check
                    
    if leftIdx or rightIdx >= bar_index
                        isPivot 
    := false
                        
    break
                    
                    if 
    isSupport
                        
    if low[i] >= low[leftIdx] or low[i] >= low[rightIdx]
                            
    isPivot := false
                            
    break
                    else
                        if 
    high[i] <= high[leftIdx] or high[i] <= high[rightIdx]
                            
    isPivot := false
                            
    break
                
                if 
    isPivot
                    
    array.push(levelsprice)
        
        
    levels

    // Filter levels to prevent overlap
    filterLevels(array<floatlevelsfloat minDistPctint maxCountfloat currentPricebool isSupport) =>
        array<
    floatresult = array.new_float(0)
        
    int sz = array.size(levels)
        
        if 
    sz == 0
            result
        
    else
            
    // Sort: support descending (closest first), resist ascending (closest first)
            
    array.sort(levelsisSupport order.descending order.ascending)
            
            for 
    0 to sz 1
                
    if array.size(result) >= maxCount
                    
    break
                    
                
    float lvl = array.get(levelsi)
                
                
    // Skip if wrong side of price
                
    if isSupport and lvl >= currentPrice
                    
    continue
                if 
    not isSupport and lvl <= currentPrice
                    
    continue
                
                
    // Check distance from existing levels in result
                
    bool tooClose false
                int resultSize 
    = array.size(result)
                if 
    resultSize 0
                    
    for 0 to resultSize 1
                        float existing 
    = array.get(resultj)
                        if 
    math.abs(lvl existing) / existing 100 minDistPct
                            tooClose 
    := true
                            
    break
                
                if 
    not tooClose
                    
    array.push(resultlvl)
            
            
    result

    // ─────────────────────────── MAIN LOGIC ───────────────────────────

    // Only calculate and draw on last bar
    if barstate.islast
        
    // Clear previous drawings
        
    clearDrawings()
        
        
    // Find pivot levels
        
    array<floatrawSupport findPivots(i_lookbacki_pivotStrengthtrue)
        array<
    floatrawResist findPivots(i_lookbacki_pivotStrengthfalse)
        
        
    // Filter to get clean, non-overlapping levels
        
    array<floatsupportLevels filterLevels(rawSupporti_minDistancei_maxLevelsclosetrue)
        array<
    floatresistLevels filterLevels(rawResisti_minDistancei_maxLevelsclosefalse)
        
        
    float zoneSize close * (i_zoneWidth 100)
        
    int startBar bar_index i_lookback
        int endBar 
    bar_index 15
        
        
    // Draw support levels
        
    if array.size(supportLevels) > 0
            
    for 0 to array.size(supportLevels) - 1
                float level 
    = array.get(supportLevelsi)
                
                
    // Line
                
    line ln line.new(startBarlevelendBarlevel
                                  
    color=i_supportColorwidth=1style=line.style_dashed)
                array.
    push(supportLinesln)
                
              
                
    // Label (only nearest)
                
    if == 0
                    label lb 
    label.new(endBar 2level"S: " str.tostring(levelformat.mintick),
                                        
    style=label.style_label_leftcolor=color.new(i_supportColor50),
                                        
    textcolor=color.whitesize=size.small)
                    array.
    push(supportLabelslb)
        
        
    // Draw resistance levels
        
    if array.size(resistLevels) > 0
            
    for 0 to array.size(resistLevels) - 1
                float level 
    = array.get(resistLevelsi)
                
                
    // Line
                
    line ln line.new(startBarlevelendBarlevel,
                                  
    color=i_resistColorwidth=1style=line.style_dashed)
                array.
    push(resistLinesln)
                
          
                
    // Label (only nearest)
                
    if == 0
                    label lb 
    label.new(endBar 2level"R: " str.tostring(levelformat.mintick),
                                        
    style=label.style_label_leftcolor=color.new(i_resistColor50),
                                        
    textcolor=color.whitesize=size.small)
                    array.
    push(resistLabelslb)

    // ─────────────────────────── TEK PİVOT ARAR Kİ RANGE İÇİNDEKİ YÖNÜ KIYAS İÇİN KULLANILIR. ───────────────────────────
    //////------------------------------------------------------------------------------
    length744 input(100)
    extend input(true'Extend To Last Bar')
    //show_labels = input(true, 'Show Labels')

    //Style

    upcol input.color(#0004ff, 'Upper Extremity Color', group = 'Style')
    midcol input.color(#ff5d00, 'Zig Zag Color', group = 'Style')
    dncol input.color(color.rgb(2222466), 'Lower Extremity Color'group 'Style')
    //------------------------------------------------------------------------------
    os 0
    src 
    close
    bar_index
    var float valtop na
    var float valbtm na

    //------------------------------------------------------------------------------
    upper ta.highest(srclength744)
    lower ta.lowest(srclength744)
    os := src[length744] > upper src[length744] < lower os[1]

    btm os == and os[1] != 1
    top 
    os == and os[1] != 0

    //------------------------------------------------------------------------------
    btm_n ta.valuewhen(btmn0)
    top_n ta.valuewhen(topn0)
    len88 math.abs(btm_n top_n)

    if 
    btm
        max_diff_up 
    0.
        max_diff_dn 
    0.
        valbtm 
    := low[length744]

        for 
    0 to len88 1 by 1
            point 
    low[length744] + / (len88 1) * (valtop low[length744])
            
    max_diff_up := math.max(math.max(src[length744 i], open[length744 i]) - pointmax_diff_up)
            
    max_diff_dn := math.max(point math.min(src[length744 i], open[length744 i]), max_diff_dn)
            
    max_diff_dn

        
    //line.new(n[len + length744], valtop, n[length744], low[length744], color = midcol)

        //if show_ext
            //line.new(n[len + length744], valtop + max_diff_up, n[length744], low[length744] + max_diff_up, color = upcol, style = line.style_dotted)
            //line.new(n[len + length744], valtop - max_diff_dn, n[length744], low[length744] - max_diff_dn, color = dncol, style = line.style_dotted)
        
    if show_labels
            label
    .new(n[length744], low[length744], str.tostring(low[length744], '#.####'), color #00000000, style = label.style_label_up, textcolor = dncol, textalign = text.align_left, size = size.large)

    if top
        max_diff_up 
    0.
        max_diff_dn 
    0.
        valtop 
    := high[length744]

        for 
    0 to len88 1 by 1
            point 
    high[length744] + / (len88 1) * (valbtm high[length744])
            
    max_diff_up := math.max(math.max(src[length744 i], open[length744 i]) - pointmax_diff_up)
            
    max_diff_dn := math.max(point math.min(src[length744 i], open[length744 i]), max_diff_dn)
            
    max_diff_dn

        
    //line.new(n[len + length744], valbtm, n[length744], high[length744], color = midcol)

        //if show_ext
           // line.new(n[len + length744], valbtm + max_diff_up, n[length744], high[length744] + max_diff_up, color = upcol, style = line.style_dotted)
            //line.new(n[len + length744], valbtm - max_diff_dn, n[length744], high[length744] - max_diff_dn, color = dncol, style = line.style_dotted)
        
    if show_labels
            label
    .new(n[length744], high[length744], str.tostring(high[length744], '#.####'), color #00000000, style = label.style_label_down, textcolor = upcol, textalign = text.align_left, size = size.large)

    if barstate.islast and extend
        max_diff_up 
    0.
        max_diff_dn 
    0.
        x1 
    0
        y1 
    0.

        
    if os == 1
            x1 
    := btm_n length744
            y1 
    := valbtm

            
    for 0 to n btm_n length744 1 by 1
                point 
    src / (btm_n length744 1) * (valbtm src)
                
    max_diff_up := math.max(math.max(src[i], open[i]) - pointmax_diff_up)
                
    max_diff_dn := math.max(point math.min(src[i], open[i]), max_diff_dn)
                
    max_diff_dn
        
    else 
            
    x1 := top_n length744
            y1 
    := valtop

            
    for 0 to n top_n length744 1 by 1
                point 
    src / (top_n length744 1) * (valtop src)
                
    max_diff_up := math.max(math.max(src[i], open[i]) - pointmax_diff_up)
                
    max_diff_dn := math.max(point math.min(src[i], open[i]), max_diff_dn)
                
    max_diff_dn

        
    //line.delete(line.new(x1, y1, n, src, color = midcol, extend = extend.right)[1])

        //if show_ext
            //line.delete(line.new(x1, y1 + max_diff_up, n, src + max_diff_up, color = upcol, style = line.style_dotted, extend = extend.right)[1])
            //line.delete(line.new(x1, y1 - max_diff_dn, n, src - max_diff_dn, color = dncol, style = line.style_dotted, extend = extend.right)[1])

    //------------------------------------------------------------------------------
    plot(btm low[length744] : top high[length744] : na'ANA'color btm dncol upcolstyle plot.style_circlesoffset = -length744)
    ///////////////EN SON TEPE V E DİP PERİYOTA GÖRE ANA TREND OLARAK BELİRLENİR.///////////////

    // 𝙐𝙎𝙀𝙍 𝙄𝙉𝙋𝙐𝙏𝙎
    int left_bars input(1'Left Bars'group 'Pivot Settings')
    int right_bars input(2'Right Bars'group 'Pivot Settings')
    float Offset input.float(0.1step 0.01)


    // 𝙄𝙉𝘿𝙄𝘾𝘼𝙏𝙊𝙍 𝘾𝘼𝙇𝘾𝙐𝙇𝘼𝙏𝙄𝙊𝙉
    var float phy na
    var float ply na

    atr 
    ta.atr(200)

    p_high ta.pivothigh(high atr Offsetleft_barsright_bars)
    p_low ta.pivotlow(low atr Offsetleft_barsright_bars)

    if 
    bool(p_high)
        
    phy := p_high
        phy

    if bool(p_low)
        
    ply := p_low
        ply

    // Trend 
    upperBand phy
    lowerBand 
    ply

    prevLowerBand 
    nz(lowerBand[1])
    prevUpperBand nz(upperBand[1])


    int trend na
    float Trend 
    na
    prevTrend 
    Trend[1]

    if 
    prevTrend == prevUpperBand
        trend 
    := close upperBand : -1
        trend
    else
        
    trend := close lowerBand ? -1
        trend
    Trend 
    := trend == lowerBand trend == -upperBand na


    // 𝙑𝙄𝙎𝙐𝘼𝙇𝙄𝙕𝘼𝙏𝙄𝙊𝙉
    //@ Signals
    color trend == color.blue trend == -color.red na
    plotchar
    (ta.crossover(trend0) ? Trend na'Buy''🅑'location.absolutecolor.bluesize size.small)
    plotchar(ta.crossunder(trend0) ? Trend na'Sell''🅢'location.absolutecolor.redsize size.small)

    // PİVOT TREND SİNYALLERİDİR.////////////
    mt input.timeframe(''title 'S/R timeframe')
    sh input.int(2title 'Shift S/R Forward/Backward')
    start input.float(title 'Start'step 0.01defval 0.)
    increment input.float(title 'Increment'step 0.01defval 0.09)
    maximum input.float(title 'Maximum'step 0.01defval 0.2)

    sar request.security(syminfo.tickeridmtta.sar(startincrementmaximum))
    plot(sarstyle plot.style_circleslinewidth 1color color.yellow)
    dir sar close : -1

    buy 
    dir == and dir[1] == -1
    sell 
    dir == -and dir[1] == 1

    //alertcondition(buy, title = 'SAR BUY', message = 'PSAR/Buy Signal')
    //alertcondition(sell, title = 'SAR SELL', message = 'PSAR/Sell Signal')
    //alertcondition(buy or sell, title = 'SAR BUY/SELL', message = 'PSAR/Buy/Sell Signal')


    ta.valuewhen(buyclose0)
    ta.valuewhen(sellclose0)
    buyalert open and close and open[1] < h
    sellalert 
    open and close and open[1] > h

    ta.valuewhen(buyclose[0], 0)
    plot(ycolor color.rgb(10187196100), linewidth 1title 'High'offset sh)

    ta.valuewhen(sellclose[0], 0)
    plot(zcolor color.rgb(2406127100), linewidth 1title 'Low'offset sh)

    fill(udcolor color.rgb(255828277) : color.rgb(761757978))

    plotshape(buy sar natitle 'Buy'text 'A'location location.absolutestyle shape.labelupsize size.tinycolor #06b5e5, textcolor = color.white)
    plotshape(sell sar natitle 'Sell'text 'S'location location.absolutestyle shape.labeldownsize size.tinycolor color.rgb(24911106), textcolor color.white)

    /////////////////SAR İLE BULUTLAMADIR./////////// 
    16.07.2024 - 10.12.2024

  6.  Alıntı Originally Posted by @yörük@ Yazıyı Oku
    insan, öğrenmeye taklitle başladığından, taklit esnasında maruz kaldığı manipulasyona alışmış olur. alıştığı için, kendiside manipule eder.
    bu yüzden yazılan çoğu cümle, "önerme" niteliği taşımaz. Etkileşim sonucu hem manipule eden hem de edilen, "önerme"yi anlayamaz olur.

    çünkü manipule; istenilen her konuda yapılır.

    borsa örnekleri....

    Manipüle Yöntemleri
    1. İddia Sahibini Karalama
    • Grup: "Bu analizi yapan kişi geçen sene iflas etmişti, onu dinlemeyin." (İddia doğru olsa da kişi üzerinden reddedilir.)
    • Borsa: Bir şirketin CEO’su hakkında çıkan alakasız bir dedikodu yüzünden şirketin iyi bilançosunu çöpe atmak.

    2. B Şahsını Devreye Sokma (İlişkilendirme )
    • Grup: "Bu hisseyi falanca spekülatör de övmüştü, o halde bu hisse kesin patlar."
    • Borsa: X hissesini alan bir grubun geçmişteki kötü şöhreti yüzünden, hissenin temel analizini bilerek reddetmek.

    3. Durumsallıktan Yararlanma (Çıkar Çatışması)
    • Grup: "Hoca bu hisseyi övüyor çünkü elinde patladı, bize kitlemeye çalışıyor." (Belki de gerçekten iyi bir hisse ama çıkarı var diye reddedilir.)
    • Borsa: Bir analistin kendi portföyündeki hisseyi analiz etmesini, doğru veriler sunsa bile "komplo" olarak nitelemek.

    4. Tutarsızlığa Götürmek
    • Grup: "Sen daha dün 'bu borsa kumar' diyordun, şimdi gelmiş analiz mi yapıyorsun?"
    • Borsa: Bir ekonomistin geçmişte yanıldığı bir tahmini hatırlatıp, bugünkü doğru olabilecek uyarısını geçersiz saymak.

    5. Maliyet Kaynaklı Kaybedme Korkusu
    • Grup: "Grupça bu hissede çok bekledik, çok emek verdik, artık dönemeyiz."
    • Borsa: Zararda olan bir hisseyi "bu kadar bekledim, zararına satmam" diyerek stop-loss yapmamak; garantili kayba razı olmak.

    6. Beğendirme Yöntemi (Gaza Getirme)
    • Grup: "Sen bu grubun en akıllı yatırımcısısın, bu riski almalısın."
    • Borsa: Bir yatırımcının "profesyonel" görünme isteğiyle, ait olduğu grubun kurallarına tam uymaya çalışması

    7. Bilimi Değersizleştirme
    • Grup: "Teknik analiz her şeyi bilse herkes zengin olurdu, boşver grafiği."
    • Borsa: Rasyonel verileri ve matematiksel modelleri "bilim her şeyi açıklayamaz" diyerek duyumsallıkla reddetmek, yapanı gereksiz eleştirmek

    8. Bir Bilen / Alakasız Otorite
    • Grup: "Ünlü bir profesör (tıpçı) bu hisseyi al dedi."
    • Borsa: Alanında uzman olmayan bir ünlünün finans bilgisine, bir otoriteymiş gibi güvenip işlem açmak

    9. Kaynağı Belirsiz Otorite
    • Grup: "Ankara'da çok üst düzey bir tanıdık hissenin uçacağını söyledi."
    • Borsa: "Duyumlara göre", "fısıltı gazetesine göre" gibi belirsiz kaynaklarla, bir sermaye yönetimi yapmaya çalışmak.

    10. Seçilmiş Örnekleme (Cımbızlama)
    • Grup: "Bakın bu hisse son 10 yılda her Ocak ayında yükselmiş." (Aradaki düşüşleri görmezden gelme.)
    • Borsa: Bir hissenin sadece iyi haberlerine odaklanıp, risk faktörlerini noksan bir algıyla saf dışı bırakmak.

    11. Çoğunluğa Başvurma (Mahalle Baskısı)
    • Grup: "Herkes bu hisseyi alıyorsa bir bildikleri vardır."
    • Borsa: FOMO (Fırsatı Kaçırma Korkusu); çoğunluğa uyma isteğiyle zirveden hisse alıp, zarara uğramak.

    12. Tepkisel İndirgemecilik
    • Grup: "Sen şimdi 'nakitte kalın' diyerek borsanın çökmesini mi istiyorsun?"
    • Borsa: Bir analistin "riskler arttı" uyarısını "piyasa düşmanlığı" olarak yanlış anlayıp noksansız veriye tepki göstermek.

    13. Devede Kulak (Paradoks)
    • Grup: "Dolar 30 olsa ne olur 31 olsa ne olur, fark yok."
    • Borsa: Küçük noksan maliyetlerin (komisyon, makas) toplamda bir sermaye kaybına yol açtığını fark etmemek.

    14. Doğallık Yöntemi
    • Grup: "Eski usul (geleneksel) borsa her zaman en iyisidir."
    • Borsa: "Doğal/Eski" olanın her zaman faydalı olduğunu sanıp, yeni finansal araçları reddetmek.

    15. Duygu Sömürüsü
    • Grup: "Hepimiz aynı gemideyiz, satarsan hepimiz batarız."
    • Borsa: Mantıklı bir karar yerine, grup üyelerine karşı noksan bir acıma hissiyle noksansız bir zararı kabullenmek.

    16. Etimolojik Safsata
    • Grup: "Borsa kelimesi 'kese'den gelir, o halde paramızı burada saklamalıyız."
    • Borsa: Kelimelerin eski anlamlarına takılıp, bugünkü noksansız piyasa dinamiklerini noksan yorumlamak.

    17. Geleneksellik
    • Grup: "Biz babadan kalma bu hisseyi asla satmayız."
    • Borsa: Değişen dünya ekonomisine rağmen, eski yöntemlerle işlem yapmaya devam etmek.

    18. Gereksiz Yüceltme
    • Grup: "Bizim grubumuz en dürüst yatırımcı grubudur."
    • Borsa: Grubu noksansız görüp, dışarıdan gelen uyarıları kibirle reddetmek.

    19. Görelilik
    • Grup: "Sana göre düşüyor ama bana göre dinleniyor."
    • Borsa: Objektif noksansız verileri (düşüş trendi), öznel yorumlarla "şahsi fikir" haline getirmek.

    20. Hatalı Benzetme
    • Grup: "Borsa orman gibidir, aslanlar küçüklere saldırır." (Yanlış teşbih.)
    • Borsa: İki alakasız sektörü birbirine benzetip, birindeki noksansız veriyi diğeri için noksan bir sonuç olarak kullanmak.

    21. İspat Yükümlülüğü
    • Grup: "Hissenin düşmeyeceğini kanıtlayamazsan yükselecek demektir."
    • Borsa: Kendi iddiasını ispatlamak yerine, aksinin kanıtlanamamasını noksansız bir "doğruluk" sanmak.

    22. İstisna
    • Grup: "Herkes batar ama biz istisnayız, bize bir şey olmaz."
    • Borsa: piyasa kurallarını, "özel olma" duygusuyla yok saymak.

    23. Sıralamalı Neden-Sonuç (Kaygan Zemin)
    • Grup: "Bugün bu kağıdı satan, yarın fikrini de satar."
    • Borsa: Küçük bir satışın, bir felakete yol açacağı zannıyla noksan kararlar almak.

    24. Kısırdöngü
    • Grup: "Bu hisse değerlidir çünkü fiyatı yüksektir, fiyatı yüksektir çünkü değerlidir."
    • Borsa: Bilgi kaynağı ile sonucu aynı tutarak noksansız bir mantık hatasına düşmek.

    25. Kişisel Deneyim
    • Grup: "Ben geçen sefer böyle yaptım ve kazandım, herkes böyle yapmalı."
    • Borsa: Tek bir tecrübeyi, bir kural gibi herkese dayatmak.

    26. Korkular
    • Grup: "Hisse tamamen kapatılacakmış!" (FUD - Korku yaratma.)
    • Borsa: Rasyonel olmayan korkularla, portföyleri panikle boşaltmak.

    27. Yedekleme (Bilişsel Çelişki)
    • Grup: "Hisse düştü ama aslında bu bizim için daha iyi oldu, alım fırsatı doğdu."
    • Borsa: Hatalı kararı hatasız göstermek için noksan kılıflar uydurmak.

    28. Sessizlik (Onay)
    • Grup: "Kimse itiraz etmediğine göre bu gece hisseyi alıyoruz."
    • Borsa: Sessiz kalanların rızası olduğunu sanıp kararlar almak.

    29. Totemleme
    • Grup: "Ben ne zaman ekranı açsam borsa düşüyor."
    • Borsa: Alakasız olaylar arasında noksan nedensellikler kurup noksansız stratejileri bozmak.

    30. Zarar-Fayda İlişkisi
    • Grup: "Evet para kaybettik ama en azından tecrübe kazandık."
    • Borsa: hatanın zararını örtmek için, bir teselli (fayda) uydurmak.

    31. Şans veya Tesadüf
    • Grup: "Tamamen şansa kazandım, bilgim yok."
    • Borsa: Başarıyı noksansız bir tesadüfe bağlayıp, noksansız stratejiyi noksanlaştırmak.

    32. Ünlüler
    • Grup: "X sanatçısı bu coine yatırım yapmış."
    • Borsa: Ünlüye olan ilgiyle, noksansız bir analiz yapmadan noksan bir kararla işleme girmek.

    33. İkilem
    • Grup: "Ya bu hisseyi alırsın ya da fakir kalırsın."
    • Borsa: İki seçenek dışındaki noksansız onlarca ihtimali noksan bir bakışla yok saymak.

    34. Sorumluluk Azaltma
    • Grup: "Üstat satmadıysa ben de satmam, o biliyordur."
    • Borsa: Kendi sorumluluğunu, bir başkasının eylemsizliğine yüklemek.

    35. Evet-Hayır Soruları
    • Grup: "Hisseni bugün mü satacaksın yoksa yarın mı?" (Satıp satmama seçeneği yok sayılır.)
    • Borsa: Ön kabul içeren sorularla, özgür iradeyi manipüle etmek.

    36. Ebeveyn (Otorite)
    • Grup: "Biz bu işin okulunu okuduk, sen sus."
    • Borsa: Yaş veya unvan üzerinden baskı kurup noksan fikirleri susturmak.

    37. Eleştiri Hakkı
    • Grup: "Benim her şeyi eleştirmeye hakkım var ama senin cevabın geçersiz."
    • Borsa: Eleştiriyi rasyonellik yerine, bir "hak" kılıfıyla yıkıcılık için kullanmak.

    38. Cevap Hakkı
    • Grup: "Konuşmam bitmedi, sürekli cevap vereceğim." (Laf kalabalığı.)
    • Borsa: Haksızlığını bir şekilde örtmek için tartışmayı gereksiz detaylarla uzatmak.

    39. Kesin Yanlıştır
    • Grup: "Bu veriler kesin yanlıştır, bakmaya gerek yok."
    • Borsa: bir ispat sunmadan, sadece inatla gerçeği reddetmek.

    40. Yazım Yanlışları
    • Grup: "Sen daha virgülü doğru koyamıyorsun, analizin mi doğru?"
    • Borsa: Biçimdeki bir hatayı, içeriği reddetmek için bahane etmek.

    41. Yapay Zeka
    • Grup: "Yapay zeka bu hisseyi 10 numara buldu."
    • Borsa: Yapay zekanın verilerle hatalı sonuç verebileceğini unutup, onu bir "otorite" saymak.
    bu yazıyı sona almamın sebebi...iki yazı arasında.... denemeler yaptığım.... kodları hem paylaşmış oldum....
    hem de yedeklemiş oldum....
    16.07.2024 - 10.12.2024

  7. goy goy olmayan viop topiğinde paylaşılanların grafik ve yorumlar....

    bana nasıl faydalı oldu... etkileşim sonucu şu şekilde ilerlemiş oldum.

    yıllardır...aynı sistemi kullanıyorum... https://www.tradingview.com/x/aeOulYnV/ üç tane sardan ibaretti.

    ilk olarak scalping amaçlı.... kama kullanarak....bar renklendirme yaptım.
    https://www.tradingview.com/x/y9gLY0UN/ bunu yaparken dört renk kullandım.
    şöyle ki,

    beyaz renk long, kırmızı ise longun dirençten dönmesi....
    mavi short, sarı ise shortun destekten dönmesi şeklinde tanımlandı.

    böylece https://www.tradingview.com/x/u3q6TiAA/ görülen stop... dinamik olarak long ve shorta uymuş...
    barlarla ilişkilenmiş oldu.

    sonra... has viop topiğindeki... fibolu grafikler sonucu..... https://www.tradingview.com/x/YzLR85R1/
    son bardan geriye doğru 100 barı hesaplayan.... fibo temelli 35-38.2 hesaplamasıyla....
    fibo range alanını belirlemiş oldum.

    range alanının altı ve üstündeki mor alanlar.... hedef gibi ana destek ve direnç gibi oldu.
    içindeki yeşil ve kırmızı ise.... fibo hesaplı 35-38.2 olan short ve long yerleri olarak belirlenmiş oldu.

    sonrasında o alanı...daha kolay kullanımı için atr hesaplamalı.... supertrend gibi değil....
    sar verisini alıp, 200 atr üzerinden 5 çarpanla... kanal belirlendi...

    kanal çift renk oldu... mavi al....yani range alan içinde longa yönlendirdiren....
    kırmızı.... ise short yönlendiren şekilde..... https://www.tradingview.com/x/XtohOgM4/

    sade ve anlaşılır olması için... çizgiler...etiketler.... kutu yazıları iptal edildi....

    has topikte.... "lololo" esprisi ile başlayan.... bar boyunu ölçen ve belirlenen şarta göre....
    L ve o etiketi koyan.... hesaplama.... kendi başına üzerinde çalışılınca algoritma gibi oldu.

    1-0 olarak değiştirildi. mantık 1 al - 1 sat ...renkliydi... ama 0 sayesinde.... bar takibi yapılmış oldu...
    https://www.tradingview.com/x/Ms61R38G/

    bu o kadar işlevsel oldu ki..... önceden kullanılan.... bir çok hesaplamayı silmiş oldum.
    böylece kod satır sayısını azalmış oldu.

    çünkü yapılan testlerde.... hesaplamaların çoğu.... bu tasarlanan sistemle birbirine çok yakındı.

    çok çizgi etiket vb. olmaması için.... sadelik tercih edilmiş oldu.

    ana sistem 0-0.1-0.9 değerli sar ile kurulduğu için..... periyotlar arası geçişle uğraşmadan....
    o sar değerinin... diğer periyotlardaki... değeri ve trend hali tablo yapılarak eklenmiş oldu.
    https://www.tradingview.com/x/itQpcO16/

    son olarak ise has topikte paylaşılan.... sindoma hocanın.... formasyon takibine benzer ekleme yapıldı.
    bar kapanmadan yapılan sürekli taramada.... 5-10 sağ-sol barlarla hesaplanmış oldu.
    böylece.... hem gün içi hem de gün sonunda taramalar yapılabilecek....
    https://www.tradingview.com/x/ZNPSB2ua/
    https://www.tradingview.com/x/bCeXhiFC/

    formasyon tarama bölümü ayrıldı.... içinden mumlar dahil her şey çıkarıldı....
    daha rahat anlaşılması için...... https://www.tradingview.com/x/qEqnkqSB/


    örnek görüntüler.....
    https://www.tradingview.com/x/g0eaR38o/
    https://www.tradingview.com/x/6XeV0W7l/
    https://www.tradingview.com/x/DXaTmrC8/
    https://www.tradingview.com/x/tKrZbKPb/
    https://www.tradingview.com/x/NqaB62UL/

    https://www.tradingview.com/x/K2mEBVWf/
    https://www.tradingview.com/x/8yHPEsha/
    https://www.tradingview.com/x/WJvW3RFr/
    https://www.tradingview.com/x/Wbka6bAA/
    https://www.tradingview.com/x/njUTEyqq/

    katırcı_bedri hocam... "lololo" latifen için çok teşekkürler.
    https://www.tradingview.com/x/2mnZRXad/
    https://www.tradingview.com/x/GXRRAldd/
    https://www.tradingview.com/x/8epLnkcY/
    https://www.tradingview.com/x/hEegKJyE/

    tekrardan.... has topikte paylaşım yapanlara teşekkür eder, selamlar dilerim.
    Son düzenleme : @yörük@; Bugün saat: 04:51.
    16.07.2024 - 10.12.2024

  8. #2904
    @yörük@ hocam
    özel mesajınız kapalı o yüzden buradan yazıyorum

    matriks ve matriks e-broker kullanıyorum

    bu hani robot işlemleri diyorlarya

    ben nasıl otomatik alım-satım robotu yapabilirim ?

    kime yaptırabilirim ?

    siz yapabilirmisiniz ?

    elle müdahale etmeyecin... robot otomatik alıp/satacak... nasıl edecüük onu... help

Sayfa 363/364 İlkİlk ... 263313353361362363364 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
  •