Untitled

 avatar
unknown
plain_text
21 days ago
56 kB
2
Indexable
//@version=5

indicator('ATR Trailing Stop Screener by Emrah GÜLEZ', overlay=true)



//------------------------------------------------------------------------------

grupSec = input.string(defval='1', options=['1', '2', '3', '4', '5','6','7','8','9','10','11','12','13','14','15','ÖZEL LİSTE'], group='Taraması yapılacak 40\'arlı gruplardan birini seçin', title='Grup seç')
per = input.timeframe(defval='', title='PERİYOT',group = "Tarama yapmak istediğiniz periyotu seçin")
loc = input.int(defval=20, title='Konum Ayarı', minval = -300,maxval = 500 , step = 5,  group='Tablonun konumunu belirleyin')

//------------------------------------------------------------------------------

pvt = ta.pivot_point_levels("Traditional", timeframe.change("D"))


//-------------------------------

rsi = ta.rsi(close,22)
sma = ta.sma(rsi,14)
ema = ta.ema(volume, 21)

//------------------------------


SC = close

// Fast Trail //
AP1 = 5
AF1 = 0.5
SL1 = AF1 * ta.atr(AP1)  // Stop Loss
Trail1 = 0.0
iff_1 = SC > nz(Trail1[1], 0) ? SC - SL1 : SC + SL1
iff_2 = SC < nz(Trail1[1], 0) and SC[1] < nz(Trail1[1], 0) ? math.min(nz(Trail1[1], 0), SC + SL1) : iff_1
Trail1 := SC > nz(Trail1[1], 0) and SC[1] > nz(Trail1[1], 0) ? math.max(nz(Trail1[1], 0), SC - SL1) : iff_2

// Slow Trail //
AP2 = 5
AF2 = 1.3
SL2 = AF2 * ta.atr(AP2)  // Stop Loss
Trail2 = 0.0
iff_3 = SC > nz(Trail2[1], 0) ? SC - SL2 : SC + SL2
iff_4 = SC < nz(Trail2[1], 0) and SC[1] < nz(Trail2[1], 0) ? math.min(nz(Trail2[1], 0), SC + SL2) : iff_3
Trail2 := SC > nz(Trail2[1], 0) and SC[1] > nz(Trail2[1], 0) ? math.max(nz(Trail2[1], 0), SC - SL2) : iff_4

// Bar color for trade signal //
Green = Trail1 > Trail2 and close > Trail2 and low > Trail2
Blue = Trail1 > Trail2 and close > Trail2 and low < Trail2
Red = Trail2 > Trail1 and close < Trail2 and high < Trail2
Yellow = Trail2 > Trail1 and close < Trail2 and high > Trail2

// Signals //
Bull = ta.barssince(Green) < ta.barssince(Red)
Bear = ta.barssince(Red) < ta.barssince(Green)

Buy = ta.crossover(Trail1, Trail2)
Sell = ta.crossunder(Trail1, Trail2)
iff_5 = Trail2 > Trail1 ? -1 : 0
SR = Trail1 > Trail2 ? 1 : iff_5

TS1 = plot(Trail1, 'Fast Trail', style=plot.style_line, color=Trail1 > Trail2 ? color.blue : color.yellow, linewidth=2, display=display.none)
TS2 = plot(Trail2, 'Slow Trail', style=plot.style_line, color=Trail1 > Trail2 ? color.green : color.red, linewidth=2)
fill(TS1, TS2, Bull ? color.new(color.green, 90) : color.new(color.red, 90))

plotcolor = true
plotbuysell = true

bcl = plotcolor == 1 ? Blue ? color.blue : Green ? color.lime : Yellow ? color.yellow : Red ? color.red : color.white : na
barcolor(bcl)
plotshape(Buy and plotbuysell == 1, 'AL', shape.labelup, location.belowbar, color.new(color.green, 0), text='AL', textcolor=color.new(color.white, 0))
plotshape(Sell and plotbuysell == 1, 'SAT', shape.labeldown, location.abovebar, color.new(color.red, 0), text='SAT', textcolor=color.new(color.white, 0))

alertcondition(Buy, 'Al Sinyali', 'Buy ATR Trailing Stop')
alertcondition(Sell, 'Sat Sinyali', 'Sell ATR Trailing Stop')



///////////////////////////////////////
sensitivity = input.string("High", "Sensitivity", ["Low", "Medium", "High"])
suppRes     = bool(false)
breaks      = input.bool(false, "Breaks")
//usePsar     = input.bool(false, "PSAR")
//emaEnergy   = input.bool(true, "EMA Energy")
channelBal  = true
//autoTL      = input.bool(false, "Auto Trend Lines")
// Functions
supertrend(_src, factor, atrLen) =>
	atr = ta.atr(atrLen)
	upperBand = _src + factor * atr
	lowerBand = _src - factor * atr
	prevLowerBand = nz(lowerBand[1])
	prevUpperBand = nz(upperBand[1])
	lowerBand := lowerBand > prevLowerBand or close[1] < prevLowerBand ? lowerBand : prevLowerBand
	upperBand := upperBand < prevUpperBand or close[1] > prevUpperBand ? upperBand : prevUpperBand
	int direction = na
	float superTrend = na
	prevSuperTrend = superTrend[1]
	if na(atr[1])
		direction := 1
	else if prevSuperTrend == prevUpperBand
		direction := close > upperBand ? -1 : 1
	else
		direction := close < lowerBand ? 1 : -1
	superTrend := direction == -1 ? lowerBand : upperBand
	[superTrend, direction]
lr_slope(_src, _len) =>
    x = 0.0, y = 0.0, x2 = 0.0, xy = 0.0
    for i = 0 to _len - 1
        val = _src[i]
        per = i + 1
        x += per
        y += val
        x2 += per * per
        xy += val * per
    _slp = (_len * xy - x * y) / (_len * x2 - x * x)
    _avg = y / _len
    _int = _avg - _slp * x / _len + _slp
    [_slp, _avg, _int]
lr_dev(_src, _len, _slp, _avg, _int) =>
    upDev = 0.0, dnDev = 0.0
    val = _int
    for j = 0 to _len - 1
        price = high[j] - val
        if price > upDev
            upDev := price
        price := val - low[j]
        if price > dnDev
            dnDev := price
        price := _src[j]
        val += _slp
    [upDev, dnDev]
// Get Components
ocAvg       = math.avg(open, close)

sma9        = ta.sma(close, 13)

//psar        = ta.sar(0.02, 0.02, 0.2)
[middleKC1, upperKC1, lowerKC1] = ta.kc(close, 80, 10.5)
[middleKC2, upperKC2, lowerKC2] = ta.kc(close, 80, 9.5)
[middleKC3, upperKC3, lowerKC3] = ta.kc(close, 80, 8)
[middleKC4, upperKC4, lowerKC4] = ta.kc(close, 80, 3)
[supertrend, direction] = supertrend(close, sensitivity == "Low" ? 5 : sensitivity == "Medium" ? 2.5 : 2, 11)
barsL       = 10
barsR       = 10
pivotHigh = fixnan(ta.pivothigh(barsL, barsR)[1])
pivotLow = fixnan(ta.pivotlow(barsL, barsR)[1])
source = close, period = 150
[s, a, i] = lr_slope(source, period)
[upDev, dnDev] = lr_dev(source, period, s, a, i)



//p3 = plot(ocAvg, "", na, editable=false)
//p4 = plot(psar, "PSAR", usePsar ? (close > psar ? green : red) : na, 1, plot.style_circles, editable=false)
//fill(p3, p4, usePsar ? (close > psar ? color.new(green, 90) : color.new(red, 90)) : na, editable=false)
y1 = low - (ta.atr(30) * 2), y1B = low - ta.atr(30)
y2 = high + (ta.atr(30) * 2), y2B = high + ta.atr(30)
bull = ta.crossover(close, supertrend) and close >= sma9
bear = ta.crossunder(close, supertrend) and close <= sma9
//buy  = bull ? label.new(bar_index, y1, "BUY", xloc.bar_index, yloc.price, #2BE300, label.style_label_up, color.white) : na
//sell = bear ? label.new(bar_index, y2, "SELL", xloc.bar_index, yloc.price, #E30000, label.style_label_down, color.white) : na





levels      = input.bool(true, "Show TP & SL", group="TP & SL")
lvlLines    = (true)
linesStyle  = ("SOLID")
lvlDecimals = (4)
lvlDistance = (1)
atrLen      = (14)
atrRisk     = input.int(defval=2, minval=1, maxval=4, title="Risk To Reward", group="TP & SL")






decimals  = lvlDecimals == 1 ? "#.#" : lvlDecimals == 2 ? "#.##" : lvlDecimals == 3 ? "#.###" : lvlDecimals == 4 ? "#.####" : lvlDecimals == 5 ? "#.#####" : lvlDecimals == 6 ? "#.######" : lvlDecimals == 7 ? "#.#######" : "#.########"
trigger = bull ? 1 : 0
trigger2 = bear ? 0 : 1
atrBand = ta.atr(atrLen) * atrRisk
atrStop = trigger == 1 ? low - atrBand : high + atrBand
atrStop2 = trigger2 == -1 ? high + atrBand : low - atrBand



// Önceki mumun kapanış fiyatı
prevClose = close[1]

// Mevcut bar indeksi ve 15 bar ileriye kadar olan indeks
currentBarIndex = bar_index
futureBarIndex = bar_index + 15

