//@version=5
indicator(title='Vural Tarama', shorttitle='VT', overlay=true, max_bars_back = 100)
GrafikID=input.string("", "Grafik ID'ni gir")
gurupSec = input.string(defval='1', options=['1', '2', '3', '4', '5'], group='Taraması yapılacak 40\'arlı gruplardan birini seçin', title='Grup seç')
TFM=input.timeframe("", title="hesaplama yapılacak timeframe'ı seç (default hali grafikteki neyse odur)")
loc = input.int(defval=5, title='Tarama sonuç listesinin son bara göre ileri-geri konumu', minval = -100,maxval = 100 , step = 1)
listebasligi = input.string(defval="TARAMA SONUÇLARI", title="Grafik üzerinde görüntülenecek tarama listesinin başlığını belirt (tırnak, kesme işareti vs kullanmadan)")
ListeBasligi = (timeframe.period=='D' ? 'GÜNLÜK BARLARA GÖRE\\n' : (timeframe.period+ " DK. BARLARA GÖRE\\n")) + listebasligi
//BURADAN AŞAĞIDAKİ ARALIKTA GÖSTERGENİZİN İNPUTLARINI, HESAPLAMALARINI, PLOT, ÇİZGİ VS İŞARETLEMELERİNİ YAPIN.
//DİĞER KISIMLARLA İŞİNİZ YOK. SADECE BU ARALIKTA TARAMA KRİTERLERİNİZİ OLUŞTURACAKSINIZ
h =high
h1=high[1]
h2=high[2]
h3=high[3]
h4=high[4]
h5=high[5]
h6=high[6]
l =low
l1=low[1]
l2=low[2]
l3=low[3]
l4=low[4]
l5=low[5]
l6=low[6]
o =open
c = close
//EN AZ 1 INSIDE'DAN SONRA
i1a=l1>l2 and h1
l2 //i1a yani 1 inside'lı aşağı out
i1y=l1>l2 and h1l2 and h>h2 and cl3 and l1>l3 and h2l3 //i2a yani 2 inside'lı aşağı out
i2y= l2>l3 and l1>l3 and h2l3 and h>h3 and cl4 and l2>l4 and l1>l4 and h3l4 //i3a yani 3 inside'lı aşağı out
i3y= l3>l4 and l2>l4 and l1>l4 and h3l4 and h>h4 and cl5 and l3>l5 and l2>l5 and l1>l5 and h4l5
i4y= l4>l5 and l3>l5 and l2>l5 and l1>l5 and h4l5 and h>h5 and cl6 and l4>l6 and l3>l6 and l2>l6 and l1>l6 and h5l6 //i5a yani 5 inside'lı aşağı out
i5y= l5>l6 and l4>l6 and l3>l6 and l2>l6 and l1>l6 and h5l6 and h>h6 and c
[i1a ? "i1a" : i1y ? "i1y" : i2a ? "i2a" : i2y ? "i2y" : i3a ? "i3a" : i3y ? "i3y" : i4a ? "i4a" : i4y ? "i4y" : i5a ? "i5a" : i5y ? "i5y" : na, cond]
c1 = input.symbol(title= " 1 " , defval= " BINANCE:ACAUSDT " ,group = "1. Grup Hisseleri")
c2 = input.symbol(title= " 2 " , defval= " BINANCE:ACEUSDT " )
c3 = input.symbol(title= " 3 " , defval= " BINANCE:ACHUSDT " )
c4 = input.symbol(title= " 4 " , defval= " BINANCE:ADXUSDT " )
c5 = input.symbol(title= " 5 " , defval= " BINANCE:AERGOUSDT " )
c6 = input.symbol(title= " 6 " , defval= " BINANCE:AEVOUSDT " )
c7 = input.symbol(title= " 7 " , defval= " BINANCE:AGIXUSDT " )
c8 = input.symbol(title= " 8 " , defval= " BINANCE:AGLDUSDT " )
c9 = input.symbol(title= " 9 " , defval= " BINANCE:AKROUSDT " )
c10 = input.symbol(title= " 10 " , defval= " BINANCE:ALICEUSDT " )
c11 = input.symbol(title= " 11 " , defval= " BINANCE:ALPHAUSDT " )
c12 = input.symbol(title= " 12 " , defval= " BINANCE:ALTUSDT " )
c13 = input.symbol(title= " 13 " , defval= " BINANCE:APEUSDT " )
c14 = input.symbol(title= " 14 " , defval= " BINANCE:ARBUSDT " )
c15 = input.symbol(title= " 15 " , defval= " BINANCE:ARKMUSDT " )
c16 = input.symbol(title= " 16 " , defval= " BINANCE:ARKUSDT " )
c17 = input.symbol(title= " 17 " , defval= " BINANCE:ARPAUSDT " )
c18 = input.symbol(title= " 18 " , defval= " BINANCE:ARUSDT " )
c19 = input.symbol(title= " 19 " , defval= " BINANCE:ASTRUSDT " )
c20 = input.symbol(title= " 20 " , defval= " BINANCE:ATAUSDT " )
c21 = input.symbol(title= " 21 " , defval= " BINANCE:ATOMUSDT " )
c22 = input.symbol(title= " 22 " , defval= " BINANCE:AUCTIONUSDT " )
c23 = input.symbol(title= " 23 " , defval= " BINANCE:AVAXUSDT " )
c24 = input.symbol(title= " 24 " , defval= " BINANCE:AXLUSDT " )
c25 = input.symbol(title= " 25 " , defval= " BINANCE:BALUSDT " )
c26 = input.symbol(title= " 26 " , defval= " BINANCE:BANDUSDT " )
c27 = input.symbol(title= " 27 " , defval= " BINANCE:BATUSDT " )
c28 = input.symbol(title= " 28 " , defval= " BINANCE:BCHUSDT " )
c29 = input.symbol(title= " 29 " , defval= " BINANCE:BEAMXUSDT " )
c30 = input.symbol(title= " 30 " , defval= " BINANCE:BELUSDT " )
c31 = input.symbol(title= " 31 " , defval= " BINANCE:BETAUSDT " )
c32 = input.symbol(title= " 32 " , defval= " BINANCE:BICOUSDT " )
c33 = input.symbol(title= " 33 " , defval= " BINANCE:BIFIUSDT " )
c34 = input.symbol(title= " 34 " , defval= " BINANCE:BLURUSDT " )
c35 = input.symbol(title= " 35 " , defval= " BINANCE:BLZUSDT " )
c36 = input.symbol(title= " 36 " , defval= " BINANCE:BNTUSDT " )
c37 = input.symbol(title= " 37 " , defval= " BINANCE:BNXUSDT " )
c38 = input.symbol(title= " 38 " , defval= " BINANCE:BONDUSDT " )
c39 = input.symbol(title= " 39 " , defval= " BINANCE:BSWUSDT " )
c40 = input.symbol(title= " 40 " , defval= " BINANCE:BURGERUSDT " )
d1 = input.symbol(title= " 1 " , defval= " BINANCE:CAKEUSDT " ,group = "2. Grup Hisseleri")
d2 = input.symbol(title= " 2 " , defval= " BINANCE:CELRUSDT " )
d3 = input.symbol(title= " 3 " , defval= " BINANCE:CFXUSDT " )
d4 = input.symbol(title= " 4 " , defval= " BINANCE:CHESSUSDT " )
d5 = input.symbol(title= " 5 " , defval= " BINANCE:CLVUSDT " )
d6 = input.symbol(title= " 6 " , defval= " BINANCE:COTIUSDT " )
d7 = input.symbol(title= " 7 " , defval= " BINANCE:CTKUSDT " )
d8 = input.symbol(title= " 8 " , defval= " BINANCE:CTSIUSDT " )
d9 = input.symbol(title= " 9 " , defval= " BINANCE:CTXCUSDT " )
d10 = input.symbol(title= " 10 " , defval= " BINANCE:CVPUSDT " )
d11 = input.symbol(title= " 11 " , defval= " BINANCE:CYBERUSDT " )
d12 = input.symbol(title= " 12 " , defval= " BINANCE:DATAUSDT " )
d13 = input.symbol(title= " 13 " , defval= " BINANCE:DCRUSDT " )
d14 = input.symbol(title= " 14 " , defval= " BINANCE:DENTUSDT " )
d15 = input.symbol(title= " 15 " , defval= " BINANCE:DGBUSDT " )
d16 = input.symbol(title= " 16 " , defval= " BINANCE:DIAUSDT " )
d17 = input.symbol(title= " 17 " , defval= " BINANCE:DODOUSDT " )
d18 = input.symbol(title= " 18 " , defval= " BINANCE:DOTUSDT " )
d19 = input.symbol(title= " 19 " , defval= " BINANCE:DUSKUSDT " )
d20 = input.symbol(title= " 20 " , defval= " BINANCE:EDUUSDT " )
d21 = input.symbol(title= " 21 " , defval= " BINANCE:ELFUSDT " )
d22 = input.symbol(title= " 22 " , defval= " BINANCE:ENJUSDT " )
d23 = input.symbol(title= " 23 " , defval= " BINANCE:ENSUSDT " )
d24 = input.symbol(title= " 24 " , defval= " BINANCE:EOSUSDT " )
d25 = input.symbol(title= " 25 " , defval= " BINANCE:ERNUSDT " )
d26 = input.symbol(title= " 26 " , defval= " BINANCE:ETCUSDT " )
d27 = input.symbol(title= " 27 " , defval= " BINANCE:FARMUSDT " )
d28 = input.symbol(title= " 28 " , defval= " BINANCE:FILUSDT " )
d29 = input.symbol(title= " 29 " , defval= " BINANCE:FIOUSDT " )
d30 = input.symbol(title= " 30 " , defval= " BINANCE:FISUSDT " )
d31 = input.symbol(title= " 31 " , defval= " BINANCE:FLOWUSDT " )
d32 = input.symbol(title= " 32 " , defval= " BINANCE:FORUSDT " )
d33 = input.symbol(title= " 33 " , defval= " BINANCE:FTTUSDT " )
d34 = input.symbol(title= " 34 " , defval= " BINANCE:GALAUSDT " )
d35 = input.symbol(title= " 35 " , defval= " BINANCE:GHSTUSDT " )
d36 = input.symbol(title= " 36 " , defval= " BINANCE:GLMRUSDT " )
d37 = input.symbol(title= " 37 " , defval= " BINANCE:GLMUSDT " )
d38 = input.symbol(title= " 38 " , defval= " BINANCE:GNSUSDT " )
d39 = input.symbol(title= " 39 " , defval= " BINANCE:GTCUSDT " )
d40 = input.symbol(title= " 40 " , defval= " BINANCE:HARDUSDT " )
e1 = input.symbol(title= " 1 " , defval= " BINANCE:HFTUSDT " ,group = "3. Grup Hisseleri")
e2 = input.symbol(title= " 2 " , defval= " BINANCE:HIGHUSDT " )
e3 = input.symbol(title= " 3 " , defval= " BINANCE:HOOKUSDT " )
e4 = input.symbol(title= " 4 " , defval= " BINANCE:ICPUSDT " )
e5 = input.symbol(title= " 5 " , defval= " BINANCE:ICXUSDT " )
e6 = input.symbol(title= " 6 " , defval= " BINANCE:IDUSDT " )
e7 = input.symbol(title= " 7 " , defval= " BINANCE:ILVUSDT " )
e8 = input.symbol(title= " 8 " , defval= " BINANCE:IMXUSDT " )
e9 = input.symbol(title= " 9 " , defval= " BINANCE:IOSTUSDT " )
e10 = input.symbol(title= " 10 " , defval= " BINANCE:IOTAUSDT " )
e11 = input.symbol(title= " 11 " , defval= " BINANCE:IOTXUSDT " )
e12 = input.symbol(title= " 12 " , defval= " BINANCE:IQUSDT " )
e13 = input.symbol(title= " 13 " , defval= " BINANCE:IRISUSDT " )
e14 = input.symbol(title= " 14 " , defval= " BINANCE:JOEUSDT " )
e15 = input.symbol(title= " 15 " , defval= " BINANCE:JTOUSDT " )
e16 = input.symbol(title= " 16 " , defval= " BINANCE:JUPUSDT " )
e17 = input.symbol(title= " 17 " , defval= " BINANCE:KAVAUSDT " )
e18 = input.symbol(title= " 18 " , defval= " BINANCE:KDAUSDT " )
e19 = input.symbol(title= " 19 " , defval= " BINANCE:KEYUSDT " )
e20 = input.symbol(title= " 20 " , defval= " BINANCE:KLAYUSDT " )
e21 = input.symbol(title= " 21 " , defval= " BINANCE:KMDUSDT " )
e22 = input.symbol(title= " 22 " , defval= " BINANCE:KNCUSDT " )
e23 = input.symbol(title= " 23 " , defval= " BINANCE:KP3RUSDT " )
e24 = input.symbol(title= " 24 " , defval= " BINANCE:KSMUSDT " )
e25 = input.symbol(title= " 25 " , defval= " BINANCE:LDOUSDT " )
e26 = input.symbol(title= " 26 " , defval= " BINANCE:LINAUSDT " )
e27 = input.symbol(title= " 27 " , defval= " BINANCE:LOKAUSDT " )
e28 = input.symbol(title= " 28 " , defval= " BINANCE:LOOMUSDT " )
e29 = input.symbol(title= " 29 " , defval= " BINANCE:LTOUSDT " )
e30 = input.symbol(title= " 30 " , defval= " BINANCE:MAGICUSDT " )
e31 = input.symbol(title= " 31 " , defval= " BINANCE:MANAUSDT " )
e32 = input.symbol(title= " 32 " , defval= " BINANCE:MANTAUSDT " )
e33 = input.symbol(title= " 33 " , defval= " BINANCE:MASKUSDT " )
e34 = input.symbol(title= " 34 " , defval= " BINANCE:MATICUSDT " )
e35 = input.symbol(title= " 35 " , defval= " BINANCE:MBLUSDT " )
e36 = input.symbol(title= " 36 " , defval= " BINANCE:MBOXUSDT " )
e37 = input.symbol(title= " 37 " , defval= " BINANCE:MDTUSDT " )
e38 = input.symbol(title= " 38 " , defval= " BINANCE:MDXUSDT " )
e39 = input.symbol(title= " 39 " , defval= " BINANCE:METISUSDT " )
e40 = input.symbol(title= " 40 " , defval= " BINANCE:MINAUSDT " )
f1 = input.symbol(title= " 1 " , defval= " BINANCE:MLNUSDT " ,group = "4. Grup Hisseleri")
f2 = input.symbol(title= " 2 " , defval= " BINANCE:MTLUSDT " )
f3 = input.symbol(title= " 3 " , defval= " BINANCE:NEARUSDT " )
f4 = input.symbol(title= " 4 " , defval= " BINANCE:NFPUSDT " )
f5 = input.symbol(title= " 5 " , defval= " BINANCE:NKNUSDT " )
f6 = input.symbol(title= " 6 " , defval= " BINANCE:NMRUSDT " )
f7 = input.symbol(title= " 7 " , defval= " BINANCE:NULSUSDT " )
f8 = input.symbol(title= " 8 " , defval= " BINANCE:OAXUSDT " )
f9 = input.symbol(title= " 9 " , defval= " BINANCE:OCEANUSDT " )
f10 = input.symbol(title= " 10 " , defval= " BINANCE:OMGUSDT " )
f11 = input.symbol(title= " 11 " , defval= " BINANCE:ONEUSDT " )
f12 = input.symbol(title= " 12 " , defval= " BINANCE:ONGUSDT " )
f13 = input.symbol(title= " 13 " , defval= " BINANCE:OPUSDT " )
f14 = input.symbol(title= " 14 " , defval= " BINANCE:ORDIUSDT " )
f15 = input.symbol(title= " 15 " , defval= " BINANCE:ORNUSDT " )
f16 = input.symbol(title= " 16 " , defval= " BINANCE:OSMOUSDT " )
f17 = input.symbol(title= " 17 " , defval= " BINANCE:OXTUSDT " )
f18 = input.symbol(title= " 18 " , defval= " BINANCE:PDAUSDT " )
f19 = input.symbol(title= " 19 " , defval= " BINANCE:PENDLEUSDT " )
f20 = input.symbol(title= " 20 " , defval= " BINANCE:PERPUSDT " )
f21 = input.symbol(title= " 21 " , defval= " BINANCE:PHAUSDT " )
f22 = input.symbol(title= " 22 " , defval= " BINANCE:PIXELUSDT " )
f23 = input.symbol(title= " 23 " , defval= " BINANCE:POLYXUSDT " )
f24 = input.symbol(title= " 24 " , defval= " BINANCE:PONDUSDT " )
f25 = input.symbol(title= " 25 " , defval= " BINANCE:PORTALUSDT " )
f26 = input.symbol(title= " 26 " , defval= " BINANCE:PORTOUSDT " )
f27 = input.symbol(title= " 27 " , defval= " BINANCE:PUNDIXUSDT " )
f28 = input.symbol(title= " 28 " , defval= " BINANCE:QIUSDT " )
f29 = input.symbol(title= " 29 " , defval= " BINANCE:QTUMUSDT " )
f30 = input.symbol(title= " 30 " , defval= " BINANCE:QUICKUSDT " )
f31 = input.symbol(title= " 31 " , defval= " BINANCE:RADUSDT " )
f32 = input.symbol(title= " 32 " , defval= " BINANCE:RAREUSDT " )
f33 = input.symbol(title= " 33 " , defval= " BINANCE:REEFUSDT " )
f34 = input.symbol(title= " 34 " , defval= " BINANCE:RENUSDT " )
f35 = input.symbol(title= " 35 " , defval= " BINANCE:REQUSDT " )
f36 = input.symbol(title= " 36 " , defval= " BINANCE:RIFUSDT " )
f37 = input.symbol(title= " 37 " , defval= " BINANCE:RLCUSDT " )
f38 = input.symbol(title= " 38 " , defval= " BINANCE:RNDRUSDT " )
f39 = input.symbol(title= " 39 " , defval= " BINANCE:ROSEUSDT " )
f40 = input.symbol(title= " 40 " , defval= " BINANCE:RUNEUSDT " )
g1 = input.symbol(title= " 1 " , defval= " BINANCE:SANDUSDT " ,group = "5. Grup Hisseleri")
g2 = input.symbol(title= " 2 " , defval= " BINANCE:SCRTUSDT " )
g3 = input.symbol(title= " 3 " , defval= " BINANCE:SCUSDT " )
g4 = input.symbol(title= " 4 " , defval= " BINANCE:SLPUSDT " )
g5 = input.symbol(title= " 5 " , defval= " BINANCE:SPELLUSDT " )
g6 = input.symbol(title= " 6 " , defval= " BINANCE:STEEMUSDT " )
g7 = input.symbol(title= " 7 " , defval= " BINANCE:STGUSDT " )
g8 = input.symbol(title= " 8 " , defval= " BINANCE:STORJUSDT " )
g9 = input.symbol(title= " 9 " , defval= " BINANCE:STRAXUSDT " )
g10 = input.symbol(title= " 10 " , defval= " BINANCE:STRKUSDT " )
g11 = input.symbol(title= " 11 " , defval= " BINANCE:SUSHIUSDT " )
g12 = input.symbol(title= " 12 " , defval= " BINANCE:SXPUSDT " )
g13 = input.symbol(title= " 13 " , defval= " BINANCE:SYSUSDT " )
g14 = input.symbol(title= " 14 " , defval= " BINANCE:TFUELUSDT " )
g15 = input.symbol(title= " 15 " , defval= " BINANCE:THETAUSDT " )
g16 = input.symbol(title= " 16 " , defval= " BINANCE:TROYUSDT " )
g17 = input.symbol(title= " 17 " , defval= " BINANCE:TRXUSDT " )
g18 = input.symbol(title= " 18 " , defval= " BINANCE:TUSDT " )
g19 = input.symbol(title= " 19 " , defval= " BINANCE:TUSDUSDT " )
g20 = input.symbol(title= " 20 " , defval= " BINANCE:TWTUSDT " )
g21 = input.symbol(title= " 21 " , defval= " BINANCE:UFTUSDT " )
g22 = input.symbol(title= " 22 " , defval= " BINANCE:UNFIUSDT " )
g23 = input.symbol(title= " 23 " , defval= " BINANCE:UNIUSDT " )
g24 = input.symbol(title= " 24 " , defval= " BINANCE:VANRYUSDT " )
g25 = input.symbol(title= " 25 " , defval= " BINANCE:VGXUSDT " )
g26 = input.symbol(title= " 26 " , defval= " BINANCE:VIBUSDT " )
g27 = input.symbol(title= " 27 " , defval= " BINANCE:VIDTUSDT " )
g28 = input.symbol(title= " 28 " , defval= " BINANCE:VOXELUSDT " )
g29 = input.symbol(title= " 29 " , defval= " BINANCE:VTHOUSDT " )
g30 = input.symbol(title= " 30 " , defval= " BINANCE:WAVESUSDT " )
g31 = input.symbol(title= " 31 " , defval= " BINANCE:WIFUSDT " )
g32 = input.symbol(title= " 32 " , defval= " BINANCE:WINGUSDT " )
g33 = input.symbol(title= " 33 " , defval= " BINANCE:WINUSDT " )
g34 = input.symbol(title= " 34 " , defval= " BINANCE:WLDUSDT " )
g35 = input.symbol(title= " 35 " , defval= " BINANCE:WOOUSDT " )
g36 = input.symbol(title= " 36 " , defval= " BINANCE:WRXUSDT " )
g37 = input.symbol(title= " 37 " , defval= " BINANCE:WUSDT " )
g38 = input.symbol(title= " 38 " , defval= " BINANCE:XAIUSDT " )
g39 = input.symbol(title= " 39 " , defval= " BINANCE:XVSUSDT " )
g40 = input.symbol(title= " 40 " , defval= " BINANCE:ZILUSDT " )
a1 = gurupSec == '1' ? c1 : gurupSec == '2' ? d1 : gurupSec == '3' ? e1 : gurupSec == '4' ? f1 : gurupSec == '5' ? g1 : na
a2 = gurupSec == '1' ? c2 : gurupSec == '2' ? d2 : gurupSec == '3' ? e2 : gurupSec == '4' ? f2 : gurupSec == '5' ? g2 : na
a3 = gurupSec == '1' ? c3 : gurupSec == '2' ? d3 : gurupSec == '3' ? e3 : gurupSec == '4' ? f3 : gurupSec == '5' ? g3 : na
a4 = gurupSec == '1' ? c4 : gurupSec == '2' ? d4 : gurupSec == '3' ? e4 : gurupSec == '4' ? f4 : gurupSec == '5' ? g4 : na
a5 = gurupSec == '1' ? c5 : gurupSec == '2' ? d5 : gurupSec == '3' ? e5 : gurupSec == '4' ? f5 : gurupSec == '5' ? g5 : na
a6 = gurupSec == '1' ? c6 : gurupSec == '2' ? d6 : gurupSec == '3' ? e6 : gurupSec == '4' ? f6 : gurupSec == '5' ? g6 : na
a7 = gurupSec == '1' ? c7 : gurupSec == '2' ? d7 : gurupSec == '3' ? e7 : gurupSec == '4' ? f7 : gurupSec == '5' ? g7 : na
a8 = gurupSec == '1' ? c8 : gurupSec == '2' ? d8 : gurupSec == '3' ? e8 : gurupSec == '4' ? f8 : gurupSec == '5' ? g8 : na
a9 = gurupSec == '1' ? c9 : gurupSec == '2' ? d9 : gurupSec == '3' ? e9 : gurupSec == '4' ? f9 : gurupSec == '5' ? g9 : na
a10 = gurupSec == '1' ? c10 : gurupSec == '2' ? d10 : gurupSec == '3' ? e10 : gurupSec == '4' ? f10 : gurupSec == '5' ? g10 : na
a11 = gurupSec == '1' ? c11 : gurupSec == '2' ? d11 : gurupSec == '3' ? e11 : gurupSec == '4' ? f11 : gurupSec == '5' ? g11 : na
a12 = gurupSec == '1' ? c12 : gurupSec == '2' ? d12 : gurupSec == '3' ? e12 : gurupSec == '4' ? f12 : gurupSec == '5' ? g12 : na
a13 = gurupSec == '1' ? c13 : gurupSec == '2' ? d13 : gurupSec == '3' ? e13 : gurupSec == '4' ? f13 : gurupSec == '5' ? g13 : na
a14 = gurupSec == '1' ? c14 : gurupSec == '2' ? d14 : gurupSec == '3' ? e14 : gurupSec == '4' ? f14 : gurupSec == '5' ? g14 : na
a15 = gurupSec == '1' ? c15 : gurupSec == '2' ? d15 : gurupSec == '3' ? e15 : gurupSec == '4' ? f15 : gurupSec == '5' ? g15 : na
a16 = gurupSec == '1' ? c16 : gurupSec == '2' ? d16 : gurupSec == '3' ? e16 : gurupSec == '4' ? f16 : gurupSec == '5' ? g16 : na
a17 = gurupSec == '1' ? c17 : gurupSec == '2' ? d17 : gurupSec == '3' ? e17 : gurupSec == '4' ? f17 : gurupSec == '5' ? g17 : na
a18 = gurupSec == '1' ? c18 : gurupSec == '2' ? d18 : gurupSec == '3' ? e18 : gurupSec == '4' ? f18 : gurupSec == '5' ? g18 : na
a19 = gurupSec == '1' ? c19 : gurupSec == '2' ? d19 : gurupSec == '3' ? e19 : gurupSec == '4' ? f19 : gurupSec == '5' ? g19 : na
a20 = gurupSec == '1' ? c20 : gurupSec == '2' ? d20 : gurupSec == '3' ? e20 : gurupSec == '4' ? f20 : gurupSec == '5' ? g20 : na
a21 = gurupSec == '1' ? c21 : gurupSec == '2' ? d21 : gurupSec == '3' ? e21 : gurupSec == '4' ? f21 : gurupSec == '5' ? g21 : na
a22 = gurupSec == '1' ? c22 : gurupSec == '2' ? d22 : gurupSec == '3' ? e22 : gurupSec == '4' ? f22 : gurupSec == '5' ? g22 : na
a23 = gurupSec == '1' ? c23 : gurupSec == '2' ? d23 : gurupSec == '3' ? e23 : gurupSec == '4' ? f23 : gurupSec == '5' ? g23 : na
a24 = gurupSec == '1' ? c24 : gurupSec == '2' ? d24 : gurupSec == '3' ? e24 : gurupSec == '4' ? f24 : gurupSec == '5' ? g24 : na
a25 = gurupSec == '1' ? c25 : gurupSec == '2' ? d25 : gurupSec == '3' ? e25 : gurupSec == '4' ? f25 : gurupSec == '5' ? g25 : na
a26 = gurupSec == '1' ? c26 : gurupSec == '2' ? d26 : gurupSec == '3' ? e26 : gurupSec == '4' ? f26 : gurupSec == '5' ? g26 : na
a27 = gurupSec == '1' ? c27 : gurupSec == '2' ? d27 : gurupSec == '3' ? e27 : gurupSec == '4' ? f27 : gurupSec == '5' ? g27 : na
a28 = gurupSec == '1' ? c28 : gurupSec == '2' ? d28 : gurupSec == '3' ? e28 : gurupSec == '4' ? f28 : gurupSec == '5' ? g28 : na
a29 = gurupSec == '1' ? c29 : gurupSec == '2' ? d29 : gurupSec == '3' ? e29 : gurupSec == '4' ? f29 : gurupSec == '5' ? g29 : na
a30 = gurupSec == '1' ? c30 : gurupSec == '2' ? d30 : gurupSec == '3' ? e30 : gurupSec == '4' ? f30 : gurupSec == '5' ? g30 : na
a31 = gurupSec == '1' ? c31 : gurupSec == '2' ? d31 : gurupSec == '3' ? e31 : gurupSec == '4' ? f31 : gurupSec == '5' ? g31 : na
a32 = gurupSec == '1' ? c32 : gurupSec == '2' ? d32 : gurupSec == '3' ? e32 : gurupSec == '4' ? f32 : gurupSec == '5' ? g32 : na
a33 = gurupSec == '1' ? c33 : gurupSec == '2' ? d33 : gurupSec == '3' ? e33 : gurupSec == '4' ? f33 : gurupSec == '5' ? g33 : na
a34 = gurupSec == '1' ? c34 : gurupSec == '2' ? d34 : gurupSec == '3' ? e34 : gurupSec == '4' ? f34 : gurupSec == '5' ? g34 : na
a35 = gurupSec == '1' ? c35 : gurupSec == '2' ? d35 : gurupSec == '3' ? e35 : gurupSec == '4' ? f35 : gurupSec == '5' ? g35 : na
a36 = gurupSec == '1' ? c36 : gurupSec == '2' ? d36 : gurupSec == '3' ? e36 : gurupSec == '4' ? f36 : gurupSec == '5' ? g36 : na
a37 = gurupSec == '1' ? c37 : gurupSec == '2' ? d37 : gurupSec == '3' ? e37 : gurupSec == '4' ? f37 : gurupSec == '5' ? g37 : na
a38 = gurupSec == '1' ? c38 : gurupSec == '2' ? d38 : gurupSec == '3' ? e38 : gurupSec == '4' ? f38 : gurupSec == '5' ? g38 : na
a39 = gurupSec == '1' ? c39 : gurupSec == '2' ? d39 : gurupSec == '3' ? e39 : gurupSec == '4' ? f39 : gurupSec == '5' ? g39 : na
a40 = gurupSec == '1' ? c40 : gurupSec == '2' ? d40 : gurupSec == '3' ? e40 : gurupSec == '4' ? f40 : gurupSec == '5' ? g40 : na
[v1,s1] = request.security(a1, TFM, func())
[v2,s2] = request.security(a2, TFM, func())
[v3,s3] = request.security(a3, TFM, func())
[v4,s4] = request.security(a4, TFM, func())
[v5,s5] = request.security(a5, TFM, func())
[v6,s6] = request.security(a6, TFM, func())
[v7,s7] = request.security(a7, TFM, func())
[v8,s8] = request.security(a8, TFM, func())
[v9,s9] = request.security(a9, TFM, func())
[v10,s10] = request.security(a10, TFM, func())
[v11,s11] = request.security(a11, TFM, func())
[v12,s12] = request.security(a12, TFM, func())
[v13,s13] = request.security(a13, TFM, func())
[v14,s14] = request.security(a14, TFM, func())
[v15,s15] = request.security(a15, TFM, func())
[v16,s16] = request.security(a16, TFM, func())
[v17,s17] = request.security(a17, TFM, func())
[v18,s18] = request.security(a18, TFM, func())
[v19,s19] = request.security(a19, TFM, func())
[v20,s20] = request.security(a20, TFM, func())
[v21,s21] = request.security(a21, TFM, func())
[v22,s22] = request.security(a22, TFM, func())
[v23,s23] = request.security(a23, TFM, func())
[v24,s24] = request.security(a24, TFM, func())
[v25,s25] = request.security(a25, TFM, func())
[v26,s26] = request.security(a26, TFM, func())
[v27,s27] = request.security(a27, TFM, func())
[v28,s28] = request.security(a28, TFM, func())
[v29,s29] = request.security(a29, TFM, func())
[v30,s30] = request.security(a30, TFM, func())
[v31,s31] = request.security(a31, TFM, func())
[v32,s32] = request.security(a32, TFM, func())
[v33,s33] = request.security(a33, TFM, func())
[v34,s34] = request.security(a34, TFM, func())
[v35,s35] = request.security(a35, TFM, func())
[v36,s36] = request.security(a36, TFM, func())
[v37,s37] = request.security(a37, TFM, func())
[v38,s38] = request.security(a38, TFM, func())
[v39,s39] = request.security(a39, TFM, func())
[v40,s40] = request.security(a40, TFM, func())
scr_label = ListeBasligi+'\n'
scr_label := s1 ? scr_label + syminfo.ticker(a1) + ' - Koşul : ' + v1 + '\n' : scr_label
scr_label := s2 ? scr_label + syminfo.ticker(a2) + ' - Koşul : ' + v2 + '\n' : scr_label
scr_label := s3 ? scr_label + syminfo.ticker(a3) + ' - Koşul : ' + v3 + '\n' : scr_label
scr_label := s4 ? scr_label + syminfo.ticker(a4) + ' - Koşul : ' + v4 + '\n' : scr_label
scr_label := s5 ? scr_label + syminfo.ticker(a5) + ' - Koşul : ' + v5 + '\n' : scr_label
scr_label := s6 ? scr_label + syminfo.ticker(a6) + ' - Koşul : ' + v6 + '\n' : scr_label
scr_label := s7 ? scr_label + syminfo.ticker(a7) + ' - Koşul : ' + v7 + '\n' : scr_label
scr_label := s8 ? scr_label + syminfo.ticker(a8) + ' - Koşul : ' + v8 + '\n' : scr_label
scr_label := s9 ? scr_label + syminfo.ticker(a9) + ' - Koşul : ' + v9 + '\n' : scr_label
scr_label := s10 ? scr_label + syminfo.ticker(a10) + ' - Koşul : ' + v10 + '\n' : scr_label
scr_label := s11 ? scr_label + syminfo.ticker(a11) + ' - Koşul : ' + v11 + '\n' : scr_label
scr_label := s12 ? scr_label + syminfo.ticker(a12) + ' - Koşul : ' + v12 + '\n' : scr_label
scr_label := s13 ? scr_label + syminfo.ticker(a13) + ' - Koşul : ' + v13 + '\n' : scr_label
scr_label := s14 ? scr_label + syminfo.ticker(a14) + ' - Koşul : ' + v14 + '\n' : scr_label
scr_label := s15 ? scr_label + syminfo.ticker(a15) + ' - Koşul : ' + v15 + '\n' : scr_label
scr_label := s16 ? scr_label + syminfo.ticker(a16) + ' - Koşul : ' + v16 + '\n' : scr_label
scr_label := s17 ? scr_label + syminfo.ticker(a17) + ' - Koşul : ' + v17 + '\n' : scr_label
scr_label := s18 ? scr_label + syminfo.ticker(a18) + ' - Koşul : ' + v18 + '\n' : scr_label
scr_label := s19 ? scr_label + syminfo.ticker(a19) + ' - Koşul : ' + v19 + '\n' : scr_label
scr_label := s20 ? scr_label + syminfo.ticker(a20) + ' - Koşul : ' + v20 + '\n' : scr_label
scr_label := s21 ? scr_label + syminfo.ticker(a21) + ' - Koşul : ' + v21 + '\n' : scr_label
scr_label := s22 ? scr_label + syminfo.ticker(a22) + ' - Koşul : ' + v22 + '\n' : scr_label
scr_label := s23 ? scr_label + syminfo.ticker(a23) + ' - Koşul : ' + v23 + '\n' : scr_label
scr_label := s24 ? scr_label + syminfo.ticker(a24) + ' - Koşul : ' + v24 + '\n' : scr_label
scr_label := s25 ? scr_label + syminfo.ticker(a25) + ' - Koşul : ' + v25 + '\n' : scr_label
scr_label := s26 ? scr_label + syminfo.ticker(a26) + ' - Koşul : ' + v26 + '\n' : scr_label
scr_label := s27 ? scr_label + syminfo.ticker(a27) + ' - Koşul : ' + v27 + '\n' : scr_label
scr_label := s28 ? scr_label + syminfo.ticker(a28) + ' - Koşul : ' + v28 + '\n' : scr_label
scr_label := s29 ? scr_label + syminfo.ticker(a29) + ' - Koşul : ' + v29 + '\n' : scr_label
scr_label := s30 ? scr_label + syminfo.ticker(a30) + ' - Koşul : ' + v30 + '\n' : scr_label
scr_label := s31 ? scr_label + syminfo.ticker(a31) + ' - Koşul : ' + v31 + '\n' : scr_label
scr_label := s32 ? scr_label + syminfo.ticker(a32) + ' - Koşul : ' + v32 + '\n' : scr_label
scr_label := s33 ? scr_label + syminfo.ticker(a33) + ' - Koşul : ' + v33 + '\n' : scr_label
scr_label := s34 ? scr_label + syminfo.ticker(a34) + ' - Koşul : ' + v34 + '\n' : scr_label
scr_label := s35 ? scr_label + syminfo.ticker(a35) + ' - Koşul : ' + v35 + '\n' : scr_label
scr_label := s36 ? scr_label + syminfo.ticker(a36) + ' - Koşul : ' + v36 + '\n' : scr_label
scr_label := s37 ? scr_label + syminfo.ticker(a37) + ' - Koşul : ' + v37 + '\n' : scr_label
scr_label := s38 ? scr_label + syminfo.ticker(a38) + ' - Koşul : ' + v38 + '\n' : scr_label
scr_label := s39 ? scr_label + syminfo.ticker(a39) + ' - Koşul : ' + v39 + '\n' : scr_label
scr_label := s40 ? scr_label + syminfo.ticker(a40) + ' - Koşul : ' + v40 + '\n' : scr_label
scr_alarm = ListeBasligi+'\\n'
scr_alarm := s1 ? scr_alarm + '[' + syminfo.ticker(a1) + ' - Koşul : ' + v1 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a1)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s2 ? scr_alarm + '[' + syminfo.ticker(a2) + ' - Koşul : ' + v2 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a2)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s3 ? scr_alarm + '[' + syminfo.ticker(a3) + ' - Koşul : ' + v3 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a3)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s4 ? scr_alarm + '[' + syminfo.ticker(a4) + ' - Koşul : ' + v4 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a4)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s5 ? scr_alarm + '[' + syminfo.ticker(a5) + ' - Koşul : ' + v5 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a5)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s6 ? scr_alarm + '[' + syminfo.ticker(a6) + ' - Koşul : ' + v6 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a6)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s7 ? scr_alarm + '[' + syminfo.ticker(a7) + ' - Koşul : ' + v7 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a7)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s8 ? scr_alarm + '[' + syminfo.ticker(a8) + ' - Koşul : ' + v8 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a8)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s9 ? scr_alarm + '[' + syminfo.ticker(a9) + ' - Koşul : ' + v9 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a9)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s10 ? scr_alarm + '[' + syminfo.ticker(a10) + ' - Koşul : ' + v10 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a10)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s11 ? scr_alarm + '[' + syminfo.ticker(a11) + ' - Koşul : ' + v11 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a11)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s12 ? scr_alarm + '[' + syminfo.ticker(a12) + ' - Koşul : ' + v12 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a12)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s13 ? scr_alarm + '[' + syminfo.ticker(a13) + ' - Koşul : ' + v13 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a13)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s14 ? scr_alarm + '[' + syminfo.ticker(a14) + ' - Koşul : ' + v14 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a14)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s15 ? scr_alarm + '[' + syminfo.ticker(a15) + ' - Koşul : ' + v15 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a15)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s16 ? scr_alarm + '[' + syminfo.ticker(a16) + ' - Koşul : ' + v16 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a16)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s17 ? scr_alarm + '[' + syminfo.ticker(a17) + ' - Koşul : ' + v17 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a17)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s18 ? scr_alarm + '[' + syminfo.ticker(a18) + ' - Koşul : ' + v18 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a18)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s19 ? scr_alarm + '[' + syminfo.ticker(a19) + ' - Koşul : ' + v19 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a19)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s20 ? scr_alarm + '[' + syminfo.ticker(a20) + ' - Koşul : ' + v20 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a20)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s21 ? scr_alarm + '[' + syminfo.ticker(a21) + ' - Koşul : ' + v21 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a21)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s22 ? scr_alarm + '[' + syminfo.ticker(a22) + ' - Koşul : ' + v22 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a22)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s23 ? scr_alarm + '[' + syminfo.ticker(a23) + ' - Koşul : ' + v23 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a23)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s24 ? scr_alarm + '[' + syminfo.ticker(a24) + ' - Koşul : ' + v24 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a24)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s25 ? scr_alarm + '[' + syminfo.ticker(a25) + ' - Koşul : ' + v25 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a25)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s26 ? scr_alarm + '[' + syminfo.ticker(a26) + ' - Koşul : ' + v26 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a26)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s27 ? scr_alarm + '[' + syminfo.ticker(a27) + ' - Koşul : ' + v27 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a27)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s28 ? scr_alarm + '[' + syminfo.ticker(a28) + ' - Koşul : ' + v28 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a28)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s29 ? scr_alarm + '[' + syminfo.ticker(a29) + ' - Koşul : ' + v29 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a29)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s30 ? scr_alarm + '[' + syminfo.ticker(a30) + ' - Koşul : ' + v30 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a30)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s31 ? scr_alarm + '[' + syminfo.ticker(a31) + ' - Koşul : ' + v31 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a31)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s32 ? scr_alarm + '[' + syminfo.ticker(a32) + ' - Koşul : ' + v32 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a32)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s33 ? scr_alarm + '[' + syminfo.ticker(a33) + ' - Koşul : ' + v33 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a33)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s34 ? scr_alarm + '[' + syminfo.ticker(a34) + ' - Koşul : ' + v34 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a34)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s35 ? scr_alarm + '[' + syminfo.ticker(a35) + ' - Koşul : ' + v35 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a35)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s36 ? scr_alarm + '[' + syminfo.ticker(a36) + ' - Koşul : ' + v36 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a36)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s37 ? scr_alarm + '[' + syminfo.ticker(a37) + ' - Koşul : ' + v37 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a37)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s38 ? scr_alarm + '[' + syminfo.ticker(a38) + ' - Koşul : ' + v38 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a38)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s39 ? scr_alarm + '[' + syminfo.ticker(a39) + ' - Koşul : ' + v39 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a39)+'&interval='+timeframe.period+')\\n' : scr_alarm
scr_alarm := s40 ? scr_alarm + '[' + syminfo.ticker(a40) + ' - Koşul : ' + v40 + '](https://tradingview.com/chart/'+GrafikID+'/?symbol='+syminfo.ticker(a40)+'&interval='+timeframe.period+')\\n' : scr_alarm
lab_1 = label.new(bar_index + loc, close, scr_label, color=color.green, textcolor=color.white, style=label.style_label_left)
label.delete(lab_1[1])
if str.length(scr_label) > (str.length(ListeBasligi)+2)
alert('{"text":"'+scr_alarm+'","parse_mode":"markdown","disable_web_page_preview":"true"}', alert.freq_once_per_bar_close)