//@version=5
indicator("Multiple Linear Regression Trend Channels ", "MLRTC", true)
grupSec = input.string(defval='1', options=['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', 'ÖZEL LİSTE'], group='Taraması yapılacak 40\'arlı gruplardan birini seçin', title='Grup seç')
// === Inputs for 5 Channels ===
ch1_period = input.int(144, "Channel 1 Period", minval=4, group="Channel 1 Settings")
ch1_deviations = input.float(2.0, "Channel 1 Deviation(s)", minval=0.1, step=0.1, group="Channel 1 Settings")
ch1_color_upper = input.color(color.red, "Channel 1 Upper Color", group="Channel 1 Settings")
ch1_color_middle = input.color(color.yellow, "Channel 1 Middle Color", group="Channel 1 Settings")
ch1_color_lower = input.color(color.green, "Channel 1 Lower Color", group="Channel 1 Settings")
ch1_enabled = input.bool(true, "Enable Channel 1", group="Channel 1 Settings")
ch2_period = input.int(100, "Channel 2 Period", minval=4, group="Channel 2 Settings")
ch2_deviations = input.float(1.8, "Channel 2 Deviation(s)", minval=0.1, step=0.1, group="Channel 2 Settings")
ch2_color_upper = input.color(color.orange, "Channel 2 Upper Color", group="Channel 2 Settings")
ch2_color_middle = input.color(color.blue, "Channel 2 Middle Color", group="Channel 2 Settings")
ch2_color_lower = input.color(color.purple, "Channel 2 Lower Color", group="Channel 2 Settings")
ch2_enabled = input.bool(true, "Enable Channel 2", group="Channel 2 Settings")
ch3_period = input.int(72, "Channel 3 Period", minval=4, group="Channel 3 Settings")
ch3_deviations = input.float(1.5, "Channel 3 Deviation(s)", minval=0.1, step=0.1, group="Channel 3 Settings")
ch3_color_upper = input.color(color.fuchsia, "Channel 3 Upper Color", group="Channel 3 Settings")
ch3_color_middle = input.color(color.aqua, "Channel 3 Middle Color", group="Channel 3 Settings")
ch3_color_lower = input.color(color.lime, "Channel 3 Lower Color", group="Channel 3 Settings")
ch3_enabled = input.bool(true, "Enable Channel 3", group="Channel 3 Settings")
ch4_period = input.int(50, "Channel 4 Period", minval=4, group="Channel 4 Settings")
ch4_deviations = input.float(1.2, "Channel 4 Deviation(s)", minval=0.1, step=0.1, group="Channel 4 Settings")
ch4_color_upper = input.color(color.gray, "Channel 4 Upper Color", group="Channel 4 Settings")
ch4_color_middle = input.color(color.silver, "Channel 4 Middle Color", group="Channel 4 Settings")
ch4_color_lower = input.color(color.maroon, "Channel 4 Lower Color", group="Channel 4 Settings")
ch4_enabled = input.bool(true, "Enable Channel 4", group="Channel 4 Settings")
ch5_period = input.int(25, "Channel 5 Period", minval=4, group="Channel 5 Settings")
ch5_deviations = input.float(1.0, "Channel 5 Deviation(s)", minval=0.1, step=0.1, group="Channel 5 Settings")
ch5_color_upper = input.color(color.teal, "Channel 5 Upper Color", group="Channel 5 Settings")
ch5_color_middle = input.color(color.olive, "Channel 5 Middle Color", group="Channel 5 Settings")
ch5_color_lower = input.color(color.navy, "Channel 5 Lower Color", group="Channel 5 Settings")
ch5_enabled = input.bool(true, "Enable Channel 5", group="Channel 5 Settings")
estimatorType = input.string("Unbiased", "Estimator", options=["Biased", "Unbiased"])
showLabels = input.bool(true, "Show Correlation Labels")
extendType = input.string("Right", "Extend Method", options=["Right", "Segment"]) == "Segment" ? extend.right : extend.none
// === Function to calculate regression ===
rsdcr2(periodMinusOne, deviations, estimate) =>
int period = periodMinusOne + 1
float devDenominator = estimate == "Unbiased" ? periodMinusOne : period
float Ex = 0.0, Ex2 = 0.0, Exy = 0.0, Ey = 0.0
for i = 0 to periodMinusOne
float closeI = nz(close[i])
Ex += i
Ex2 += i * i
Exy += closeI * i
Ey += closeI
float ExEx = Ex * Ex
float denominator = period * Ex2 - ExEx
float slope = denominator == 0 ? 0.0 : (period * Exy - Ex * Ey) / denominator
float linearRegression = (Ey - slope * Ex) / period
float intercept = linearRegression + bar_index * slope
float deviation = 0.0
for i = 0 to periodMinusOne
float predicted = intercept - (bar_index - i) * slope
deviation += math.pow(nz(close[i]) - predicted, 2)
deviation := deviations * math.sqrt(deviation / devDenominator)
float correlate = ta.correlation(close, bar_index, period)
float r2 = math.pow(correlate, 2)
[linearRegression, slope, deviation, correlate, r2]
// === Helper function to draw/update one channel ===
drawChannel(period, deviations, colorUpper, colorMiddle, colorLower, enabled, channelNum) =>
var line upper = na
var line middle = na
var line lower = na
var label lbl = na
if enabled
int periodMinusOne = period - 1
[linReg, slope, deviation, correlate, r2] = rsdcr2(periodMinusOne, deviations, estimatorType)
int endPointBar = bar_index - period + 1
float endPointY = linReg + slope * periodMinusOne
if na(upper)
upper := line.new(endPointBar, endPointY + deviation, bar_index, linReg + deviation, xloc.bar_index, extendType, colorUpper, line.style_solid, 3)
middle := line.new(endPointBar, endPointY, bar_index, linReg, xloc.bar_index, extendType, colorMiddle, line.style_dotted, 3)
lower := line.new(endPointBar, endPointY - deviation, bar_index, linReg - deviation, xloc.bar_index, extendType, colorLower,line.style_solid, 3)
else
line.set_xy1(upper, endPointBar, endPointY + deviation)
line.set_xy2(upper, bar_index, linReg + deviation)
line.set_xy1(middle, endPointBar, endPointY)
line.set_xy2(middle, bar_index, linReg)
line.set_xy1(lower, endPointBar, endPointY - deviation)
line.set_xy2(lower, bar_index, linReg - deviation)
if showLabels and barstate.islast
if not na(lbl)
label.delete(lbl)
labelColor = correlate > 0 ? color.new(color.lime, 50) : color.new(color.orange, 50)
labelText = "Ch" + str.tostring(channelNum) + ": " + str.tostring(correlate, "COR:"+"#0.####") + " / " + str.tostring(r2, "R2:"+"#0.####")
lbl := label.new(bar_index, linReg, labelText,
xloc.bar_index, yloc.price, color=labelColor,
textcolor=color.white, style=label.style_label_left)
// === Draw all 5 channels ===
drawChannel(ch1_period, ch1_deviations, ch1_color_upper, ch1_color_middle, ch1_color_lower, ch1_enabled, 1)
drawChannel(ch2_period, ch2_deviations, ch2_color_upper, ch2_color_middle, ch2_color_lower, ch2_enabled, 2)
drawChannel(ch3_period, ch3_deviations, ch3_color_upper, ch3_color_middle, ch3_color_lower, ch3_enabled, 3)
drawChannel(ch4_period, ch4_deviations, ch4_color_upper, ch4_color_middle, ch4_color_lower, ch4_enabled, 4)
drawChannel(ch5_period, ch5_deviations, ch5_color_upper, ch5_color_middle, ch5_color_lower, ch5_enabled, 5)
////// TARAMA ///////
per = input.timeframe(defval='', title='PERİYOT', group="Tarama yapmak istediğiniz periyotu seçin")
loc1 = input.int(defval=50, title='Konum Ayarı', minval=-100, maxval=200, step=5, group='Tablonun konumunu belirleyin')
loc2 = input.int(defval=80, title='Konum Ayarı', minval=-100, maxval=200, step=5, group='Tablonun konumunu belirleyin')
loc3 = input.int(defval=110, title='Konum Ayarı', minval=-100, maxval=200, step=5, group='Tablonun konumunu belirleyin')
loc4 = input.int(defval=140, title='Konum Ayarı', minval=-100, maxval=200, step=5, group='Tablonun konumunu belirleyin')
correlate = ta.correlation(close, bar_index, ch1_period)
r2 = math.pow(correlate, 2)
condition1= (correlate >0.90 )
condition2= (correlate <-0.90 )
condition3= (r2 > 0.85 )
condition4= (r2 < 0.05 )
cond1 = condition1
cond2= condition2
cond3= condition3
cond4= condition4
func() =>
cond1
cond2
cond3
cond4
[cond1, cond2,cond3,cond4]
////////////////////////////
s01 = input.symbol(title='1', defval='AKBNK',group = "╠═════════════ ÖZEL LİSTE ═════════════╣")
s02 = input.symbol(title='2', defval='ALARK')
s03 = input.symbol(title='3', defval='ARCLK')
s04 = input.symbol(title='4', defval='ASELS')
s05 = input.symbol(title='5', defval='ASTOR')
s06 = input.symbol(title='6', defval='BIMAS')
s07 = input.symbol(title='7', defval='EKGYO')
s08 = input.symbol(title='8', defval='ENKAI')
s09 = input.symbol(title='9', defval='EREGL')
s10 = input.symbol(title='10', defval='FROTO')
s11 = input.symbol(title='11', defval='GARAN')
s12 = input.symbol(title='12', defval='GUBRF')
s13 = input.symbol(title='13', defval='HEKTS')
s14 = input.symbol(title='14', defval='ISCTR')
s15 = input.symbol(title='15', defval='KCHOL')
s16 = input.symbol(title='16', defval='TRMET')
s17 = input.symbol(title='17', defval='TRALT')
s18 = input.symbol(title='18', defval='KRDMD')
s19 = input.symbol(title='19', defval='ODAS')
s20 = input.symbol(title='20', defval='PETKM')
s21 = input.symbol(title='21', defval='PGSUS')
s22 = input.symbol(title='22', defval='SAHOL')
s23 = input.symbol(title='23', defval='SASA')
s24 = input.symbol(title='24', defval='SISE')
s25 = input.symbol(title='25', defval='TAVHL')
s26 = input.symbol(title='26', defval='TCELL')
s27 = input.symbol(title='27', defval='THYAO')
s28 = input.symbol(title='28', defval='TOASO')
s29 = input.symbol(title='29', defval='AKSEN')
s30 = input.symbol(title='30', defval='TUPRS')
s31 = input.symbol(title='31', defval='YKBNK')
s32 = input.symbol(title='32', defval='DOHOL')
s33 = input.symbol(title='33', defval='VRGYO')
s34 = input.symbol(title='34', defval='YIGIT')
s35 = input.symbol(title='35', defval='HOROZ')
s36 = input.symbol(title='36', defval='KOTON')
s37 = input.symbol(title='37', defval='LILAK')
s38 = input.symbol(title='38', defval='SEGMN')
s39 = input.symbol(title='39', defval='EFOR')
s40 = input.symbol(title='40', defval='ALTNY')
/////////////////
// Symbols
a01 = grupSec == '1' ? 'BIST:A1CAP' : grupSec == '2' ? 'BIST:ARCLK' : grupSec == '3' ? 'BIST:BIGCH' : grupSec == '4' ? 'BIST:CEMTS' : grupSec == '5' ? 'BIST:DZGYO' : grupSec == '6' ? 'BIST:FLAP' : grupSec == '7' ? 'BIST:HEKTS' : grupSec == '8' ? 'BIST:IZMDC' : grupSec == '9' ? 'BIST:KRSTL' : grupSec == '10' ? 'BIST:MHRGY' : grupSec == '11' ? 'BIST:OZRDN' : grupSec == '12' ? 'BIST:RYGYO' : grupSec == '13' ? 'BIST:TABGD' : grupSec == '14' ? 'BIST:ULUUN' : grupSec == 'ÖZEL LİSTE' ? s01 : na
a02 = grupSec == '1' ? 'BIST:ACSEL' : grupSec == '2' ? 'BIST:ARDYZ' : grupSec == '3' ? 'BIST:BIMAS' : grupSec == '4' ? 'BIST:CEOEM' : grupSec == '5' ? 'BIST:EBEBK' : grupSec == '6' ? 'BIST:FMIZP' : grupSec == '7' ? 'BIST:HKTM' : grupSec == '8' ? 'BIST:JANTS' : grupSec == '9' ? 'BIST:KRTEK' : grupSec == '10' ? 'BIST:MIATK' : grupSec == '11' ? 'BIST:OZSUB' : grupSec == '12' ? 'BIST:RYSAS' : grupSec == '13' ? 'BIST:TARKM' : grupSec == '14' ? 'BIST:UMPAS' : grupSec == 'ÖZEL LİSTE' ? s02 : na
a03 = grupSec == '1' ? 'BIST:ADEL' : grupSec == '2' ? 'BIST:ARENA' : grupSec == '3' ? 'BIST:BINHO' : grupSec == '4' ? 'BIST:CIMSA' : grupSec == '5' ? 'BIST:ECILC' : grupSec == '6' ? 'BIST:FONET' : grupSec == '7' ? 'BIST:HLGYO' : grupSec == '8' ? 'BIST:KAPLM' : grupSec == '9' ? 'BIST:KRVGD' : grupSec == '10' ? 'BIST:LYDHO' : grupSec == '11' ? 'BIST:PAGYO' : grupSec == '12' ? 'BIST:SAFKR' : grupSec == '13' ? 'BIST:TATEN' : grupSec == '14' ? 'BIST:UNLU' : grupSec == 'ÖZEL LİSTE' ? s03 : na
a04 = grupSec == '1' ? 'BIST:ADESE' : grupSec == '2' ? 'BIST:ARSAN' : grupSec == '3' ? 'BIST:BIOEN' : grupSec == '4' ? 'BIST:CLEBI' : grupSec == '5' ? 'BIST:ECZYT' : grupSec == '6' ? 'BIST:FORMT' : grupSec == '7' ? 'BIST:HTTBT' : grupSec == '8' ? 'BIST:KAREL' : grupSec == '9' ? 'BIST:KSTUR' : grupSec == '10' ? 'BIST:MMCAS' : grupSec == '11' ? 'BIST:PAMEL' : grupSec == '12' ? 'BIST:SAHOL' : grupSec == '13' ? 'BIST:TATEN' : grupSec == '14' ? 'BIST:USAK' : grupSec == 'ÖZEL LİSTE' ? s04 : na
a05 = grupSec == '1' ? 'BIST:ADGYO' : grupSec == '2' ? 'BIST:ARTMS' : grupSec == '3' ? 'BIST:BIZIM' : grupSec == '4' ? 'BIST:CMBTN' : grupSec == '5' ? 'BIST:EDATA' : grupSec == '6' ? 'BIST:FORTE' : grupSec == '7' ? 'BIST:HUBVC' : grupSec == '8' ? 'BIST:KARSN' : grupSec == '9' ? 'BIST:KTLEV' : grupSec == '10' ? 'BIST:MNDRS' : grupSec == '11' ? 'BIST:PAPIL' : grupSec == '12' ? 'BIST:SAMAT' : grupSec == '13' ? 'BIST:TAVHL' : grupSec == '14' ? 'BIST:INTEK' : grupSec == 'ÖZEL LİSTE' ? s05 : na
a06 = grupSec == '1' ? 'BIST:AEFES' : grupSec == '2' ? 'BIST:ARZUM' : grupSec == '3' ? 'BIST:BIGCH' : grupSec == '4' ? 'BIST:CMENT' : grupSec == '5' ? 'BIST:EDIP' : grupSec == '6' ? 'BIST:FRIGO' : grupSec == '7' ? 'BIST:HUNER' : grupSec == '8' ? 'BIST:KARTN' : grupSec == '9' ? 'BIST:KTSKR' : grupSec == '10' ? 'BIST:MNDTR' : grupSec == '11' ? 'BIST:PARSN' : grupSec == '12' ? 'BIST:SANEL' : grupSec == '13' ? 'BIST:TBORG' : grupSec == '14' ? 'BIST:VAKBN' : grupSec == 'ÖZEL LİSTE' ? s06 : na
a07 = grupSec == '1' ? 'BIST:AFYON' : grupSec == '2' ? 'BIST:ASELS' : grupSec == '3' ? 'BIST:BIMAS' : grupSec == '4' ? 'BIST:CONSE' : grupSec == '5' ? 'BIST:EGEEN' : grupSec == '6' ? 'BIST:FROTO' : grupSec == '7' ? 'BIST:HURGZ' : grupSec == '8' ? 'BIST:KARYE' : grupSec == '9' ? 'BIST:KUTPO' : grupSec == '10' ? 'BIST:MOBTL' : grupSec == '11' ? 'BIST:PASEU' : grupSec == '12' ? 'BIST:SANFM' : grupSec == '13' ? 'BIST:TCELL' : grupSec == '14' ? 'BIST:VAKFN' : grupSec == 'ÖZEL LİSTE' ? s07 : na
a08 = grupSec == '1' ? 'BIST:AGESA' : grupSec == '2' ? 'BIST:ASGYO' : grupSec == '3' ? 'BIST:BINHO' : grupSec == '4' ? 'BIST:COSMO' : grupSec == '5' ? 'BIST:EGEPO' : grupSec == '6' ? 'BIST:FZLGY' : grupSec == '7' ? 'BIST:ICBCT' : grupSec == '8' ? 'BIST:KATMR' : grupSec == '9' ? 'BIST:KUVVA' : grupSec == '10' ? 'BIST:MOGAN' : grupSec == '11' ? 'BIST:PATEK' : grupSec == '12' ? 'BIST:SANKO' : grupSec == '13' ? 'BIST:TDGYO' : grupSec == '14' ? 'BIST:VAKKO' : grupSec == 'ÖZEL LİSTE' ? s08 : na
a09 = grupSec == '1' ? 'BIST:AGHOL' : grupSec == '2' ? 'BIST:ASTOR' : grupSec == '3' ? 'BIST:BIOEN' : grupSec == '4' ? 'BIST:CRDFA' : grupSec == '5' ? 'BIST:EGGUB' : grupSec == '6' ? 'BIST:GARAN' : grupSec == '7' ? 'BIST:ICUGS' : grupSec == '8' ? 'BIST:KAYSE' : grupSec == '9' ? 'BIST:KUYAS' : grupSec == '10' ? 'BIST:MPARK' : grupSec == '11' ? 'BIST:PCILT' : grupSec == '12' ? 'BIST:SARKY' : grupSec == '13' ? 'BIST:TEKTU' : grupSec == '14' ? 'BIST:VANGD' : grupSec == 'ÖZEL LİSTE' ? s09 : na
a101 = grupSec == '1' ? 'BIST:AGROT' : grupSec == '2' ? 'BIST:ASUZU' : grupSec == '3' ? 'BIST:BIZIM' : grupSec == '4' ? 'BIST:CRFSA' : grupSec == '5' ? 'BIST:EGPRO' : grupSec == '6' ? 'BIST:GARFA' : grupSec == '7' ? 'BIST:IDGYO' : grupSec == '8' ? 'BIST:KBORU' : grupSec == '9' ? 'BIST:KZBGY' : grupSec == '10' ? 'BIST:MRGYO' : grupSec == '11' ? 'BIST:BEGYO' : grupSec == '12' ? 'BIST:SASA' : grupSec == '13' ? 'BIST:TERA' : grupSec == '14' ? 'BIST:VBTYZ' : grupSec == 'ÖZEL LİSTE' ? s10 : na
a11 = grupSec == '1' ? 'BIST:AGYO' : grupSec == '2' ? 'BIST:ATAGY' : grupSec == '3' ? 'BIST:BJKAS' : grupSec == '4' ? 'BIST:CUSAN' : grupSec == '5' ? 'BIST:EGSER' : grupSec == '6' ? 'BIST:GEDIK' : grupSec == '7' ? 'BIST:IEYHO' : grupSec == '8' ? 'BIST:KCAER' : grupSec == '9' ? 'BIST:KZGYO' : grupSec == '10' ? 'BIST:MRSHL' : grupSec == '11' ? 'BIST:PEKGY' : grupSec == '12' ? 'BIST:SAYAS' : grupSec == '13' ? 'BIST:LYDYE' : grupSec == '14' ? 'BIST:VERTU' : grupSec == 'ÖZEL LİSTE' ? s11 : na
a12 = grupSec == '1' ? 'BIST:AHGAZ' : grupSec == '2' ? 'BIST:ATAKP' : grupSec == '3' ? 'BIST:BLCYT' : grupSec == '4' ? 'BIST:CVKMD' : grupSec == '5' ? 'BIST:EKGYO' : grupSec == '6' ? 'BIST:GEDZA' : grupSec == '7' ? 'BIST:IHAAS' : grupSec == '8' ? 'BIST:KCHOL' : grupSec == '9' ? 'BIST:LIDER' : grupSec == '10' ? 'BIST:MSGYO' : grupSec == '11' ? 'BIST:PENGD' : grupSec == '12' ? 'BIST:SDTTR' : grupSec == '13' ? 'BIST:TEZOL' : grupSec == '14' ? 'BIST:VERUS' : grupSec == 'ÖZEL LİSTE' ? s12 : na
a13 = grupSec == '1' ? 'BIST:AKBNK' : grupSec == '2' ? 'BIST:ATATP' : grupSec == '3' ? 'BIST:BMSCH' : grupSec == '4' ? 'BIST:CWENE' : grupSec == '5' ? 'BIST:EKIZ' : grupSec == '6' ? 'BIST:GENIL' : grupSec == '7' ? 'BIST:IHEVA' : grupSec == '8' ? 'BIST:KENT' : grupSec == '9' ? 'BIST:LIDFA' : grupSec == '10' ? 'BIST:MTRKS' : grupSec == '11' ? 'BIST:PENTA' : grupSec == '12' ? 'BIST:SEGYO' : grupSec == '13' ? 'BIST:TGSAS' : grupSec == '14' ? 'BIST:VESBE' : grupSec == 'ÖZEL LİSTE' ? s13 : na
a14 = grupSec == '1' ? 'BIST:AKCNS' : grupSec == '2' ? 'BIST:ATEKS' : grupSec == '3' ? 'BIST:BMSTL' : grupSec == '4' ? 'BIST:TRHOL' : grupSec == '5' ? 'BIST:EKOS' : grupSec == '6' ? 'BIST:GENTS' : grupSec == '7' ? 'BIST:IHGZT' : grupSec == '8' ? 'BIST:KERVN' : grupSec == '9' ? 'BIST:LINK' : grupSec == '10' ? 'BIST:MTRYO' : grupSec == '11' ? 'BIST:PETKM' : grupSec == '12' ? 'BIST:SEKFK' : grupSec == '13' ? 'BIST:THYAO' : grupSec == '14' ? 'BIST:VESTL' : grupSec == 'ÖZEL LİSTE' ? s14 : na
a15 = grupSec == '1' ? 'BIST:AKENR' : grupSec == '2' ? 'BIST:ATLAS' : grupSec == '3' ? 'BIST:BNTAS' : grupSec == '4' ? 'BIST:DAGI' : grupSec == '5' ? 'BIST:EKSUN' : grupSec == '6' ? 'BIST:GEREL' : grupSec == '7' ? 'BIST:IHLAS' : grupSec == '8' ? 'BIST:KERVT' : grupSec == '9' ? 'BIST:LKMNH' : grupSec == '10' ? 'BIST:MZHLD' : grupSec == '11' ? 'BIST:PETUN' : grupSec == '12' ? 'BIST:SEKUR' : grupSec == '13' ? 'BIST:TKFEN' : grupSec == '14' ? 'BIST:VKFYO' : grupSec == 'ÖZEL LİSTE' ? s15 : na
a16 = grupSec == '1' ? 'BIST:AKFGY' : grupSec == '2' ? 'BIST:ATSYH' : grupSec == '3' ? 'BIST:BOBET' : grupSec == '4' ? 'BIST:DAPGM' : grupSec == '5' ? 'BIST:ELITE' : grupSec == '6' ? 'BIST:GESAN' : grupSec == '7' ? 'BIST:IHLGM' : grupSec == '8' ? 'BIST:KFEIN' : grupSec == '9' ? 'BIST:LMKDC' : grupSec == '10' ? 'BIST:NATEN' : grupSec == '11' ? 'BIST:PGSUS' : grupSec == '12' ? 'BIST:SELEC' : grupSec == '13' ? 'BIST:TKNSA' : grupSec == '14' ? 'BIST:VKGYO' : grupSec == 'ÖZEL LİSTE' ? s16 : na
a17 = grupSec == '1' ? 'BIST:AKFYE' : grupSec == '2' ? 'BIST:AVGYO' : grupSec == '3' ? 'BIST:BORLS' : grupSec == '4' ? 'BIST:DARDL' : grupSec == '5' ? 'BIST:EMKEL' : grupSec == '6' ? 'BIST:GIPTA' : grupSec == '7' ? 'BIST:IHYAY' : grupSec == '8' ? 'BIST:KGYO' : grupSec == '9' ? 'BIST:LOGO' : grupSec == '10' ? 'BIST:NETAS' : grupSec == '11' ? 'BIST:PINSU' : grupSec == '12' ? 'BIST:SELGD' : grupSec == '13' ? 'BIST:TLMAN' : grupSec == '14' ? 'BIST:VKING' : grupSec == 'ÖZEL LİSTE' ? s17 : na
a188 = grupSec == '1' ? 'BIST:AKGRT' : grupSec == '2' ? 'BIST:AVHOL' : grupSec == '3' ? 'BIST:BORSK' : grupSec == '4' ? 'BIST:DENGE' : grupSec == '5' ? 'BIST:EMNIS' : grupSec == '6' ? 'BIST:GLBMD' : grupSec == '7' ? 'BIST:IMASM' : grupSec == '8' ? 'BIST:KIMMR' : grupSec == '9' ? 'BIST:LRSHO' : grupSec == '10' ? 'BIST:NIBAS' : grupSec == '11' ? 'BIST:PKART' : grupSec == '12' ? 'BIST:SELVA' : grupSec == '13' ? 'BIST:TMPOL' : grupSec == '14' ? 'BIST:VRGYO' : grupSec == 'ÖZEL LİSTE' ? s18 : na
a19 = grupSec == '1' ? 'BIST:AKMGY' : grupSec == '2' ? 'BIST:AVOD' : grupSec == '3' ? 'BIST:BOSSA' : grupSec == '4' ? 'BIST:TRHOL' : grupSec == '5' ? 'BIST:ENERY' : grupSec == '6' ? 'BIST:GLCVY' : grupSec == '7' ? 'BIST:INDES' : grupSec == '8' ? 'BIST:KLGYO' : grupSec == '9' ? 'BIST:LUKSK' : grupSec == '10' ? 'BIST:NTGAZ' : grupSec == '11' ? 'BIST:PKENT' : grupSec == '12' ? 'BIST:SEYKM' : grupSec == '13' ? 'BIST:TMSN' : grupSec == '14' ? 'BIST:YAPRK' : grupSec == 'ÖZEL LİSTE' ? s19 : na
a20 = grupSec == '1' ? 'BIST:AKSA' : grupSec == '2' ? 'BIST:AVPGY' : grupSec == '3' ? 'BIST:BRISA' : grupSec == '4' ? 'BIST:DERIM' : grupSec == '5' ? 'BIST:ENJSA' : grupSec == '6' ? 'BIST:GLRYH' : grupSec == '7' ? 'BIST:INFO' : grupSec == '8' ? 'BIST:KLKIM' : grupSec == '9' ? 'BIST:MAALT' : grupSec == '10' ? 'BIST:NTHOL' : grupSec == '11' ? 'BIST:PLTUR' : grupSec == '12' ? 'BIST:SILVR' : grupSec == '13' ? 'BIST:TNZTP' : grupSec == '14' ? 'BIST:YATAS' : grupSec == 'ÖZEL LİSTE' ? s20 : na
a21 = grupSec == '1' ? 'BIST:AKSEN' : grupSec == '2' ? 'BIST:AVTUR' : grupSec == '3' ? 'BIST:BRKO' : grupSec == '4' ? 'BIST:DESA' : grupSec == '5' ? 'BIST:ENKAI' : grupSec == '6' ? 'BIST:GLYHO' : grupSec == '7' ? 'BIST:INGRM' : grupSec == '8' ? 'BIST:KLMSN' : grupSec == '9' ? 'BIST:MACKO' : grupSec == '10' ? 'BIST:NUGYO' : grupSec == '11' ? 'BIST:PNLSN' : grupSec == '12' ? 'BIST:SISE' : grupSec == '13' ? 'BIST:TOASO' : grupSec == '14' ? 'BIST:YAYLA' : grupSec == 'ÖZEL LİSTE' ? s21 : na
a22 = grupSec == '1' ? 'BIST:AKSGY' : grupSec == '2' ? 'BIST:AYCES' : grupSec == '3' ? 'BIST:BRKSN' : grupSec == '4' ? 'BIST:DESPC' : grupSec == '5' ? 'BIST:ENSRI' : grupSec == '6' ? 'BIST:GMTAS' : grupSec == '7' ? 'BIST:INTEM' : grupSec == '8' ? 'BIST:KLNMA' : grupSec == '9' ? 'BIST:MAGEN' : grupSec == '10' ? 'BIST:NUHCM' : grupSec == '11' ? 'BIST:PNSUT' : grupSec == '12' ? 'BIST:SKBNK' : grupSec == '13' ? 'BIST:TRCAS' : grupSec == '14' ? 'BIST:YBTAS' : grupSec == 'ÖZEL LİSTE' ? s22 : na
a23 = grupSec == '1' ? 'BIST:AKSUE' : grupSec == '2' ? 'BIST:AYDEM' : grupSec == '3' ? 'BIST:BRKVY' : grupSec == '4' ? 'BIST:DEVA' : grupSec == '5' ? 'BIST:EPLAS' : grupSec == '6' ? 'BIST:GOKNR' : grupSec == '7' ? 'BIST:INVEO' : grupSec == '8' ? 'BIST:KLRHO' : grupSec == '9' ? 'BIST:MAKIM' : grupSec == '10' ? 'BIST:OBAMS' : grupSec == '11' ? 'BIST:POLHO' : grupSec == '12' ? 'BIST:SKTAS' : grupSec == '13' ? 'BIST:TRGYO' : grupSec == '14' ? 'BIST:YEOTK' : grupSec == 'ÖZEL LİSTE' ? s23 : na
a24 = grupSec == '1' ? 'BIST:AKYHO' : grupSec == '2' ? 'BIST:AYEN' : grupSec == '3' ? 'BIST:BRLSM' : grupSec == '4' ? 'BIST:DGATE' : grupSec == '5' ? 'BIST:ERBOS' : grupSec == '6' ? 'BIST:GOLTS' : grupSec == '7' ? 'BIST:INVES' : grupSec == '8' ? 'BIST:KLSER' : grupSec == '9' ? 'BIST:MAKTK' : grupSec == '10' ? 'BIST:OBASE' : grupSec == '11' ? 'BIST:POLTK' : grupSec == '12' ? 'BIST:SKYLP' : grupSec == '13' ? 'BIST:TRILC' : grupSec == '14' ? 'BIST:YESIL' : grupSec == 'ÖZEL LİSTE' ? s24 : na
a25 = grupSec == '1' ? 'BIST:ALARK' : grupSec == '2' ? 'BIST:AYES' : grupSec == '3' ? 'BIST:BRMEN' : grupSec == '4' ? 'BIST:DGGYO' : grupSec == '5' ? 'BIST:ERCB' : grupSec == '6' ? 'BIST:GOODY' : grupSec == '7' ? 'BIST:TRENJ' : grupSec == '8' ? 'BIST:KLSYN' : grupSec == '9' ? 'BIST:MANAS' : grupSec == '10' ? 'BIST:ODAS' : grupSec == '11' ? 'BIST:PRDGS' : grupSec == '12' ? 'BIST:SKYMD' : grupSec == '13' ? 'BIST:TSGYO' : grupSec == '14' ? 'BIST:YGGYO' : grupSec == 'ÖZEL LİSTE' ? s25 : na
a26 = grupSec == '1' ? 'BIST:ALBRK' : grupSec == '2' ? 'BIST:AYGAZ' : grupSec == '3' ? 'BIST:BRSAN' : grupSec == '4' ? 'BIST:DGNMO' : grupSec == '5' ? 'BIST:EREGL' : grupSec == '6' ? 'BIST:GOZDE' : grupSec == '7' ? 'BIST:ISATR' : grupSec == '8' ? 'BIST:KMPUR' : grupSec == '9' ? 'BIST:MARBL' : grupSec == '10' ? 'BIST:OFSYM' : grupSec == '11' ? 'BIST:PRKAB' : grupSec == '12' ? 'BIST:SMART' : grupSec == '13' ? 'BIST:TSKB' : grupSec == '14' ? 'BIST:YGYO' : grupSec == 'ÖZEL LİSTE' ? s26 : na
a27 = grupSec == '1' ? 'BIST:ALCAR' : grupSec == '2' ? 'BIST:AZTEK' : grupSec == '3' ? 'BIST:BRYAT' : grupSec == '4' ? 'BIST:DIRIT' : grupSec == '5' ? 'BIST:ERSU' : grupSec == '6' ? 'BIST:GRNYO' : grupSec == '7' ? 'BIST:ISBIR' : grupSec == '8' ? 'BIST:KNFRT' : grupSec == '9' ? 'BIST:MARKA' : grupSec == '10' ? 'BIST:ONCSM' : grupSec == '11' ? 'BIST:PRKME' : grupSec == '12' ? 'BIST:SMRTG' : grupSec == '13' ? 'BIST:TTKOM' : grupSec == '14' ? 'BIST:YKBNK' : grupSec == 'ÖZEL LİSTE' ? s27 : na
a288 = grupSec == '1' ? 'BIST:ALCTL' : grupSec == '2' ? 'BIST:BAGFS' : grupSec == '3' ? 'BIST:BSOKE' : grupSec == '4' ? 'BIST:DITAS' : grupSec == '5' ? 'BIST:ESCAR' : grupSec == '6' ? 'BIST:GRSEL' : grupSec == '7' ? 'BIST:ISBTR' : grupSec == '8' ? 'BIST:KONKA' : grupSec == '9' ? 'BIST:MARTI' : grupSec == '10' ? 'BIST:ORCAY' : grupSec == '11' ? 'BIST:PRZMA' : grupSec == '12' ? 'BIST:SNGYO' : grupSec == '13' ? 'BIST:TTKOM' : grupSec == '14' ? 'BIST:YKSLN' : grupSec == 'ÖZEL LİSTE' ? s28 : na
a29 = grupSec == '1' ? 'BIST:ALFAS' : grupSec == '2' ? 'BIST:BAKAB' : grupSec == '3' ? 'BIST:BTCIM' : grupSec == '4' ? 'BIST:DMRGD' : grupSec == '5' ? 'BIST:ESCOM' : grupSec == '6' ? 'BIST:GRTHO' : grupSec == '7' ? 'BIST:ISCTR' : grupSec == '8' ? 'BIST:KONTR' : grupSec == '9' ? 'BIST:MAVI' : grupSec == '10' ? 'BIST:ORGE' : grupSec == '11' ? 'BIST:PSDTC' : grupSec == '12' ? 'BIST:SNICA' : grupSec == '13' ? 'BIST:TTRAK' : grupSec == '14' ? 'BIST:YONGA' : grupSec == 'ÖZEL LİSTE' ? s29 : na
a30 = grupSec == '1' ? 'BIST:ALGYO' : grupSec == '2' ? 'BIST:BALAT' : grupSec == '3' ? 'BIST:BUCIM' : grupSec == '4' ? 'BIST:DMSAS' : grupSec == '5' ? 'BIST:ESEN' : grupSec == '6' ? 'BIST:GSDDE' : grupSec == '7' ? 'BIST:ISDMR' : grupSec == '8' ? 'BIST:KONYA' : grupSec == '9' ? 'BIST:MEDTR' : grupSec == '10' ? 'BIST:ORMA' : grupSec == '11' ? 'BIST:PSGYO' : grupSec == '12' ? 'BIST:SNKRN' : grupSec == '13' ? 'BIST:TUCLK' : grupSec == '14' ? 'BIST:YUNSA' : grupSec == 'ÖZEL LİSTE' ? s30 : na
a31 = grupSec == '1' ? 'BIST:ALKA' : grupSec == '2' ? 'BIST:BANVT' : grupSec == '3' ? 'BIST:BURCE' : grupSec == '4' ? 'BIST:DNISI' : grupSec == '5' ? 'BIST:ETILR' : grupSec == '6' ? 'BIST:GSDHO' : grupSec == '7' ? 'BIST:ISFIN' : grupSec == '8' ? 'BIST:KOPOL' : grupSec == '9' ? 'BIST:MEGAP' : grupSec == '10' ? 'BIST:OSMEN' : grupSec == '11' ? 'BIST:QNBTR' : grupSec == '12' ? 'BIST:SNPAM' : grupSec == '13' ? 'BIST:TUKAS' : grupSec == '14' ? 'BIST:YYAPI' : grupSec == 'ÖZEL LİSTE' ? s31 : na
a32 = grupSec == '1' ? 'BIST:ALKIM' : grupSec == '2' ? 'BIST:BARMA' : grupSec == '3' ? 'BIST:BURVA' : grupSec == '4' ? 'BIST:DOAS' : grupSec == '5' ? 'BIST:ETYAT' : grupSec == '6' ? 'BIST:GSRAY' : grupSec == '7' ? 'BIST:ISGSY' : grupSec == '8' ? 'BIST:KORDS' : grupSec == '9' ? 'BIST:MEGMT' : grupSec == '10' ? 'BIST:OSTIM' : grupSec == '11' ? 'BIST:QNBTR' : grupSec == '12' ? 'BIST:SODSN' : grupSec == '13' ? 'BIST:TUPRS' : grupSec == '14' ? 'BIST:YYLGD' : grupSec == 'ÖZEL LİSTE' ? s32 : na
a33 = grupSec == '1' ? 'BIST:ALMAD' : grupSec == '2' ? 'BIST:BASCM' : grupSec == '3' ? 'BIST:BVSAN' : grupSec == '4' ? 'BIST:DOBUR' : grupSec == '5' ? 'BIST:EUHOL' : grupSec == '6' ? 'BIST:GUBRF' : grupSec == '7' ? 'BIST:ISGYO' : grupSec == '8' ? 'BIST:TRMET' : grupSec == '9' ? 'BIST:MEKAG' : grupSec == '10' ? 'BIST:OTKAR' : grupSec == '11' ? 'BIST:QUAGR' : grupSec == '12' ? 'BIST:SOKE' : grupSec == '13' ? 'BIST:TUREX' : grupSec == '14' ? 'BIST:ZEDUR' : grupSec == 'ÖZEL LİSTE' ? s33 : na
a34 = grupSec == '1' ? 'BIST:ALTIN' : grupSec == '2' ? 'BIST:BASGZ' : grupSec == '3' ? 'BIST:BYDNR' : grupSec == '4' ? 'BIST:DOCO' : grupSec == '5' ? 'BIST:EUKYO' : grupSec == '6' ? 'BIST:GWIND' : grupSec == '7' ? 'BIST:ISKPL' : grupSec == '8' ? 'BIST:TRALT' : grupSec == '9' ? 'BIST:MEPET' : grupSec == '10' ? 'BIST:OTTO' : grupSec == '11' ? 'BIST:RALYH' : grupSec == '12' ? 'BIST:SOKM' : grupSec == '13' ? 'BIST:TURGG' : grupSec == '14' ? 'BIST:ZOREN' : grupSec == 'ÖZEL LİSTE' ? s34 : na
a35 = grupSec == '1' ? 'BIST:ALVES' : grupSec == '2' ? 'BIST:BAYRK' : grupSec == '3' ? 'BIST:CANTE' : grupSec == '4' ? 'BIST:DOFER' : grupSec == '5' ? 'BIST:EUPWR' : grupSec == '6' ? 'BIST:GZNMI' : grupSec == '7' ? 'BIST:ISKUR' : grupSec == '8' ? 'BIST:KRDMA' : grupSec == '9' ? 'BIST:MERCN' : grupSec == '10' ? 'BIST:OYAKC' : grupSec == '11' ? 'BIST:RAYSG' : grupSec == '12' ? 'BIST:SONME' : grupSec == '13' ? 'BIST:TURSG' : grupSec == '14' ? 'BIST:ZRGYO' : grupSec == 'ÖZEL LİSTE' ? s35 : na
a36 = grupSec == '1' ? 'BIST:ANELE' : grupSec == '2' ? 'BIST:BEGYO' : grupSec == '3' ? 'BIST:CASA' : grupSec == '4' ? 'BIST:DOGUB' : grupSec == '5' ? 'BIST:EUREN' : grupSec == '6' ? 'BIST:HALKB' : grupSec == '7' ? 'BIST:ISMEN' : grupSec == '8' ? 'BIST:KRDMB' : grupSec == '9' ? 'BIST:MERIT' : grupSec == '10' ? 'BIST:OYAYO' : grupSec == '11' ? 'BIST:REEDR' : grupSec == '12' ? 'BIST:SRVGY' : grupSec == '13' ? 'BIST:UFUK' : grupSec == '14' ? '' : grupSec == 'ÖZEL LİSTE' ? s36 : na
a37 = grupSec == '1' ? 'BIST:ANGEN' : grupSec == '2' ? 'BIST:BERA' : grupSec == '3' ? 'BIST:CATES' : grupSec == '4' ? 'BIST:DOHOL' : grupSec == '5' ? 'BIST:EUYO' : grupSec == '6' ? 'BIST:HATEK' : grupSec == '7' ? 'BIST:ISSEN' : grupSec == '8' ? 'BIST:KRDMD' : grupSec == '9' ? 'BIST:MERKO' : grupSec == '10' ? 'BIST:OYLUM' : grupSec == '11' ? 'BIST:RNPOL' : grupSec == '12' ? 'BIST:SUMAS' : grupSec == '13' ? 'BIST:ULAS' : grupSec == '14' ? '' : grupSec == 'ÖZEL LİSTE' ? s37 : na
a388 = grupSec == '1' ? 'BIST:ANHYT' : grupSec == '2' ? 'BIST:BEYAZ' : grupSec == '3' ? 'BIST:CCOLA' : grupSec == '4' ? 'BIST:DOKTA' : grupSec == '5' ? 'BIST:EYGYO' : grupSec == '6' ? 'BIST:HATSN' : grupSec == '7' ? 'BIST:IZENR' : grupSec == '8' ? 'BIST:KRGYO' : grupSec == '9' ? 'BIST:METRO' : grupSec == '10' ? 'BIST:OYYAT' : grupSec == '11' ? 'BIST:RODRG' : grupSec == '12' ? 'BIST:SUNTK' : grupSec == '13' ? 'BIST:ULKER' : grupSec == '14' ? '' : grupSec == 'ÖZEL LİSTE' ? s38 : na
a39 = grupSec == '1' ? 'BIST:ANSGR' : grupSec == '2' ? 'BIST:BFREN' : grupSec == '3' ? 'BIST:CELHA' : grupSec == '4' ? 'BIST:DURDO' : grupSec == '5' ? 'BIST:FADE' : grupSec == '6' ? 'BIST:HDFGS' : grupSec == '7' ? 'BIST:IZFAS' : grupSec == '8' ? 'BIST:KRONT' : grupSec == '9' ? 'BIST:DOFRB' : grupSec == '10' ? 'BIST:OZGYO' : grupSec == '11' ? 'BIST:RTALB' : grupSec == '12' ? 'BIST:SURGY' : grupSec == '13' ? 'BIST:ULUFA' : grupSec == '14' ? '' : grupSec == 'ÖZEL LİSTE' ? s39 : na
a40 = grupSec == '1' ? 'BIST:ARASE' : grupSec == '2' ? 'BIST:BIENY' : grupSec == '3' ? 'BIST:CEMAS' : grupSec == '4' ? 'BIST:DYOBY' : grupSec == '5' ? 'BIST:FENER' : grupSec == '6' ? 'BIST:HEDEF' : grupSec == '7' ? 'BIST:IZINV' : grupSec == '8' ? 'BIST:KRPLS' : grupSec == '9' ? 'BIST:MGROS' : grupSec == '10' ? 'BIST:OZKGY' : grupSec == '11' ? 'BIST:RUBNS' : grupSec == '12' ? 'BIST:SUWEN' : grupSec == '13' ? 'BIST:ULUSE' : grupSec == '14' ? '' : grupSec == 'ÖZEL LİSTE' ? s40 : na
////////////////////
[c01_1, c01_2, c01_3, c01_4] = request.security(a01, per, func())
[c02_1, c02_2, c02_3, c02_4] = request.security(a02, per, func())
[c03_1, c03_2, c03_3, c03_4] = request.security(a03, per, func())
[c04_1, c04_2, c04_3, c04_4] = request.security(a04, per, func())
[c05_1, c05_2, c05_3, c05_4] = request.security(a05, per, func())
[c06_1, c06_2, c06_3, c06_4] = request.security(a06, per, func())
[c07_1, c07_2, c07_3, c07_4] = request.security(a07, per, func())
[c08_1, c08_2, c08_3, c08_4] = request.security(a08, per, func())
[c09_1, c09_2, c09_3, c09_4] = request.security(a09, per, func())
[c10_1, c10_2, c10_3, c10_4] = request.security(a101, per, func())
[c11_1, c11_2, c11_3, c11_4] = request.security(a11, per, func())
[c12_1, c12_2, c12_3, c12_4] = request.security(a12, per, func())
[c13_1, c13_2, c13_3, c13_4] = request.security(a13, per, func())
[c14_1, c14_2, c14_3, c14_4] = request.security(a14, per, func())
[c15_1, c15_2, c15_3, c15_4] = request.security(a15, per, func())
[c16_1, c16_2, c16_3, c16_4] = request.security(a16, per, func())
[c17_1, c17_2, c17_3, c17_4] = request.security(a17, per, func())
[c18_1, c18_2, c18_3, c18_4] = request.security(a188, per, func())
[c19_1, c19_2, c19_3, c19_4] = request.security(a19, per, func())
[c20_1, c20_2, c20_3, c20_4] = request.security(a20, per, func())
[c21_1, c21_2, c21_3, c21_4] = request.security(a21, per, func())
[c22_1, c22_2, c22_3, c22_4] = request.security(a22, per, func())
[c23_1, c23_2, c23_3, c23_4] = request.security(a23, per, func())
[c24_1, c24_2, c24_3, c24_4] = request.security(a24, per, func())
[c25_1, c25_2, c25_3, c25_4] = request.security(a25, per, func())
[c26_1, c26_2, c26_3, c26_4] = request.security(a26, per, func())
[c27_1, c27_2, c27_3, c27_4] = request.security(a27, per, func())
[c28_1, c28_2, c28_3, c28_4] = request.security(a288, per, func())
[c29_1, c29_2, c29_3, c29_4] = request.security(a29, per, func())
[c30_1, c30_2, c30_3, c30_4] = request.security(a30, per, func())
[c31_1, c31_2, c31_3, c31_4] = request.security(a31, per, func())
[c32_1, c32_2, c32_3, c32_4] = request.security(a32, per, func())
[c33_1, c33_2, c33_3, c33_4] = request.security(a33, per, func())
[c34_1, c34_2, c34_3, c34_4] = request.security(a34, per, func())
[c35_1, c35_2, c35_3, c35_4] = request.security(a35, per, func())
[c36_1, c36_2, c36_3, c36_4] = request.security(a36, per, func())
[c37_1, c37_2, c37_3, c37_4] = request.security(a37, per, func())
[c38_1, c38_2, c38_3, c38_4] = request.security(a388, per, func())
[c39_1, c39_2, c39_3, c39_4] = request.security(a39, per, func())
[c40_1, c40_2, c40_3, c40_4] = request.security(a40, per, func())
// Compose screener label //
scr_label1 = 'GÜÇLÜ TREND\n'
scr_label1 := c01_1 ? scr_label1 + a01 + ' ' + ' ' + '\n': scr_label1
scr_label1 := c02_1 ? scr_label1 + a02 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c03_1 ? scr_label1 + a03 + ' ' + ' ' + '\n': scr_label1
scr_label1 := c04_1 ? scr_label1 + a04 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c05_1 ? scr_label1 + a05 + ' ' + ' ' + '\n':scr_label1
scr_label1 := c06_1 ? scr_label1 + a06 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c07_1 ? scr_label1 + a07 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c08_1 ? scr_label1 + a08 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c09_1 ? scr_label1 + a09 + ' ' + ' ' + '\n': scr_label1
scr_label1 := c10_1 ? scr_label1 + a101 + ' ' + ' ' + '\n': scr_label1
scr_label1 := c11_1 ? scr_label1 + a11 + ' ' + ' ' + '\n': scr_label1
scr_label1 := c12_1 ? scr_label1 + a12 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c13_1 ? scr_label1 + a13 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c14_1 ? scr_label1 + a14 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c15_1 ? scr_label1 + a15 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c16_1 ? scr_label1 + a16 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c17_1 ? scr_label1 + a17 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c18_1 ? scr_label1 + a188 + ' ' + ' ' + '\n': scr_label1
scr_label1 := c19_1 ? scr_label1 + a19 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c20_1 ? scr_label1 + a20 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c21_1 ? scr_label1 + a21 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c22_1 ? scr_label1 + a22 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c23_1 ? scr_label1 + a23 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c24_1 ? scr_label1 + a24 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c25_1 ? scr_label1 + a25 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c26_1 ? scr_label1 + a26 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c27_1 ? scr_label1 + a27 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c28_1 ? scr_label1 + a288 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c29_1 ? scr_label1 + a29 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c30_1 ? scr_label1 + a30 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c31_1 ? scr_label1 + a31 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c32_1 ? scr_label1 + a32 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c33_1 ? scr_label1 + a33 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c34_1 ? scr_label1 + a34 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c35_1 ? scr_label1 + a35 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c36_1 ? scr_label1 + a36 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c37_1 ? scr_label1 + a37 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c38_1 ? scr_label1 + a388 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c39_1 ? scr_label1 + a39 + ' ' + ' ' + '\n' : scr_label1
scr_label1 := c40_1 ? scr_label1 + a40 + ' ' + ' ' + '\n' : scr_label1
scr_label2 = 'ZAYIF TREND\n'
scr_label2 := c01_2 ? scr_label2 + a01 + ' ' + ' ' + '\n' : scr_label2
scr_label2 := c02_2 ? scr_label2 + a02 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c03_2 ? scr_label2 + a03 + ' ' + ' '+ '\n' : scr_label2
scr_label2 := c04_2 ? scr_label2 + a04 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c05_2 ? scr_label2 + a05 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c06_2 ? scr_label2 + a06 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c07_2 ? scr_label2 + a07 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c08_2 ? scr_label2 + a08 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c09_2 ? scr_label2 + a09 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c10_2 ? scr_label2 + a101+ ' ' + ' ' + '\n': scr_label2
scr_label2 := c11_2 ? scr_label2 + a11 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c12_2 ? scr_label2 + a12 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c13_2 ? scr_label2 + a13 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c14_2 ? scr_label2 + a14 + ' ' + ' '+ '\n' : scr_label2
scr_label2 := c15_2 ? scr_label2 + a15 + ' ' + ' '+ '\n' : scr_label2
scr_label2 := c16_2 ? scr_label2 + a16 + ' ' + ' '+ '\n' : scr_label2
scr_label2 := c17_2 ? scr_label2 + a17 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c18_2 ? scr_label2 + a188 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c19_2 ? scr_label2 + a19 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c20_2 ? scr_label2 + a20 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c21_2 ? scr_label2 + a21 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c22_2 ? scr_label2 + a22 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c23_2 ? scr_label2 + a23 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c24_2 ? scr_label2 + a24 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c25_2 ? scr_label2 + s25 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c26_2 ? scr_label2 + a26 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c27_2 ? scr_label2 + a27 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c28_2 ? scr_label2 + a288 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c29_2 ? scr_label2 + a29 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c30_2 ? scr_label2 + a30 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c31_2 ? scr_label2 + a31 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c32_2 ? scr_label2 + a32 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c33_2 ? scr_label2 + a33 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c34_2 ? scr_label2 + a34 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c35_2 ? scr_label2 + a35 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c36_2 ? scr_label2 + a36 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c37_2 ? scr_label2 + s37 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c38_2 ? scr_label2 + a388 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c39_2 ? scr_label2 + a39 + ' ' + ' ' + '\n': scr_label2
scr_label2 := c40_2 ? scr_label2 + a40 + ' ' + ' ' + '\n': scr_label2
////////////////////
// /////////////////////LABEL3
scr_label3 = 'DET İYİ\n'
scr_label3 := c01_3 ? scr_label3 + a01 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c02_3 ? scr_label3 + a02 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c03_3 ? scr_label3 + a03 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c04_3 ? scr_label3 + a04 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c05_3 ? scr_label3 + a05 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c06_3 ? scr_label3 + a06 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c07_3 ? scr_label3 + a07 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c08_3 ? scr_label3 + a08 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c09_3 ? scr_label3 + a09 + ' ' + ' ' + '\n' : scr_label3
scr_label3 := c10_3 ? scr_label3 + a101 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c11_3 ? scr_label3 + a11 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c12_3 ? scr_label3 + a12 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c13_3 ? scr_label3 + a13 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c14_3 ? scr_label3 + a14 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c15_3 ? scr_label3 + a15 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c16_3 ? scr_label3 + a16 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c17_3 ? scr_label3 + a17 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c18_3 ? scr_label3 + a188 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c19_3 ? scr_label3 + a19 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c20_3 ? scr_label3 + a20 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c21_3 ? scr_label3 + a21 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c22_3 ? scr_label3 + a22 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c23_3 ? scr_label3 + a23 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c24_3 ? scr_label3 + a24 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c25_3 ? scr_label3 + s25 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c26_3 ? scr_label3 + a26 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c27_3 ? scr_label3 + a27 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c28_3 ? scr_label3 + a288 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c29_3 ? scr_label3 + a29 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c30_3 ? scr_label3 + a30 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c31_3 ? scr_label3 + a31 + ' ' + ' ' + '\n' : scr_label3
scr_label3 := c32_3 ? scr_label3 + a32 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c33_3 ? scr_label3 + a33 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c34_3 ? scr_label3 + a34 + ' ' + ' ' + '\n' : scr_label3
scr_label3 := c35_3 ? scr_label3 + a35 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c36_3 ? scr_label3 + a36 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c37_3 ? scr_label3 + s37 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c38_3 ? scr_label3 + a388 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c39_3 ? scr_label3 + a39 + ' ' + ' ' + '\n': scr_label3
scr_label3 := c40_3 ? scr_label3 + a40 + ' ' + ' ' + '\n': scr_label3
// // /////////////////////LABEL4
scr_label4 = 'DET ZAYIF\n'
scr_label4 := c01_4 ? scr_label4 + a01 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c02_4 ? scr_label4 + a02 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c03_4 ? scr_label4 + a03 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c04_4 ? scr_label4 + a04 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c05_4 ? scr_label4 + a05 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c06_4 ? scr_label4 + a06 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c07_4 ? scr_label4 + a07 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c08_4 ? scr_label4 + a08 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c09_4 ? scr_label4 + a09 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c10_4 ? scr_label4 + a101 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c11_4 ? scr_label4 + a11 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c12_4 ? scr_label4 + a12 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c13_4 ? scr_label4 + a13 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c14_4 ? scr_label4 + a14 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c15_4 ? scr_label4 + a15 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c16_4 ? scr_label4 + a16 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c17_4 ? scr_label4 + a17 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c18_4 ? scr_label4 + a188 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c19_4 ? scr_label4 + a19 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c20_4 ? scr_label4 + a20 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c21_4 ? scr_label4 + a21 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c22_4 ? scr_label4 + a22 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c23_4 ? scr_label4 + a23 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c24_4 ? scr_label4 + a24 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c25_4 ? scr_label4 + s25 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c26_4 ? scr_label4 + a26 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c27_4 ? scr_label4 + a27 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c28_4 ? scr_label4 + a288 + ' ' + ' '+ '\n': scr_label4
scr_label4 := c29_4 ? scr_label4 + a29 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c30_4 ? scr_label4 + a30 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c31_4 ? scr_label4 + a31 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c32_4 ? scr_label4 + a32 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c33_4 ? scr_label4 + a33 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c34_4 ? scr_label4 + a34 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c35_4 ? scr_label4 + a35 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c36_4 ? scr_label4 + a36 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c37_4 ? scr_label4 + s37 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c38_4 ? scr_label4 + a388 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c39_4 ? scr_label4 + a39 + ' ' + ' ' + '\n': scr_label4
scr_label4 := c40_4 ? scr_label4 + a40 + ' ' + ' ' + '\n': scr_label4
scr_label1 := scr_label1 + '\n'
scr_label2 := scr_label2 + '\n'
scr_label3 := scr_label3 + '\n'
scr_label4 := scr_label4 + '\n'
lab_1 = label.new(bar_index + loc1, close, scr_label1, color=color.green, textcolor=color.white, style=label.style_label_center)
lab_2 = label.new(bar_index + loc2, close, scr_label2, color=color.red, textcolor=color.white, style=label.style_label_center)
lab_3 = label.new(bar_index + loc3, close, scr_label3, color=#03bbf8, textcolor=color.white, style=label.style_label_center)
lab_4 = label.new(bar_index + loc4, close, scr_label4, color=color.rgb(248, 3, 207), textcolor=color.white, style=label.style_label_center)
// Önceki etiketi sil
label.delete(lab_1[1])
label.delete(lab_2[1])
label.delete(lab_3[1])
label.delete(lab_4[1])
Bu kod, Pine Script'te yazılmış bir TradingView göstergesidir ve temel olarak iki ana işlevi vardır:
5 farklı dönem ve standart sapma ayarına sahip regresyon kanalları çizer
Her kanal için üst, orta (regresyon çizgisi) ve alt bantlar gösterilir
Kanallar farklı renklerle gösterilir ve bağımsız olarak açılıp kapatılabilir
Korelasyon (COR) ve determinasyon (R²) katsayılarını gösteren etiketler ekler
Bu, sorduğunuz kısmın temel işlevidir:
Grup Seçimi: 14 önceden tanımlanmış BIST hisse grubundan birini veya özel liste seçebilirsiniz
40 Hisse Taraması: Seçilen gruptaki 40 hisseyi belirli kriterlere göre tarar
4 Farklı Filtre:
GÜÇLÜ TREND: Korelasyon > 0.90 (pozitif güçlü trend)
ZAYIF TREND: Korelasyon < -0.90 (negatif güçlü trend)
DET İYİ: R² > 0.85 (açıklama gücü yüksek)
DET ZAYIF: R² < 0.05 (açıklama gücü çok düşük)
4 farklı renkte etiket (label) oluşturur:
Yeşil: Güçlü trend hisseleri
Kırmızı: Zayıf trend hisseleri
Mavi: Determinasyonu iyi hisseler
Pembe: Determinasyonu zayıf hisseler
Etiketler grafik üzerinde yatay olarak konumlandırılabilir
Periyot seçimi: Farklı zaman dilimlerinde tarama yapabilirsiniz
40 adet hisseyi manuel olarak girebilirsiniz
Bu, standart gruplar dışında özel portföy analizi yapmanızı sağlar
Sonuçta, bu gösterge hem teknik analiz için regresyon kanalları sunar, hem de çok sayıda hisseyi otomatik olarak tarayıp filtreleyerek hangi hisselerin belirli trend özelliklerine sahip olduğunu hızlıca görmenizi sağlar. Özellikle portföy yönetimi ve hisse seçimi için kullanışlı bir araçtır.