// Daha önce oluşturulan çizgiyi saklamak için bir değişken tanımlayın
var line previousLine = na
var label previousLabel = na

///------------------




// Yeni çizgiyi oluştur ve eski çizgiyi sil
if (not na(previousLine))
    line.delete(previousLine)
if (not na(previousLabel))
    label.delete(previousLabel)


StopOL = input(color.white, "Stop ol")

previousLine := line.new(x1=currentBarIndex[1], y1=prevClose, x2=futureBarIndex, y2=prevClose, color= StopOL, width=2, style=line.style_solid)

// Çizgi üzerine "STOP OL" yazısını ekleyin
previousLabel := label.new(x=bar_index + 7, y=prevClose, text="STOP OL", color=StopOL, style=label.style_label_down, textcolor=color.black, size=size.small)

rb = input.int(10, title='Pivot Periyotları', minval=10)
prd = input.int(290, title='Periyot Genişliği', minval=100, maxval=500)
nump = input.int(1, title='Destek/Direnç Adeti', minval=1)
ChannelW = input.int(10, title='Destek/Direnç Aralıkları %', minval=5)
label_location = input.int(10, title='Destek/Direnç Değerleri Görünümü +-', tooltip=' örneğin -5 olarak ayarlarsanız, etiket son 5. çubukta gösterilir. + gelecekteki çubuklar anlamına gelir')
linestyle = input.string('Çizgi', title='Destek/Direnç Çizgileri', options=['Çizgi', 'Noktalı Çizgi', 'Aralıklı Noktalı Çizgi'])
LineColor = input(color.rgb(8, 153, 129), title='Destek/Direnç Rengi')
drawhl = input(false, title='En Yüksek ve En Düşük Destek Direnç')
showpp = input(true, title='En Yüksek Tepe ve En Yüksek Dip')

ph = ta.pivothigh(rb, rb)
pl = ta.pivotlow(rb, rb)
plotshape(ph and showpp, text='', style=shape.labeldown, color=color.new(color.white, 100), textcolor=color.new(color.red, 0), location=location.abovebar, offset=-rb)
plotshape(pl and showpp, text='', style=shape.labelup, color=color.new(color.white, 100), textcolor=color.rgb(8, 153, 129), location=location.belowbar, offset=-rb)

// S/R levels
sr_levels = array.new_float(21, na)

// if number of bars is less then the loop then pine highest() fundtion brings 'na'. we need highest/lowest to claculate channel size
// so you cannot see S/R until the number of bars is equal/greater then the "Loopback Period" 
prdhighest = ta.highest(prd)
prdlowest = ta.lowest(prd)
cwidth = (prdhighest - prdlowest) * ChannelW / 100

//availability of the PPs
aas = array.new_bool(41, true)

// last privot points have more priority to be support/resistance, so we start from them
// if we met new Pivot Point then we calculate all supports/resistances again
u1 = 0.0
u1 := nz(u1[1])
d1 = 0.0
d1 := nz(d1[1])
highestph = 0.0
lowestpl = 0.0
highestph := highestph[1]
lowestpl := lowestpl[1]
if ph or pl
    //old S/Rs not valid anymore
    for x = 0 to array.size(sr_levels) - 1 by 1
        array.set(sr_levels, x, na)

    highestph := prdlowest
    lowestpl := prdhighest
    countpp = 0  // keep position of the PP
    for x = 0 to prd by 1
        if na(close[x])
            break
        if not na(ph[x]) or not na(pl[x])  // is it PP?
            highestph := math.max(highestph, nz(ph[x], prdlowest), nz(pl[x], prdlowest))
            lowestpl := math.min(lowestpl, nz(ph[x], prdhighest), nz(pl[x], prdhighest))
            countpp += 1
            if countpp > 40
                break
            if array.get(aas, countpp)  // if PP is not used in a channel
                upl = (ph[x] ? high[x + rb] : low[x + rb]) + cwidth
                dnl = (ph[x] ? high[x + rb] : low[x + rb]) - cwidth
                u1 := countpp == 1 ? upl : u1
                d1 := countpp == 1 ? dnl : d1
                // to keep the PPs which will be in current channel
                tmp = array.new_bool(41, true)

                cnt = 0  // keep which pivot point we are on
                tpoint = 0  // number of PPs in the channel 
                for xx = 0 to prd by 1
                    if na(close[xx])
                        break
                    if not na(ph[xx]) or not na(pl[xx])
                        chg = false
                        cnt += 1
                        if cnt > 40
                            break
                        if array.get(aas, cnt)  // if PP not used in other channels
                            if not na(ph[xx])
                                if high[xx + rb] <= upl and high[xx + rb] >= dnl  // PP is in the channel?
                                    tpoint += 1
                                    chg := true
                                    chg

                            if not na(pl[xx])
                                if low[xx + rb] <= upl and low[xx + rb] >= dnl  // PP is in the channel?
                                    tpoint += 1
                                    chg := true
                                    chg
                        // set if PP is used in the channel
                        if chg and cnt < 41
                            array.set(tmp, cnt, false)

                if tpoint >= nump  // met enough PP in the channel? mark the PP as used for a channel and set the SR level
                    for g = 0 to 40 by 1
                        if not array.get(tmp, g)
                            array.set(aas, g, false)

                    if ph[x] and countpp < 21
                        array.set(sr_levels, countpp, high[x + rb])
                    if pl[x] and countpp < 21
                        array.set(sr_levels, countpp, low[x + rb])

setline(level) =>
    LineStyle = linestyle == 'Çizgi' ? line.style_solid : linestyle == 'Çizgi' ? line.style_dotted : line.style_dashed
    _ret = line.new(bar_index - 1, level, bar_index, level, color=LineColor, width=2, style=LineStyle, extend=extend.both)
    _ret

if ph or pl
    var line highest_ = na
    var line lowest_ = na
    line.delete(highest_)
    line.delete(lowest_)
    if drawhl
        highest_ := line.new(bar_index - 1, highestph, bar_index, highestph, color=color.rgb(8, 153, 129), style=line.style_dashed, width=1, extend=extend.both)
        lowest_ := line.new(bar_index - 1, lowestpl, bar_index, lowestpl, color=color.rgb(8, 153, 129), style=line.style_dashed, width=1, extend=extend.both)
        lowest_

    var sr_lines = array.new_line(21, na)
    for x = 0 to array.size(sr_lines) - 1 by 1
        line.delete(array.get(sr_lines, x))
        if array.get(sr_levels, x)
            array.set(sr_lines, x, setline(array.get(sr_levels, x)))

// set new labels if changed
var sr_levs = array.new_float(21, na)
if ph or pl
    for x = 0 to array.size(sr_levs) - 1 by 1
        array.set(sr_levs, x, array.get(sr_levels, x))

// define and delete old labels
label hlabel = na
label llabel = na
label.delete(hlabel[1])
label.delete(llabel[1])
var sr_labels = array.new_label(21, na)
bool resistance_broken = false
bool support_broken = false
float r_s_level = na
// set labels
for x = 0 to array.size(sr_labels) - 1 by 1
    label.delete(array.get(sr_labels, x))
    if array.get(sr_levs, x)
        if close[1] <= array.get(sr_levs, x) and close > array.get(sr_levs, x)
            resistance_broken := true
            r_s_level := array.get(sr_levs, x)
            r_s_level
        if close[1] >= array.get(sr_levs, x) and close < array.get(sr_levs, x)
            support_broken := true
            r_s_level := array.get(sr_levs, x)
            r_s_level
        lab_loc = close >= array.get(sr_levs, x) ? label.style_label_up : label.style_label_down
        array.set(sr_labels, x, label.new(x=bar_index + label_location, y=array.get(sr_levs, x), text=str.tostring(math.round_to_mintick(array.get(sr_levs, x))), color=color.rgb(8, 153, 129), textcolor=color.white, style=lab_loc))

hlabel := drawhl ? label.new(x=bar_index + label_location + math.round(math.sign(label_location)) * 20, y=highestph, text='En Yüksek Destek/Direnç ' + str.tostring(highestph), color=color.rgb(81, 163, 64), textcolor=color.white, style=label.style_label_down) : na
llabel := drawhl ? label.new(x=bar_index + label_location + math.round(math.sign(label_location)) * 20, y=lowestpl, text='En Düşük Destek/Direnç ' + str.tostring(lowestpl), color=color.rgb(81, 163, 64), textcolor=color.white, style=label.style_label_up) : na

showthema1en = input.bool(defval=false, title='MA 1', inline='ma1')
showthema1len = input.int(defval=8, title='', inline='ma1')
showthema1type = input.string(defval='SMA', title='', options=['SMA', 'EMA'], inline='ma1')
showthema2en = input.bool(defval=false, title='MA 2', inline='ma2')
showthema2len = input.int(defval=13, title='', inline='ma2')
showthema2type = input.string(defval='SMA', title='', options=['SMA', 'EMA'], inline='ma2')
showthema3en = input.bool(defval=false, title='MA 3', inline='ma3')
showthema3len = input.int(defval=21, title='', inline='ma3')
showthema3type = input.string(defval='SMA', title='', options=['SMA', 'EMA'], inline='ma3')

ma1 = showthema1en ? showthema1type == 'SMA' ? ta.sma(close, showthema1len) : ta.ema(close, showthema1len) : na
ma2 = showthema2en ? showthema2type == 'SMA' ? ta.sma(close, showthema2len) : ta.ema(close, showthema2len) : na
ma3 = showthema3en ? showthema3type == 'SMA' ? ta.sma(close, showthema3len) : ta.ema(close, showthema3len) : na


plot(ma1, color=not na(ma1) ? color.yellow : na)
plot(ma2, color=not na(ma2) ? color.red : na)
plot(ma3, color=not na(ma3) ? color.blue : na)

tf = input.timeframe(defval='S', title='FSM Fibonacci Zaman Aralığı')
showFSM = input(defval=false, title='Fibonacci Trendini Göster')
showfibo = input(defval=false, title='Fibonacci Değerlerini Göster')
colorfulfibo = input(defval=false, title='Fibonacci Renklerini Karıştır.')
labelcol = input(defval=color.rgb(41, 98, 255), title='Fibonacci Değer Renkleri')
fibolinecol = input(defval=color.rgb(41, 98, 255), title='Fibonacci Çizgi Renkleri')
upcol = input.color(defval=color.rgb(81, 163, 64), title='FSM Renk Karıştır', inline='BURAK')
dncol = input.color(defval=color.red, title='', inline='BURAK')
labelloc = input.string(defval='Middle', title='Fibonacci Değerleri Bölgesi', options=['Left', 'Middle'])
enable236 = input(defval=true, title='Enable Level 0.236')
enable382 = input(defval=true, title='Enable Level 0.382')
enable500 = input(defval=true, title='Enable Level 0.500')
enable618 = input(defval=true, title='Enable Level 0.618')
enable786 = input(defval=true, title='Enable Level 0.786')

bool newbar = ta.change(time(tf)) != 0

bi = ta.valuewhen(newbar, bar_index, prd - 1)
len = bar_index - bi + 1

float ph1 = na
float pl1 = na
ph1 := ta.highestbars(high, nz(len, 1)) == 0 ? high : na
pl1 := ta.lowestbars(low, nz(len, 1)) == 0 ? low : na

var dir = 0
iff_11 = pl1 and na(ph1) ? -1 : dir
dir := ph1 and na(pl1) ? 1 : iff_11
var max_array_size = 50
var FSM = array.new_float(0)
oldFSM = array.copy(FSM)

add_to_FSM(value, bindex) =>
    array.unshift(FSM, bindex)
    array.unshift(FSM, value)
    if array.size(FSM) > max_array_size
        array.pop(FSM)
        array.pop(FSM)

update_FSM(value, bindex) =>
    if array.size(FSM) == 0
        add_to_FSM(value, bindex)
    else
        if dir == 1 and value > array.get(FSM, 0) or dir == -1 and value < array.get(FSM, 0)
            array.set(FSM, 0, value)
            array.set(FSM, 1, bindex)
        0.

bool dirchanged = dir != dir[1]
if ph1 or pl1
    if dirchanged
        add_to_FSM(dir == 1 ? ph1 : pl1, bar_index)
    else
        update_FSM(dir == 1 ? ph1 : pl1, bar_index)

if showFSM and array.size(FSM) >= 4 and array.size(oldFSM) >= 4
    var line zzline = na
    if array.get(FSM, 0) != array.get(oldFSM, 0) or array.get(FSM, 1) != array.get(oldFSM, 1)
        if array.get(FSM, 2) == array.get(FSM, 2) and array.get(FSM, 3) == math.round(array.get(oldFSM, 3))
            line.delete(zzline)
        zzline := line.new(x1=math.round(array.get(FSM, 1)), y1=array.get(FSM, 0), x2=math.round(array.get(FSM, 3)), y2=array.get(FSM, 2), color=dir == 1 ? upcol : dncol, width=2)
        zzline

if not showFSM and array.size(FSM) >= 6
    var line zzline = na
    line.delete(zzline)
    zzline := line.new(x1=math.round(array.get(FSM, 3)), y1=array.get(FSM, 2), x2=math.round(array.get(FSM, 5)), y2=array.get(FSM, 4), color=dir == 1 ? upcol : dncol, width=2, style=line.style_dotted)
    zzline

var fibo_ratios = array.new_float(0)
var fibo_colors = array.new_color(10)
var shownlevels = 1
if barstate.isfirst
    array.push(fibo_ratios, 0.000)
    if enable236
        array.push(fibo_ratios, 0.236)
        shownlevels += 1
        shownlevels
    if enable382
        array.push(fibo_ratios, 0.382)
        shownlevels += 1
        shownlevels
    if enable500
        array.push(fibo_ratios, 0.500)
        shownlevels += 1
        shownlevels
    if enable618
        array.push(fibo_ratios, 0.618)
        shownlevels += 1
        shownlevels
    if enable786
        array.push(fibo_ratios, 0.786)
        shownlevels += 1
        shownlevels
    for x = 1 to 5 by 1
        array.push(fibo_ratios, x)
        array.push(fibo_ratios, x + 0.272)
        array.push(fibo_ratios, x + 0.414)
        array.push(fibo_ratios, x + 0.618)

    // set colors
    array.set(fibo_colors, 0, color.lime)
    array.set(fibo_colors, 1, color.silver)
    array.set(fibo_colors, 2, color.gray)
    array.set(fibo_colors, 3, color.red)
    array.set(fibo_colors, 4, color.purple)
    array.set(fibo_colors, 5, color.fuchsia)
    array.set(fibo_colors, 6, color.olive)
    array.set(fibo_colors, 7, color.navy)
    array.set(fibo_colors, 8, color.teal)
    array.set(fibo_colors, 9, color.orange)

var fibolines = array.new_line(0)
var fibolabels = array.new_label(0)
if showfibo and array.size(FSM) >= 6 and barstate.islast
    if array.size(fibolines) > 0
        for x = 0 to array.size(fibolines) - 1 by 1
            line.delete(array.get(fibolines, x))
            label.delete(array.get(fibolabels, x))

    diff = array.get(FSM, 4) - array.get(FSM, 2)
    stopit = false
    for x = 0 to array.size(fibo_ratios) - 1 by 1
        if stopit and x > shownlevels
            break
        fibo_line_col = colorfulfibo ? array.get(fibo_colors, timenow / 1000 * x % 10) : fibolinecol
        array.unshift(fibolines, line.new(x1=math.round(array.get(FSM, 5)), y1=array.get(FSM, 2) + diff * array.get(fibo_ratios, x), x2=bar_index, y2=array.get(FSM, 2) + diff * array.get(fibo_ratios, x), color=fibo_line_col, extend=extend.right))
        label_x_loc = labelloc == 'Left' ? math.round(array.get(FSM, 5)) - 1 : bar_index
        txt = labelloc == 'Left' ? '' : '                  '
        array.unshift(fibolabels, label.new(x=label_x_loc, y=array.get(FSM, 2) + diff * array.get(fibo_ratios, x), text=txt + str.tostring(array.get(fibo_ratios, x), '#.###') + '(' + str.tostring(math.round_to_mintick(array.get(FSM, 2) + diff * array.get(fibo_ratios, x))) + ')', textcolor=labelcol, style=label.style_none))
        if dir == 1 and array.get(FSM, 2) + diff * array.get(fibo_ratios, x) > array.get(FSM, 0) or dir == -1 and array.get(FSM, 2) + diff * array.get(fibo_ratios, x) < array.get(FSM, 0)
            stopit := true
            stopit

src = close
keyvalue = input.float(3, title='Kriptologger Sinyal Hassasiyeti\'', step=.1)
atrperiod = input(14, title='Kriptologger Sinyal Periyodu')
xATR = ta.atr(atrperiod)
nLoss = keyvalue * xATR

xATRTrailingStop = 0.0
iff_22 = src > nz(xATRTrailingStop[1], 0) ? src - nLoss : src + nLoss
iff_33 = src < nz(xATRTrailingStop[1], 0) and src[1] < nz(xATRTrailingStop[1], 0) ? math.min(nz(xATRTrailingStop[1]), src + nLoss) : iff_22
xATRTrailingStop := src > nz(xATRTrailingStop[1], 0) and src[1] > nz(xATRTrailingStop[1], 0) ? math.max(nz(xATRTrailingStop[1]), src - nLoss) : iff_33

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


xcolor = pos == -1 ? color.red : pos == 1 ? color.green : color.blue


LONG = ta.crossover(src, xATRTrailingStop)
SHORT = ta.crossunder(src, xATRTrailingStop)
barcolor = src > xATRTrailingStop




alertcondition(LONG, title='AL✈️ ', message='AL✈️')
alertcondition(SHORT, title='SAT☠️', message='SAT☠️')





//////////////////////////////////////
func() =>
   

    alim = ta.crossover(Trail1, Trail2) and (close > pvt.get(0)) and rsi>sma 
    satim = ta.crossunder(Trail1, Trail2) and (close< pvt.get(0)) and rsi<sma
    
    [alim , satim]


//GRUP VE TARANACAK HİSSE SAYISINI AYNI ŞEKİLDE DİLEDİĞİNİZ GİBİ ARTIRABİLİRSİNİZ.
sb1 =  input.symbol(title='1',  defval='',group = "╠═════════════ ÖZEL LİSTE ═════════════╣")
sb2 =  input.symbol(title='2',  defval='BIST:XAKUR')
sb3 =  input.symbol(title='3',  defval='BIST:XBANA')
sb4 =  input.symbol(title='4',  defval='BIST:XBANK')
sb5 =  input.symbol(title='5',  defval='BIST:XBLSM')
sb6 =  input.symbol(title='6',  defval='BIST:XELKT')
sb7 =  input.symbol(title='7',  defval='BIST:XFINK')
sb8 =  input.symbol(title='8',  defval='BIST:XGIDA')
sb9 =  input.symbol(title='9',  defval='BIST:XGMYO')
sb10 = input.symbol(title='10', defval='BIST:XHOLD')
sb11 = input.symbol(title='11', defval='BIST:XILTM')
sb12 = input.symbol(title='12', defval='BIST:XINSA')
sb13 = input.symbol(title='13', defval='BIST:XKAGT')
sb14 = input.symbol(title='14', defval='BIST:XKMYA')
sb15 = input.symbol(title='15', defval='BIST:XMADN')
sb16 = input.symbol(title='16', defval='BIST:XMANA')
sb17 = input.symbol(title='17', defval='BIST:XMESY')
sb18 = input.symbol(title='18', defval='BIST:XSGRT')
sb19 = input.symbol(title='19', defval='BIST:XSPOR')
sb20 = input.symbol(title='20', defval='BIST:XTAST')
sb21 = input.symbol(title='21', defval='BIST:XTCRT')
sb22 = input.symbol(title='22', defval='BIST:XTEKS')
sb23 = input.symbol(title='23', defval='BIST:XTRZM')
sb24 = input.symbol(title='24', defval='BIST:XTUMY')
sb25 = input.symbol(title='25', defval='BIST:XU030')
sb26 = input.symbol(title='26', defval='BIST:XU100')
sb27 = input.symbol(title='27', defval='BIST:XU500')
sb28 = input.symbol(title='28', defval='BIST:XULAS')
sb29 = input.symbol(title='29', defval='BIST:XUSIN')
sb30 = input.symbol(title='30', defval='BIST:XUTEK')
sb31 = input.symbol(title='31', defval='BIST:XUTUM')
sb32 = input.symbol(title='32', defval='')
sb33 = input.symbol(title='33', defval='')
sb34 = input.symbol(title='34', defval='')
sb35 = input.symbol(title='35', defval='')
sb36 = input.symbol(title='36', defval='')
sb37 = input.symbol(title='37', defval='')
sb38 = input.symbol(title='38', defval='')
sb39 = input.symbol(title='39', defval='')
sb40 = input.symbol(title='40', defval='')

a01 = grupSec == '1' ? 'BIST:A1CAP' : grupSec == '2' ? 'BIST:ARASE' : grupSec == '3' ? 'BIST:BIENY' : grupSec == '4' ? 'BIST:CMBTN' : grupSec == '5' ? 'BIST:EDATA' : grupSec == '6' ? 'BIST:FONET' : grupSec == '7' ? 'BIST:HLGYO' : grupSec == '8' ? 'BIST:IZINV' : grupSec == '9' ? 'BIST:KRGYO' : grupSec == '10' ? 'BIST:MERKO' : grupSec == '11' ? 'BIST:OYAKC' : grupSec == '12' ? 'BIST:RALYH' : grupSec == '13' ? 'BIST:SNPAM' : grupSec == '14' ? 'BIST:TUKAS' : grupSec == '15' ? 'BIST:YUNSA': grupSec == 'ÖZEL LİSTE' ?sb1 : na
a02 = grupSec == '1' ? 'BIST:ACSEL' : grupSec == '2' ? 'BIST:ARCLK' : grupSec == '3' ? 'BIST:BIGCH' : grupSec == '4' ? 'BIST:CMENT' : grupSec == '5' ? 'BIST:EDIP' : grupSec == '6' ? 'BIST:FORMT' : grupSec == '7' ? 'BIST:HOROZ' : grupSec == '8' ? 'BIST:IZMDC' : grupSec == '9' ? 'BIST:KRONT' : grupSec == '10' ? 'BIST:METRO' : grupSec == '11' ? 'BIST:OYAYO' : grupSec == '12' ? 'BIST:RAYSG' : grupSec == '13' ? 'BIST:SODSN' : grupSec == '14' ? 'BIST:TUPRS' : grupSec == '15' ? 'BIST:YYAPI': grupSec == 'ÖZEL LİSTE' ?sb2 : na
a03 = grupSec == '1' ? 'BIST:ADEL' : grupSec == '2' ? 'BIST:ARDYZ' : grupSec == '3' ? 'BIST:BIMAS' : grupSec == '4' ? 'BIST:CONSE' : grupSec == '5' ? 'BIST:EFORC' : grupSec == '6' ? 'BIST:FORTE' : grupSec == '7' ? 'BIST:HRKET' : grupSec == '8' ? 'BIST:JANTS' : grupSec == '9' ? 'BIST:KRPLS' : grupSec == '10' ? 'BIST:METUR' : grupSec == '11' ? 'BIST:OYLUM' : grupSec == '12' ? 'BIST:REEDR' : grupSec == '13' ? 'BIST:SOKE' : grupSec == '14' ? 'BIST:TUREX' : grupSec == '15' ? 'BIST:YYLGD': grupSec == 'ÖZEL LİSTE' ?sb3 : na
a04 = grupSec == '1' ? 'BIST:ADESE' : grupSec == '2' ? 'BIST:ARENA' : grupSec == '3' ? 'BIST:BINHO' : grupSec == '4' ? 'BIST:COSMO' : grupSec == '5' ? 'BIST:EGEEN' : grupSec == '6' ? 'BIST:FRIGO' : grupSec == '7' ? 'BIST:HTTBT' : grupSec == '8' ? 'BIST:KAPLM' : grupSec == '9' ? 'BIST:KRSTL' : grupSec == '10' ? 'BIST:MGROS' : grupSec == '11' ? 'BIST:OYYAT' : grupSec == '12' ? 'BIST:RGYAS' : grupSec == '13' ? 'BIST:SOKM' : grupSec == '14' ? 'BIST:TURGG' : grupSec == '15' ? 'BIST:ZEDUR': grupSec == 'ÖZEL LİSTE' ?sb4 : na
a05 = grupSec == '1' ? 'BIST:ADGYO' : grupSec == '2' ? 'BIST:ARSAN' : grupSec == '3' ? 'BIST:BIOEN' : grupSec == '4' ? 'BIST:CRDFA' : grupSec == '5' ? 'BIST:EGEPO' : grupSec == '6' ? 'BIST:FROTO' : grupSec == '7' ? 'BIST:HUBVC' : grupSec == '8' ? 'BIST:KAREL' : grupSec == '9' ? 'BIST:KRTEK' : grupSec == '10' ? 'BIST:MHRGY' : grupSec == '11' ? 'BIST:OZGYO' : grupSec == '12' ? 'BIST:RNPOL' : grupSec == '13' ? 'BIST:SONME' : grupSec == '14' ? 'BIST:TURSG' : grupSec == '15' ? 'BIST:ZOREN': grupSec == 'ÖZEL LİSTE' ?sb5 : na
a06 = grupSec == '1' ? 'BIST:AEFES' : grupSec == '2' ? 'BIST:ARTMS' : grupSec == '3' ? 'BIST:BIZIM' : grupSec == '4' ? 'BIST:CRFSA' : grupSec == '5' ? 'BIST:EGGUB' : grupSec == '6' ? 'BIST:FZLGY' : grupSec == '7' ? 'BIST:HUNER' : grupSec == '8' ? 'BIST:KARSN' : grupSec == '9' ? 'BIST:KRVGD' : grupSec == '10' ? 'BIST:MIATK' : grupSec == '11' ? 'BIST:OZKGY' : grupSec == '12' ? 'BIST:RODRG' : grupSec == '13' ? 'BIST:SRVGY' : grupSec == '14' ? 'BIST:UFUK' : grupSec == '15' ? 'BIST:ZRGYO': grupSec == 'ÖZEL LİSTE' ?sb6 : na
a07 = grupSec == '1' ? 'BIST:AFYON' : grupSec == '2' ? 'BIST:ARZUM' : grupSec == '3' ? 'BIST:BJKAS' : grupSec == '4' ? 'BIST:CUSAN' : grupSec == '5' ? 'BIST:EGPRO' : grupSec == '6' ? 'BIST:GARAN' : grupSec == '7' ? 'BIST:HURGZ' : grupSec == '8' ? 'BIST:KARTN' : grupSec == '9' ? 'BIST:KSTUR' : grupSec == '10' ? 'BIST:MIPAZ' : grupSec == '11' ? 'BIST:OZRDN' : grupSec == '12' ? 'BIST:ROYAL' : grupSec == '13' ? 'BIST:SUMAS' : grupSec == '14' ? 'BIST:ULAS' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb7 : na
a08 = grupSec == '1' ? 'BIST:AGESA' : grupSec == '2' ? 'BIST:ASELS' : grupSec == '3' ? 'BIST:BLCYT' : grupSec == '4' ? 'BIST:CVKMD' : grupSec == '5' ? 'BIST:EGSER' : grupSec == '6' ? 'BIST:GARFA' : grupSec == '7' ? 'BIST:ICBCT' : grupSec == '8' ? 'BIST:KARYE' : grupSec == '9' ? 'BIST:KTLEV' : grupSec == '10' ? 'BIST:MMCAS' : grupSec == '11' ? 'BIST:OZSUB' : grupSec == '12' ? 'BIST:RTALB' : grupSec == '13' ? 'BIST:SUNTK' : grupSec == '14' ? 'BIST:ULKER' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb8 : na
a09 = grupSec == '1' ? 'BIST:AGHOL' : grupSec == '2' ? 'BIST:ASGYO' : grupSec == '3' ? 'BIST:BMSCH' : grupSec == '4' ? 'BIST:CWENE' : grupSec == '5' ? 'BIST:EKGYO' : grupSec == '6' ? 'BIST:GEDIK' : grupSec == '7' ? 'BIST:ICUGS' : grupSec == '8' ? 'BIST:KATMR' : grupSec == '9' ? 'BIST:KTSKR' : grupSec == '10' ? 'BIST:MNDRS' : grupSec == '11' ? 'BIST:OZYSR' : grupSec == '12' ? 'BIST:RUBNS' : grupSec == '13' ? 'BIST:SURGY' : grupSec == '14' ? 'BIST:ULUFA' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb9 : na
a10 = grupSec == '1' ? 'BIST:AGROT' : grupSec == '2' ? 'BIST:ASTOR' : grupSec == '3' ? 'BIST:BMSTL' : grupSec == '4' ? 'BIST:DAGHL' : grupSec == '5' ? 'BIST:EKIZ' : grupSec == '6' ? 'BIST:GEDZA' : grupSec == '7' ? 'BIST:IDGYO' : grupSec == '8' ? 'BIST:KAYSE' : grupSec == '9' ? 'BIST:KUTPO' : grupSec == '10' ? 'BIST:MNDTR' : grupSec == '11' ? 'BIST:PAGYO' : grupSec == '12' ? 'BIST:RYGYO' : grupSec == '13' ? 'BIST:SUWEN' : grupSec == '14' ? 'BIST:ULUSE' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb10 : na
a11 = grupSec == '1' ? 'BIST:AGYO' : grupSec == '2' ? 'BIST:ASUZU' : grupSec == '3' ? 'BIST:BNTAS' : grupSec == '4' ? 'BIST:DAGI' : grupSec == '5' ? 'BIST:EKOS' : grupSec == '6' ? 'BIST:GENIL' : grupSec == '7' ? 'BIST:IEYHO' : grupSec == '8' ? 'BIST:KBORU' : grupSec == '9' ? 'BIST:KUVVA' : grupSec == '10' ? 'BIST:MOBTL' : grupSec == '11' ? 'BIST:PAMEL' : grupSec == '12' ? 'BIST:RYSAS' : grupSec == '13' ? 'BIST:TABGD' : grupSec == '14' ? 'BIST:ULUUN' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb11 : na
a12 = grupSec == '1' ? 'BIST:AHGAZ' : grupSec == '2' ? 'BIST:ATAGY' : grupSec == '3' ? 'BIST:BOBET' : grupSec == '4' ? 'BIST:DAPGM' : grupSec == '5' ? 'BIST:EKSUN' : grupSec == '6' ? 'BIST:GENTS' : grupSec == '7' ? 'BIST:IHAAS' : grupSec == '8' ? 'BIST:KCAER' : grupSec == '9' ? 'BIST:KUYAS' : grupSec == '10' ? 'BIST:MOGAN' : grupSec == '11' ? 'BIST:PAPIL' : grupSec == '12' ? 'BIST:SAFKR' : grupSec == '13' ? 'BIST:TARKM' : grupSec == '14' ? 'BIST:UMPAS' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb12 : na
a13 = grupSec == '1' ? 'BIST:AKBNK' : grupSec == '2' ? 'BIST:ATAKP' : grupSec == '3' ? 'BIST:BORLS' : grupSec == '4' ? 'BIST:DARDL' : grupSec == '5' ? 'BIST:ELITE' : grupSec == '6' ? 'BIST:GEREL' : grupSec == '7' ? 'BIST:IHEVA' : grupSec == '8' ? 'BIST:KCHOL' : grupSec == '9' ? 'BIST:KZBGY' : grupSec == '10' ? 'BIST:MPARK' : grupSec == '11' ? 'BIST:PARSN' : grupSec == '12' ? 'BIST:SAHOL' : grupSec == '13' ? 'BIST:TATEN' : grupSec == '14' ? 'BIST:UNLU' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb13 : na
a14 = grupSec == '1' ? 'BIST:AKCNS' : grupSec == '2' ? 'BIST:ATATP' : grupSec == '3' ? 'BIST:BORSK' : grupSec == '4' ? 'BIST:DENGE' : grupSec == '5' ? 'BIST:EMKEL' : grupSec == '6' ? 'BIST:GESAN' : grupSec == '7' ? 'BIST:IHGZT' : grupSec == '8' ? 'BIST:KENT' : grupSec == '9' ? 'BIST:KZGYO' : grupSec == '10' ? 'BIST:MRGYO' : grupSec == '11' ? 'BIST:PASEU' : grupSec == '12' ? 'BIST:SAMAT' : grupSec == '13' ? 'BIST:TATGD' : grupSec == '14' ? 'BIST:USAK' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb14 : na
a15 = grupSec == '1' ? 'BIST:AKENR' : grupSec == '2' ? 'BIST:ATEKS' : grupSec == '3' ? 'BIST:BOSSA' : grupSec == '4' ? 'BIST:DERHL' : grupSec == '5' ? 'BIST:EMNIS' : grupSec == '6' ? 'BIST:GIPTA' : grupSec == '7' ? 'BIST:IHLAS' : grupSec == '8' ? 'BIST:KERVN' : grupSec == '9' ? 'BIST:LIDER' : grupSec == '10' ? 'BIST:MRSHL' : grupSec == '11' ? 'BIST:PATEK' : grupSec == '12' ? 'BIST:SANEL' : grupSec == '13' ? 'BIST:TAVHL' : grupSec == '14' ? 'BIST:UZERB' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb15 : na
a16 = grupSec == '1' ? 'BIST:AKFGY' : grupSec == '2' ? 'BIST:ATLAS' : grupSec == '3' ? 'BIST:BRISA' : grupSec == '4' ? 'BIST:DERIM' : grupSec == '5' ? 'BIST:ENERY' : grupSec == '6' ? 'BIST:GLBMD' : grupSec == '7' ? 'BIST:IHLGM' : grupSec == '8' ? 'BIST:KERVT' : grupSec == '9' ? 'BIST:LIDFA' : grupSec == '10' ? 'BIST:MSGYO' : grupSec == '11' ? 'BIST:PCILT' : grupSec == '12' ? 'BIST:SANFM' : grupSec == '13' ? 'BIST:TBORG' : grupSec == '14' ? 'BIST:VAKBN' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb16 : na
a17 = grupSec == '1' ? 'BIST:AKFYE' : grupSec == '2' ? 'BIST:ATSYH' : grupSec == '3' ? 'BIST:BRKO' : grupSec == '4' ? 'BIST:DESA' : grupSec == '5' ? 'BIST:ENJSA' : grupSec == '6' ? 'BIST:GLCVY' : grupSec == '7' ? 'BIST:IHYAY' : grupSec == '8' ? 'BIST:KFEIN' : grupSec == '9' ? 'BIST:LILAK' : grupSec == '10' ? 'BIST:MTRKS' : grupSec == '11' ? 'BIST:PEHOL' : grupSec == '12' ? 'BIST:SANKO' : grupSec == '13' ? 'BIST:TCELL' : grupSec == '14' ? 'BIST:VAKFN' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb17 : na
a18 = grupSec == '1' ? 'BIST:AKGRT' : grupSec == '2' ? 'BIST:AVGYO' : grupSec == '3' ? 'BIST:BRKSN' : grupSec == '4' ? 'BIST:DESPC' : grupSec == '5' ? 'BIST:ENKAI' : grupSec == '6' ? 'BIST:GLRYH' : grupSec == '7' ? 'BIST:IMASM' : grupSec == '8' ? 'BIST:KGYO' : grupSec == '9' ? 'BIST:LINK' : grupSec == '10' ? 'BIST:MTRYO' : grupSec == '11' ? 'BIST:PEKGY' : grupSec == '12' ? 'BIST:SARKY' : grupSec == '13' ? 'BIST:TDGYO' : grupSec == '14' ? 'BIST:VAKKO' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb18 : na
a19 = grupSec == '1' ? 'BIST:AKMGY' : grupSec == '2' ? 'BIST:AVHOL' : grupSec == '3' ? 'BIST:BRKVY' : grupSec == '4' ? 'BIST:DEVA' : grupSec == '5' ? 'BIST:ENSRI' : grupSec == '6' ? 'BIST:GLYHO' : grupSec == '7' ? 'BIST:INDES' : grupSec == '8' ? 'BIST:KIMMR' : grupSec == '9' ? 'BIST:LKMNH' : grupSec == '10' ? 'BIST:MZHLD' : grupSec == '11' ? 'BIST:PENGD' : grupSec == '12' ? 'BIST:SASA' : grupSec == '13' ? 'BIST:TEKTU' : grupSec == '14' ? 'BIST:VANGD' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb19 : na
a20 = grupSec == '1' ? 'BIST:AKSA' : grupSec == '2' ? 'BIST:AVOD' : grupSec == '3' ? 'BIST:BRLSM' : grupSec == '4' ? 'BIST:DGATE' : grupSec == '5' ? 'BIST:ENTRA' : grupSec == '6' ? 'BIST:GMTAS' : grupSec == '7' ? 'BIST:INFO' : grupSec == '8' ? 'BIST:KLGYO' : grupSec == '9' ? 'BIST:LMKDC' : grupSec == '10' ? 'BIST:NATEN' : grupSec == '11' ? 'BIST:PENTA' : grupSec == '12' ? 'BIST:SAYAS' : grupSec == '13' ? 'BIST:TERA' : grupSec == '14' ? 'BIST:VBTYZ' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb20 : na
a21 = grupSec == '1' ? 'BIST:AKSEN' : grupSec == '2' ? 'BIST:AVPGY' : grupSec == '3' ? 'BIST:BRMEN' : grupSec == '4' ? 'BIST:DGGYO' : grupSec == '5' ? 'BIST:EPLAS' : grupSec == '6' ? 'BIST:GOKNR' : grupSec == '7' ? 'BIST:INGRM' : grupSec == '8' ? 'BIST:KLKIM' : grupSec == '9' ? 'BIST:LOGO' : grupSec == '10' ? 'BIST:NETAS' : grupSec == '11' ? 'BIST:PETKM' : grupSec == '12' ? 'BIST:SDTTR' : grupSec == '13' ? 'BIST:TETMT' : grupSec == '14' ? 'BIST:VERTU' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb21 : na
a22 = grupSec == '1' ? 'BIST:AKSGY' : grupSec == '2' ? 'BIST:AVTUR' : grupSec == '3' ? 'BIST:BRSAN' : grupSec == '4' ? 'BIST:DGNMO' : grupSec == '5' ? 'BIST:ERBOS' : grupSec == '6' ? 'BIST:GOLTS' : grupSec == '7' ? 'BIST:INTEM' : grupSec == '8' ? 'BIST:KLMSN' : grupSec == '9' ? 'BIST:LRSHO' : grupSec == '10' ? 'BIST:NIBAS' : grupSec == '11' ? 'BIST:PETUN' : grupSec == '12' ? 'BIST:SEGMN' : grupSec == '13' ? 'BIST:TEZOL' : grupSec == '14' ? 'BIST:VERUS' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb22 : na
a23 = grupSec == '1' ? 'BIST:AKSUE' : grupSec == '2' ? 'BIST:AYCES' : grupSec == '3' ? 'BIST:BRYAT' : grupSec == '4' ? 'BIST:DIRIT' : grupSec == '5' ? 'BIST:ERCB' : grupSec == '6' ? 'BIST:GOODY' : grupSec == '7' ? 'BIST:INVEO' : grupSec == '8' ? 'BIST:KLNMA' : grupSec == '9' ? 'BIST:LUKSK' : grupSec == '10' ? 'BIST:NTGAZ' : grupSec == '11' ? 'BIST:PGSUS' : grupSec == '12' ? 'BIST:SEGYO' : grupSec == '13' ? 'BIST:TGSAS' : grupSec == '14' ? 'BIST:VESBE' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb23 : na
a24 = grupSec == '1' ? 'BIST:AKYHO' : grupSec == '2' ? 'BIST:AYDEM' : grupSec == '3' ? 'BIST:BSOKE' : grupSec == '4' ? 'BIST:DITAS' : grupSec == '5' ? 'BIST:EREGL' : grupSec == '6' ? 'BIST:GOZDE' : grupSec == '7' ? 'BIST:INVES' : grupSec == '8' ? 'BIST:KLRHO' : grupSec == '9' ? 'BIST:MAALT' : grupSec == '10' ? 'BIST:NTHOL' : grupSec == '11' ? 'BIST:PINSU' : grupSec == '12' ? 'BIST:SEKFK' : grupSec == '13' ? 'BIST:THYAO' : grupSec == '14' ? 'BIST:VESTL' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb24 : na
a25 = grupSec == '1' ? 'BIST:ALARK' : grupSec == '2' ? 'BIST:AYEN' : grupSec == '3' ? 'BIST:BTCIM' : grupSec == '4' ? 'BIST:DMRGD' : grupSec == '5' ? 'BIST:ERSU' : grupSec == '6' ? 'BIST:GRNYO' : grupSec == '7' ? 'BIST:IPEKE' : grupSec == '8' ? 'BIST:KLSER' : grupSec == '9' ? 'BIST:MACKO' : grupSec == '10' ? 'BIST:NUGYO' : grupSec == '11' ? 'BIST:PKART' : grupSec == '12' ? 'BIST:SEKUR' : grupSec == '13' ? 'BIST:TKFEN' : grupSec == '14' ? 'BIST:VKFYO' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb25 : na
a26 = grupSec == '1' ? 'BIST:ALBRK' : grupSec == '2' ? 'BIST:AYES' : grupSec == '3' ? 'BIST:BUCIM' : grupSec == '4' ? 'BIST:DMSAS' : grupSec == '5' ? 'BIST:ESCAR' : grupSec == '6' ? 'BIST:GRSEL' : grupSec == '7' ? 'BIST:ISATR' : grupSec == '8' ? 'BIST:KLSYN' : grupSec == '9' ? 'BIST:MAGEN' : grupSec == '10' ? 'BIST:NUHCM' : grupSec == '11' ? 'BIST:PKENT' : grupSec == '12' ? 'BIST:SELEC' : grupSec == '13' ? 'BIST:TKNSA' : grupSec == '14' ? 'BIST:VKGYO' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb26 : na
a27 = grupSec == '1' ? 'BIST:ALCAR' : grupSec == '2' ? 'BIST:AYGAZ' : grupSec == '3' ? 'BIST:BURCE' : grupSec == '4' ? 'BIST:DNISI' : grupSec == '5' ? 'BIST:ESCOM' : grupSec == '6' ? 'BIST:GRTRK' : grupSec == '7' ? 'BIST:ISBIR' : grupSec == '8' ? 'BIST:KMPUR' : grupSec == '9' ? 'BIST:MAKIM' : grupSec == '10' ? 'BIST:OBAMS' : grupSec == '11' ? 'BIST:PLTUR' : grupSec == '12' ? 'BIST:SELGD' : grupSec == '13' ? 'BIST:TLMAN' : grupSec == '14' ? 'BIST:VKING' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb27 : na
a28 = grupSec == '1' ? 'BIST:ALCTL' : grupSec == '2' ? 'BIST:AZTEK' : grupSec == '3' ? 'BIST:BURVA' : grupSec == '4' ? 'BIST:DOAS' : grupSec == '5' ? 'BIST:ESEN' : grupSec == '6' ? 'BIST:GSDDE' : grupSec == '7' ? 'BIST:ISBTR' : grupSec == '8' ? 'BIST:KNFRT' : grupSec == '9' ? 'BIST:MAKTK' : grupSec == '10' ? 'BIST:OBASE' : grupSec == '11' ? 'BIST:PNLSN' : grupSec == '12' ? 'BIST:SELVA' : grupSec == '13' ? 'BIST:TMPOL' : grupSec == '14' ? 'BIST:VRGYO' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb28 : na
a29 = grupSec == '1' ? 'BIST:ALFAS' : grupSec == '2' ? 'BIST:BAGFS' : grupSec == '3' ? 'BIST:BVSAN' : grupSec == '4' ? 'BIST:DOBUR' : grupSec == '5' ? 'BIST:ETILR' : grupSec == '6' ? 'BIST:GSDHO' : grupSec == '7' ? 'BIST:ISCTR' : grupSec == '8' ? 'BIST:KOCMT' : grupSec == '9' ? 'BIST:MANAS' : grupSec == '10' ? 'BIST:ODAS' : grupSec == '11' ? 'BIST:PNSUT' : grupSec == '12' ? 'BIST:SEYKM' : grupSec == '13' ? 'BIST:TMSN' : grupSec == '14' ? 'BIST:YAPRK' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb29 : na
a30 = grupSec == '1' ? 'BIST:ALGYO' : grupSec == '2' ? 'BIST:BAKAB' : grupSec == '3' ? 'BIST:BYDNR' : grupSec == '4' ? 'BIST:DOCO' : grupSec == '5' ? 'BIST:ETYAT' : grupSec == '6' ? 'BIST:GSRAY' : grupSec == '7' ? 'BIST:ISDMR' : grupSec == '8' ? 'BIST:KONKA' : grupSec == '9' ? 'BIST:MARBL' : grupSec == '10' ? 'BIST:ODINE' : grupSec == '11' ? 'BIST:POLHO' : grupSec == '12' ? 'BIST:SILVR' : grupSec == '13' ? 'BIST:TNZTP' : grupSec == '14' ? 'BIST:YATAS' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb30 : na
a31 = grupSec == '1' ? 'BIST:ALKA' : grupSec == '2' ? 'BIST:BALAT' : grupSec == '3' ? 'BIST:CANTE' : grupSec == '4' ? 'BIST:DOFER' : grupSec == '5' ? 'BIST:EUHOL' : grupSec == '6' ? 'BIST:GUBRF' : grupSec == '7' ? 'BIST:ISFIN' : grupSec == '8' ? 'BIST:KONTR' : grupSec == '9' ? 'BIST:MARKA' : grupSec == '10' ? 'BIST:OFSYM' : grupSec == '11' ? 'BIST:POLTK' : grupSec == '12' ? 'BIST:SISE' : grupSec == '13' ? 'BIST:TOASO' : grupSec == '14' ? 'BIST:YAYLA' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb31 : na
a32 = grupSec == '1' ? 'BIST:ALKIM' : grupSec == '2' ? 'BIST:BANVT' : grupSec == '3' ? 'BIST:CASA' : grupSec == '4' ? 'BIST:DOGUB' : grupSec == '5' ? 'BIST:EUKYO' : grupSec == '6' ? 'BIST:GWIND' : grupSec == '7' ? 'BIST:ISGSY' : grupSec == '8' ? 'BIST:KONYA' : grupSec == '9' ? 'BIST:MARTI' : grupSec == '10' ? 'BIST:ONCSM' : grupSec == '11' ? 'BIST:PRDGS' : grupSec == '12' ? 'BIST:SKBNK' : grupSec == '13' ? 'BIST:TRCAS' : grupSec == '14' ? 'BIST:YBTAS' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb32 : na
a33 = grupSec == '1' ? 'BIST:ALKLC' : grupSec == '2' ? 'BIST:BARMA' : grupSec == '3' ? 'BIST:CATES' : grupSec == '4' ? 'BIST:DOHOL' : grupSec == '5' ? 'BIST:EUPWR' : grupSec == '6' ? 'BIST:GZNMI' : grupSec == '7' ? 'BIST:ISGYO' : grupSec == '8' ? 'BIST:KOPOL' : grupSec == '9' ? 'BIST:MAVI' : grupSec == '10' ? 'BIST:ONRYT' : grupSec == '11' ? 'BIST:PRKAB' : grupSec == '12' ? 'BIST:SKTAS' : grupSec == '13' ? 'BIST:TRGYO' : grupSec == '14' ? 'BIST:YEOTK' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb33 : na
a34 = grupSec == '1' ? 'BIST:ALMAD' : grupSec == '2' ? 'BIST:BASCM' : grupSec == '3' ? 'BIST:CCOLA' : grupSec == '4' ? 'BIST:DOKTA' : grupSec == '5' ? 'BIST:EUREN' : grupSec == '6' ? 'BIST:HALKB' : grupSec == '7' ? 'BIST:ISKPL' : grupSec == '8' ? 'BIST:KORDS' : grupSec == '9' ? 'BIST:MEDTR' : grupSec == '10' ? 'BIST:ORCAY' : grupSec == '11' ? 'BIST:PRKME' : grupSec == '12' ? 'BIST:SKYLP' : grupSec == '13' ? 'BIST:TRILC' : grupSec == '14' ? 'BIST:YESIL' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb34 : na
a35 = grupSec == '1' ? 'BIST:ALTNY' : grupSec == '2' ? 'BIST:BASGZ' : grupSec == '3' ? 'BIST:CELHA' : grupSec == '4' ? 'BIST:DURDO' : grupSec == '5' ? 'BIST:EUYO' : grupSec == '6' ? 'BIST:HATEK' : grupSec == '7' ? 'BIST:ISKUR' : grupSec == '8' ? 'BIST:KOTON' : grupSec == '9' ? 'BIST:MEGAP' : grupSec == '10' ? 'BIST:ORGE' : grupSec == '11' ? 'BIST:PRZMA' : grupSec == '12' ? 'BIST:SKYMD' : grupSec == '13' ? 'BIST:TSGYO' : grupSec == '14' ? 'BIST:YGGYO' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb35 : na
a36 = grupSec == '1' ? 'BIST:ALVES' : grupSec == '2' ? 'BIST:BAYRK' : grupSec == '3' ? 'BIST:CEMAS' : grupSec == '4' ? 'BIST:DYOBY' : grupSec == '5' ? 'BIST:EYGYO' : grupSec == '6' ? 'BIST:HATSN' : grupSec == '7' ? 'BIST:ISMEN' : grupSec == '8' ? 'BIST:KOZAA' : grupSec == '9' ? 'BIST:MEGMT' : grupSec == '10' ? 'BIST:ORMA' : grupSec == '11' ? 'BIST:PSDTC' : grupSec == '12' ? 'BIST:SMART' : grupSec == '13' ? 'BIST:TSKB' : grupSec == '14' ? 'BIST:YGYO' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb36 : na
a37 = grupSec == '1' ? 'BIST:ANELE' : grupSec == '2' ? 'BIST:BEGYO' : grupSec == '3' ? 'BIST:CEMTS' : grupSec == '4' ? 'BIST:DZGYO' : grupSec == '5' ? 'BIST:FADE' : grupSec == '6' ? 'BIST:HDFGS' : grupSec == '7' ? 'BIST:ISSEN' : grupSec == '8' ? 'BIST:KOZAL' : grupSec == '9' ? 'BIST:MEKAG' : grupSec == '10' ? 'BIST:OSMEN' : grupSec == '11' ? 'BIST:PSGYO' : grupSec == '12' ? 'BIST:SMRTG' : grupSec == '13' ? 'BIST:TSPOR' : grupSec == '14' ? 'BIST:YIGIT' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb37 : na
a38 = grupSec == '1' ? 'BIST:ANGEN' : grupSec == '2' ? 'BIST:BERA' : grupSec == '3' ? 'BIST:CEOEM' : grupSec == '4' ? 'BIST:EBEBK' : grupSec == '5' ? 'BIST:FENER' : grupSec == '6' ? 'BIST:HEDEF' : grupSec == '7' ? 'BIST:ISYAT' : grupSec == '8' ? 'BIST:KRDMA' : grupSec == '9' ? 'BIST:MEPET' : grupSec == '10' ? 'BIST:OSTIM' : grupSec == '11' ? 'BIST:QNBFB' : grupSec == '12' ? 'BIST:SNGYO' : grupSec == '13' ? 'BIST:TTKOM' : grupSec == '14' ? 'BIST:YKBNK' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb38 : na
a39 = grupSec == '1' ? 'BIST:ANHYT' : grupSec == '2' ? 'BIST:BEYAZ' : grupSec == '3' ? 'BIST:CIMSA' : grupSec == '4' ? 'BIST:ECILC' : grupSec == '5' ? 'BIST:FLAP' : grupSec == '6' ? 'BIST:HEKTS' : grupSec == '7' ? 'BIST:IZENR' : grupSec == '8' ? 'BIST:KRDMB' : grupSec == '9' ? 'BIST:MERCN' : grupSec == '10' ? 'BIST:OTKAR' : grupSec == '11' ? 'BIST:QNBFL' : grupSec == '12' ? 'BIST:SNICA' : grupSec == '13' ? 'BIST:TTRAK' : grupSec == '14' ? 'BIST:YKSLN' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb39 : na
a40 = grupSec == '1' ? 'BIST:ANSGR' : grupSec == '2' ? 'BIST:BFREN' : grupSec == '3' ? 'BIST:CLEBI' : grupSec == '4' ? 'BIST:ECZYT' : grupSec == '5' ? 'BIST:FMIZP' : grupSec == '6' ? 'BIST:HKTM' : grupSec == '7' ? 'BIST:IZFAS' : grupSec == '8' ? 'BIST:KRDMD' : grupSec == '9' ? 'BIST:MERIT' : grupSec == '10' ? 'BIST:OTTO' : grupSec == '11' ? 'BIST:QUAGR' : grupSec == '12' ? 'BIST:SNKRN' : grupSec == '13' ? 'BIST:TUCLK' : grupSec == '14' ? 'BIST:YONGA' : grupSec == '15' ? 'BIST:': grupSec == 'ÖZEL LİSTE' ?sb40 : na



[v1,s1] = request.security(a01, per, func(),ignore_invalid_symbol = true)
[v2,s2] = request.security(a02, per, func(),ignore_invalid_symbol = true)
[v3,s3] = request.security(a03, per, func(),ignore_invalid_symbol = true)
[v4,s4] = request.security(a04, per, func(),ignore_invalid_symbol = true)
[v5,s5] = request.security(a05, per, func(),ignore_invalid_symbol = true)
[v6,s6] = request.security(a06, per, func(),ignore_invalid_symbol = true)
[v7,s7] = request.security(a07, per, func(),ignore_invalid_symbol = true)
[v8,s8] = request.security(a08, per, func(),ignore_invalid_symbol = true)
[v9,s9] = request.security(a09, per, func(),ignore_invalid_symbol = true)
[v10,s10] = request.security(a10, per, func(),ignore_invalid_symbol = true)
[v11,s11] = request.security(a11, per, func(),ignore_invalid_symbol = true)
[v12,s12] = request.security(a12, per, func(),ignore_invalid_symbol = true)
[v13,s13] = request.security(a13, per, func(),ignore_invalid_symbol = true)
[v14,s14] = request.security(a14, per, func(),ignore_invalid_symbol = true)
[v15,s15] = request.security(a15, per, func(),ignore_invalid_symbol = true)
[v16,s16] = request.security(a16, per, func(),ignore_invalid_symbol = true)
[v17,s17] = request.security(a17, per, func(),ignore_invalid_symbol = true)
[v18,s18] = request.security(a18, per, func(),ignore_invalid_symbol = true)
[v19,s19] = request.security(a19, per, func(),ignore_invalid_symbol = true)
[v20,s20] = request.security(a20, per, func(),ignore_invalid_symbol = true)
[v21,s21] = request.security(a21, per, func(),ignore_invalid_symbol = true)
[v22,s22] = request.security(a22, per, func(),ignore_invalid_symbol = true)
[v23,s23] = request.security(a23, per, func(),ignore_invalid_symbol = true)
[v24,s24] = request.security(a24, per, func(),ignore_invalid_symbol = true)
[v25,s25] = request.security(a25, per, func(),ignore_invalid_symbol = true)
[v26,s26] = request.security(a26, per, func(),ignore_invalid_symbol = true)
[v27,s27] = request.security(a27, per, func(),ignore_invalid_symbol = true)
[v28,s28] = request.security(a28, per, func(),ignore_invalid_symbol = true)
[v29,s29] = request.security(a29, per, func(),ignore_invalid_symbol = true)
[v30,s30] = request.security(a30, per, func(),ignore_invalid_symbol = true)
[v31,s31] = request.security(a31, per, func(),ignore_invalid_symbol = true)
[v32,s32] = request.security(a32, per, func(),ignore_invalid_symbol = true)
[v33,s33] = request.security(a33, per, func(),ignore_invalid_symbol = true)
[v34,s34] = request.security(a34, per, func(),ignore_invalid_symbol = true)
[v35,s35] = request.security(a35, per, func(),ignore_invalid_symbol = true)
[v36,s36] = request.security(a36, per, func(),ignore_invalid_symbol = true)
[v37,s37] = request.security(a37, per, func(),ignore_invalid_symbol = true)
[v38,s38] = request.security(a38, per, func(),ignore_invalid_symbol = true)
[v39,s39] = request.security(a39, per, func(),ignore_invalid_symbol = true)
[v40,s40] = request.security(a40, per, func(),ignore_invalid_symbol = true)




scr_label = 'ALIŞ TARAMA\n'
scr_label := v1 ? scr_label + syminfo.ticker(a01) + '\n' : scr_label
scr_label := v2 ? scr_label + syminfo.ticker(a02) + '\n' : scr_label
scr_label := v3 ? scr_label + syminfo.ticker(a03) + '\n' : scr_label
scr_label := v4 ? scr_label + syminfo.ticker(a04) + '\n' : scr_label
scr_label := v5 ? scr_label + syminfo.ticker(a05) + '\n' : scr_label
scr_label := v6 ? scr_label + syminfo.ticker(a06) + '\n' : scr_label
scr_label := v7 ? scr_label + syminfo.ticker(a07) + '\n' : scr_label
scr_label := v8 ? scr_label + syminfo.ticker(a08) + '\n' : scr_label
scr_label := v9 ? scr_label + syminfo.ticker(a09) + '\n' : scr_label
scr_label := v10 ? scr_label + syminfo.ticker(a10) + '\n' : scr_label
scr_label := v11 ? scr_label + syminfo.ticker(a11) + '\n' : scr_label
scr_label := v12 ? scr_label + syminfo.ticker(a12) + '\n' : scr_label
scr_label := v13 ? scr_label + syminfo.ticker(a13) + '\n' : scr_label
scr_label := v14 ? scr_label + syminfo.ticker(a14) + '\n' : scr_label
scr_label := v15 ? scr_label + syminfo.ticker(a15) + '\n' : scr_label
scr_label := v16 ? scr_label + syminfo.ticker(a16) + '\n' : scr_label
scr_label := v17 ? scr_label + syminfo.ticker(a17) + '\n' : scr_label
scr_label := v18 ? scr_label + syminfo.ticker(a18) + '\n' : scr_label
scr_label := v19 ? scr_label + syminfo.ticker(a19) + '\n' : scr_label
scr_label := v20 ? scr_label + syminfo.ticker(a20) + '\n' : scr_label
scr_label := v21 ? scr_label + syminfo.ticker(a21) + '\n' : scr_label
scr_label := v22 ? scr_label + syminfo.ticker(a22) + '\n' : scr_label
scr_label := v23 ? scr_label + syminfo.ticker(a23) + '\n' : scr_label
scr_label := v24 ? scr_label + syminfo.ticker(a24) + '\n' : scr_label
scr_label := v25 ? scr_label + syminfo.ticker(a25) + '\n' : scr_label
scr_label := v26 ? scr_label + syminfo.ticker(a26) + '\n' : scr_label
scr_label := v27 ? scr_label + syminfo.ticker(a27) + '\n' : scr_label
scr_label := v28 ? scr_label + syminfo.ticker(a28) + '\n' : scr_label
scr_label := v29 ? scr_label + syminfo.ticker(a29) + '\n' : scr_label
scr_label := v30 ? scr_label + syminfo.ticker(a30) + '\n' : scr_label
scr_label := v31 ? scr_label + syminfo.ticker(a31) + '\n' : scr_label
scr_label := v32 ? scr_label + syminfo.ticker(a32) + '\n' : scr_label
scr_label := v33 ? scr_label + syminfo.ticker(a33) + '\n' : scr_label
scr_label := v34 ? scr_label + syminfo.ticker(a34) + '\n' : scr_label
scr_label := v35 ? scr_label + syminfo.ticker(a35) + '\n' : scr_label
scr_label := v36 ? scr_label + syminfo.ticker(a36) + '\n' : scr_label
scr_label := v37 ? scr_label + syminfo.ticker(a37) + '\n' : scr_label
scr_label := v38 ? scr_label + syminfo.ticker(a38) + '\n' : scr_label
scr_label := v39 ? scr_label + syminfo.ticker(a39) + '\n' : scr_label
scr_label := v40 ? scr_label + syminfo.ticker(a40) + '\n' : scr_label

lab_1 = label.new(bar_index + loc,close, scr_label, color=color.green, textcolor=color.white, style=label.style_label_center)
label.delete(lab_1[1])


if str.length(scr_label) > 8
    alert(scr_label,alert.freq_once_per_bar_close)
//------------------------------------------------------

scr_label1 = 'SATIŞ TARAMA\n'
scr_label1 := s1 ? scr_label1 + syminfo.ticker(a01) + '\n' : scr_label1
scr_label1 := s2 ? scr_label1 + syminfo.ticker(a02) + '\n' : scr_label1
scr_label1 := s3 ? scr_label1 + syminfo.ticker(a03) + '\n' : scr_label1
scr_label1 := s4 ? scr_label1 + syminfo.ticker(a04) + '\n' : scr_label1
scr_label1 := s5 ? scr_label1 + syminfo.ticker(a05) + '\n' : scr_label1
scr_label1 := s6 ? scr_label1 + syminfo.ticker(a06) + '\n' : scr_label1
scr_label1 := s7 ? scr_label1 + syminfo.ticker(a07) + '\n' : scr_label1
scr_label1 := s8 ? scr_label1 + syminfo.ticker(a08) + '\n' : scr_label1
scr_label1 := s9 ? scr_label1 + syminfo.ticker(a09) + '\n' : scr_label1
scr_label1 := s10 ? scr_label1 + syminfo.ticker(a10) + '\n' : scr_label1
scr_label1 := s11 ? scr_label1 + syminfo.ticker(a11) + '\n' : scr_label1
scr_label1 := s12 ? scr_label1 + syminfo.ticker(a12) + '\n' : scr_label1
scr_label1 := s13 ? scr_label1 + syminfo.ticker(a13) + '\n' : scr_label1
scr_label1 := s14 ? scr_label1 + syminfo.ticker(a14) + '\n' : scr_label1
scr_label1 := s15 ? scr_label1 + syminfo.ticker(a15) + '\n' : scr_label1
scr_label1 := s16 ? scr_label1 + syminfo.ticker(a16) + '\n' : scr_label1
scr_label1 := s17 ? scr_label1 + syminfo.ticker(a17) + '\n' : scr_label1
scr_label1 := s18 ? scr_label1 + syminfo.ticker(a18) + '\n' : scr_label1
scr_label1 := s19 ? scr_label1 + syminfo.ticker(a19) + '\n' : scr_label1
scr_label1 := s20 ? scr_label1 + syminfo.ticker(a20) + '\n' : scr_label1
scr_label1 := s21 ? scr_label1 + syminfo.ticker(a21) + '\n' : scr_label1
scr_label1 := s22 ? scr_label1 + syminfo.ticker(a22) + '\n' : scr_label1
scr_label1 := s23 ? scr_label1 + syminfo.ticker(a23) + '\n' : scr_label1
scr_label1 := s24 ? scr_label1 + syminfo.ticker(a24) + '\n' : scr_label1
scr_label1 := s25 ? scr_label1 + syminfo.ticker(a25) + '\n' : scr_label1
scr_label1 := s26 ? scr_label1 + syminfo.ticker(a26) + '\n' : scr_label1
scr_label1 := s27 ? scr_label1 + syminfo.ticker(a27) + '\n' : scr_label1
scr_label1 := s28 ? scr_label1 + syminfo.ticker(a28) + '\n' : scr_label1
scr_label1 := s29 ? scr_label1 + syminfo.ticker(a29) + '\n' : scr_label1
scr_label1 := s30 ? scr_label1 + syminfo.ticker(a30) + '\n' : scr_label1
scr_label1 := s31 ? scr_label1 + syminfo.ticker(a31) + '\n' : scr_label1
scr_label1 := s32 ? scr_label1 + syminfo.ticker(a32) + '\n' : scr_label1
scr_label1 := s33 ? scr_label1 + syminfo.ticker(a33) + '\n' : scr_label1
scr_label1 := s34 ? scr_label1 + syminfo.ticker(a34) + '\n' : scr_label1
scr_label1 := s35 ? scr_label1 + syminfo.ticker(a35) + '\n' : scr_label1
scr_label1 := s36 ? scr_label1 + syminfo.ticker(a36) + '\n' : scr_label1
scr_label1 := s37 ? scr_label1 + syminfo.ticker(a37) + '\n' : scr_label1
scr_label1 := s38 ? scr_label1 + syminfo.ticker(a38) + '\n' : scr_label1
scr_label1 := s39 ? scr_label1 + syminfo.ticker(a39) + '\n' : scr_label1
scr_label1 := s40 ? scr_label1 + syminfo.ticker(a40) + '\n' : scr_label1

lab_2 = label.new(bar_index+25 + loc,close, scr_label1, color=color.red, textcolor=color.white, style=label.style_label_center)
label.delete(lab_2[1])


if str.length(scr_label1) > 8
    alert(scr_label1,alert.freq_once_per_bar_close)
//------------------------------------------------------





Editor is loading...
Leave a Comment