0% found this document useful (0 votes)
335 views10 pages

Trend Alsat

Uploaded by

mc4nfyvwkm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
335 views10 pages

Trend Alsat

Uploaded by

mc4nfyvwkm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 10

// This source code is subject to the terms of the Mozilla Public License 2.

0 at
https://mozilla.org/MPL/2.0/
// ©alpergunger

//@version=5
indicator('TREND - ALSAT', overlay=true)

// Variables
var ok = 0
var countBuy = 0
var countSell = 0
src = input(close, title='OHLC Type')
i_fastEMA = input(12, title='Fast EMA')
i_slowEMA = input(25, title='Slow EMA')
i_defEMA = input(25, title='Consolidated EMA')

// Allow the option to show single or double EMA


i_bothEMAs = input(title='Show Both EMAs', defval=true)

// Define EMAs
v_fastEMA = ta.ema(src, i_fastEMA)
v_slowEMA = ta.ema(src, i_slowEMA)
v_biasEMA = ta.ema(src, i_defEMA)

// Color the EMAs


emaColor = v_fastEMA > v_slowEMA ? color.green : v_fastEMA < v_slowEMA ?
color.red : #FF530D

// Plot EMAs
plot(i_bothEMAs ? na : v_biasEMA, color=emaColor, linewidth=5, title='Consolidated
EMA')
plot(i_bothEMAs ? v_fastEMA : na, title='Fast EMA', color=emaColor,linewidth = 3)
plot(i_bothEMAs ? v_slowEMA : na, title='Slow EMA', color=emaColor,linewidth = 3)

// Colour the bars


buy = v_fastEMA > v_slowEMA
sell = v_fastEMA < v_slowEMA

if buy
countBuy += 1
countBuy

if buy
countSell := 0
countSell

if sell
countSell += 1
countSell

if sell
countBuy := 0
countBuy

buysignal = countBuy < 2 and countBuy > 0 and countSell < 1 and buy and not buy[1]
sellsignal = countSell > 0 and countSell < 2 and countBuy < 1 and sell and not
sell[1]

barcolor(buysignal ? #044ffd : na)


barcolor(sellsignal ? color.rgb(0, 0, 0) : na)

// Plot Bull/Bear

plotshape(buysignal, title='Bull', text='AL', style=shape.triangleup,


location=location.belowbar, color=color.new(color.green, 0),
textcolor=color.rgb(25, 27, 25), size=size.tiny)
plotshape(sellsignal, title='Bear', text='SAT', style=shape.triangledown,
location=location.abovebar, color=color.new(color.red, 0), textcolor=color.rgb(27,
25, 25), size=size.tiny)

bull = countBuy > 1


bear = countSell > 1

barcolor(bull ? #2fff00 : na)


barcolor(bear ? #f42d8d : na)

// Set Alerts

alertcondition(ta.crossover(v_fastEMA, v_slowEMA), title='Bullish EMA Cross',


message='Bullish EMA crossover')
alertcondition(ta.crossunder(v_fastEMA, v_slowEMA), title='Bearish EMA Cross',
message='Bearish EMA Crossover')

// Stoch RSI code

smoothK = input.int(3, 'K', minval=1)


smoothD = input.int(3, 'D', minval=1)
lengthRSI = input.int(14, 'RSI Length', minval=1)
lengthStoch = input.int(14, 'Stochastic Length', minval=1)

rsi1 = ta.rsi(src, lengthRSI)


k = ta.sma(ta.stoch(rsi1, rsi1, rsi1, lengthStoch), smoothK)
d = ta.sma(k, smoothD)

bandno0 = input.int(80, minval=1, title='Upper Band', group='Bands (change this


instead of length in Style for Stoch RSI colour to work properly)')
bandno2 = input.int(50, minval=1, title='Middle Band', group='Bands (change this
instead of length in Style for Stoch RSI colour to work properly)')
bandno1 = input.int(20, minval=1, title='Lower Band', group='Bands (change this
instead of length in Style for Stoch RSI colour to work properly)')

// Alerts

crossoverAlertBgColourMidOnOff = input.bool(title='Crossover Alert Background


Colour (Middle Level) [ON/OFF]', group='Crossover Alerts', defval=false)
crossoverAlertBgColourOBOSOnOff = input.bool(title='Crossover Alert Background
Colour (OB/OS Level) [ON/OFF]', group='Crossover Alerts', defval=false)

crossoverAlertBgColourGreaterThanOnOff = input.bool(title='Crossover Alert >input


[ON/OFF]', group='Crossover Alerts', defval=false)
crossoverAlertBgColourLessThanOnOff = input.bool(title='Crossover Alert <input
[ON/OFF]', group='Crossover Alerts', defval=false)

maTypeChoice = input.string('EMA', title='MA Type', group='Moving Average',


options=['EMA', 'WMA', 'SMA', 'None'])
maSrc = input.source(close, title='MA Source', group='Moving Average')
maLen = input.int(200, minval=1, title='MA Length', group='Moving Average')
maValue = if maTypeChoice == 'EMA'
ta.ema(maSrc, maLen)
else if maTypeChoice == 'WMA'
ta.wma(maSrc, maLen)
else if maTypeChoice == 'SMA'
ta.sma(maSrc, maLen)
else
0

crossupCHECK = maTypeChoice == 'None' or open > maValue and maTypeChoice != 'None'


crossdownCHECK = maTypeChoice == 'None' or open < maValue and maTypeChoice !=
'None'

crossupalert = crossupCHECK and ta.crossover(k, d) and (k < bandno2 or d < bandno2)


crossdownalert = crossdownCHECK and ta.crossunder(k, d) and (k > bandno2 or d >
bandno2)
crossupOSalert = crossupCHECK and ta.crossover(k, d) and (k < bandno1 or d <
bandno1)
crossdownOBalert = crossdownCHECK and ta.crossunder(k, d) and (k > bandno0 or d >
bandno0)

aboveBandalert = ta.crossunder(k, bandno0)


belowBandalert = ta.crossover(k, bandno1)

bgcolor(color=crossupalert and crossoverAlertBgColourMidOnOff ? #4CAF50 :


crossdownalert and crossoverAlertBgColourMidOnOff ? #FF0000 : na, title='Crossover
Alert Background Colour (Middle Level)', transp=70)
bgcolor(color=crossupOSalert and crossoverAlertBgColourOBOSOnOff ? #fbc02d :
crossdownOBalert and crossoverAlertBgColourOBOSOnOff ? #000000 : na,
title='Crossover Alert Background Colour (OB/OS Level)', transp=70)

bgcolor(color=aboveBandalert and crossoverAlertBgColourGreaterThanOnOff ? #ff0014 :


crossdownalert and crossoverAlertBgColourMidOnOff ? #FF0000 : na, title='Crossover
Alert - K > Upper level', transp=70)
bgcolor(color=belowBandalert and crossoverAlertBgColourLessThanOnOff ? #4CAF50 :
crossdownalert and crossoverAlertBgColourMidOnOff ? #FF0000 : na, title='Crossover
Alert - K < Lower level', transp=70)

alertcondition(crossupalert or crossdownalert, title='Stoch RSI Crossover',


message='STOCH RSI CROSSOVER')

////////////////////////////////////////////////////////////7/////
gurupSec = input.string(defval='1', options=['1', '2', '3', '4', '5','6','7'],
group='Taraması yapılacak 40\'arlı gruplardan birini seçin', title='Grup seç')
per = input.timeframe(defval='', title='TimeFrame (Default hali grafikte seçili
olan)',group = "Tarama yapmak istediğiniz TimeFrame'ı seçin")
loc = input.int(defval=1, title='Konum Ayarı', minval = -100,maxval = 100 , step =
5, group='Tablonun konumunu belirleyin')

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

cro= buysignal
cru= sellsignal
direction = 0
direction := cro ? 1 : cru ? -1 : direction[1]

string gr_sc = 'TARAYICI'


string gr_sy = 'SIMGE'
string t00 = 'KISA-VADE SİNYALLERİ'
color c00 = #686868
lb_sh = input.bool(title='Etiket Göster', defval=true, group=gr_sc)
lb_sz = input.string(title='Etiket Boyu', options=['Auto', 'Minik', 'Küçük',
'Normal', 'Büyük', 'EnBüyük'], defval='Normal', group=gr_sc)
lb_xa = input.int(title='Yatay Eksen', defval=20, group=gr_sc, tooltip='X Ekseni
Etiket Yerleşimi')
lb_ya = input.int(title='Dikey Eksen', defval=1, group=gr_sc, tooltip='Y Ekseni
Etiket Yerleşimi')
lb_cl = input.color(title='Renkler', defval=#00bb00, group=gr_sc, inline='0')
lb_cs = input.color(title='', defval=#ff0000, group=gr_sc, inline='0')
sh01 = input.bool(title='01', defval=true, group=gr_sy, inline="01")
sh02 = input.bool(title='02', defval=true, group=gr_sy, inline="02")
sh03 = input.bool(title='03', defval=true, group=gr_sy, inline="03")
sh04 = input.bool(title='04', defval=true, group=gr_sy, inline="04")
sh05 = input.bool(title='05', defval=true, group=gr_sy, inline="05")
sh06 = input.bool(title='06', defval=true, group=gr_sy, inline="06")
sh07 = input.bool(title='07', defval=true, group=gr_sy, inline="07")
sh08 = input.bool(title='08', defval=true, group=gr_sy, inline="08")
sh09 = input.bool(title='09', defval=true, group=gr_sy, inline="09")
sh10 = input.bool(title='10', defval=true, group=gr_sy, inline="10")
sh11 = input.bool(title='11', defval=true, group=gr_sy, inline="11")
sh12 = input.bool(title='12', defval=true, group=gr_sy, inline="12")
sh13 = input.bool(title='13', defval=true, group=gr_sy, inline="13")
sh14 = input.bool(title='14', defval=true, group=gr_sy, inline="14")
sh15 = input.bool(title='15', defval=true, group=gr_sy, inline="15")
sh16 = input.bool(title='16', defval=true, group=gr_sy, inline="16")
sh17 = input.bool(title='17', defval=true, group=gr_sy, inline="17")
sh18 = input.bool(title='18', defval=true, group=gr_sy, inline="18")
sh19 = input.bool(title='19', defval=true, group=gr_sy, inline="19")
sh20 = input.bool(title='20', defval=true, group=gr_sy, inline="20")

//
sh21 = input.bool(title='21', defval=true, group=gr_sy, inline="21")
sh22 = input.bool(title='22', defval=true, group=gr_sy, inline="22")
sh23 = input.bool(title='23', defval=true, group=gr_sy, inline="23")
sh24 = input.bool(title='24', defval=true, group=gr_sy, inline="24")
sh25 = input.bool(title='25', defval=true, group=gr_sy, inline="25")
sh26 = input.bool(title='26', defval=true, group=gr_sy, inline="26")
sh27 = input.bool(title='27', defval=true, group=gr_sy, inline="27")
sh28 = input.bool(title='28', defval=true, group=gr_sy, inline="28")
sh29 = input.bool(title='29', defval=true, group=gr_sy, inline="29")
sh30 = input.bool(title='30', defval=true, group=gr_sy, inline="30")
sh31 = input.bool(title='31', defval=true, group=gr_sy, inline="31")
sh32 = input.bool(title='32', defval=true, group=gr_sy, inline="32")
sh33 = input.bool(title='33', defval=true, group=gr_sy, inline="33")
sh34 = input.bool(title='34', defval=true, group=gr_sy, inline="34")
sh35 = input.bool(title='35', defval=true, group=gr_sy, inline="35")
sh36 = input.bool(title='36', defval=true, group=gr_sy, inline="36")
sh37 = input.bool(title='37', defval=true, group=gr_sy, inline="37")
sh38 = input.bool(title='38', defval=true, group=gr_sy, inline="38")
sh39 = input.bool(title='39', defval=true, group=gr_sy, inline="39")
sh40 = input.bool(title='40', defval=true, group=gr_sy, inline="40")
//
tf01 = input.timeframe(title='', defval='', group=gr_sy, inline="01")
tf02 = input.timeframe(title='', defval='', group=gr_sy, inline="02")
tf03 = input.timeframe(title='', defval='', group=gr_sy, inline="03")
tf04 = input.timeframe(title='', defval='', group=gr_sy, inline="04")
tf05 = input.timeframe(title='', defval='', group=gr_sy, inline="05")
tf06 = input.timeframe(title='', defval='', group=gr_sy, inline="06")
tf07 = input.timeframe(title='', defval='', group=gr_sy, inline="07")
tf08 = input.timeframe(title='', defval='', group=gr_sy, inline="08")
tf09 = input.timeframe(title='', defval='', group=gr_sy, inline="09")
tf10 = input.timeframe(title='', defval='', group=gr_sy, inline="10")
tf11 = input.timeframe(title='', defval='', group=gr_sy, inline="11")
tf12 = input.timeframe(title='', defval='', group=gr_sy, inline="12")
tf13 = input.timeframe(title='', defval='', group=gr_sy, inline="13")
tf14 = input.timeframe(title='', defval='', group=gr_sy, inline="14")
tf15 = input.timeframe(title='', defval='', group=gr_sy, inline="15")
tf16 = input.timeframe(title='', defval='', group=gr_sy, inline="16")
tf17 = input.timeframe(title='', defval='', group=gr_sy, inline="17")
tf18 = input.timeframe(title='', defval='', group=gr_sy, inline="18")
tf19 = input.timeframe(title='', defval='', group=gr_sy, inline="19")
tf20 = input.timeframe(title='', defval='', group=gr_sy, inline="20")

//
tf21 = input.timeframe(title='', defval='', group=gr_sy, inline="21")
tf22 = input.timeframe(title='', defval='', group=gr_sy, inline="22")
tf23 = input.timeframe(title='', defval='', group=gr_sy, inline="23")
tf24 = input.timeframe(title='', defval='', group=gr_sy, inline="24")
tf25 = input.timeframe(title='', defval='', group=gr_sy, inline="25")
tf26 = input.timeframe(title='', defval='', group=gr_sy, inline="26")
tf27 = input.timeframe(title='', defval='', group=gr_sy, inline="27")
tf28 = input.timeframe(title='', defval='', group=gr_sy, inline="28")
tf29 = input.timeframe(title='', defval='', group=gr_sy, inline="29")
tf30 = input.timeframe(title='', defval='', group=gr_sy, inline="30")
tf31 = input.timeframe(title='', defval='', group=gr_sy, inline="31")
tf32 = input.timeframe(title='', defval='', group=gr_sy, inline="32")
tf33 = input.timeframe(title='', defval='', group=gr_sy, inline="33")
tf34 = input.timeframe(title='', defval='', group=gr_sy, inline="34")
tf35 = input.timeframe(title='', defval='', group=gr_sy, inline="35")
tf36 = input.timeframe(title='', defval='', group=gr_sy, inline="36")
tf37 = input.timeframe(title='', defval='', group=gr_sy, inline="37")
tf38 = input.timeframe(title='', defval='', group=gr_sy, inline="38")
tf39 = input.timeframe(title='', defval='', group=gr_sy, inline="39")
tf40 = input.timeframe(title='', defval='', group=gr_sy, inline="40")
//

s01 = input.symbol(title='', group=gr_sy, inline='01', defval='BIST:DOHOL')


s02 = input.symbol(title='', group=gr_sy, inline='02', defval='BIST:DOAS')
s03 = input.symbol(title='', group=gr_sy, inline='03', defval='BIST:FROTO')
s04 = input.symbol(title='', group=gr_sy, inline='04', defval='BIST:GUBRF')
s05 = input.symbol(title='', group=gr_sy, inline='05', defval='BIST:KCHOL')
s06 = input.symbol(title='', group=gr_sy, inline='06', defval='BIST:TOASO')
s07 = input.symbol(title='', group=gr_sy, inline='07', defval='BIST:TTRAK')
s08 = input.symbol(title='', group=gr_sy, inline='08', defval='BIST:THYAO')
s09 = input.symbol(title='', group=gr_sy, inline='09', defval='BIST:TUPRS')
s10 = input.symbol(title='', group=gr_sy, inline='10', defval='BIST:YKBNK')
s11 = input.symbol(title='', group=gr_sy, inline='11', defval='BIST:BIMAS')
s12 = input.symbol(title='', group=gr_sy, inline='12', defval='BIST:MGROS')
s13 = input.symbol(title='', group=gr_sy, inline='13', defval='BIST:AKSEN')
s14 = input.symbol(title='', group=gr_sy, inline='14', defval='BIST:SAHOL')
s15 = input.symbol(title='', group=gr_sy, inline='15', defval='BIST:EREGL')
s16 = input.symbol(title='', group=gr_sy, inline='16', defval='BIST:AKBNK')
s17 = input.symbol(title='', group=gr_sy, inline='17', defval='BIST:ASELS')
s18 = input.symbol(title='', group=gr_sy, inline='18', defval='BIST:SISE')
s19 = input.symbol(title='', group=gr_sy, inline='19', defval='BIST:TTKOM')
s20 = input.symbol(title='', group=gr_sy, inline='20', defval='BIST:AKSA')

//
s21 = input.symbol(title='', group=gr_sy, inline='21', defval='BIST:CCOLA')
s22 = input.symbol(title='', group=gr_sy, inline='22', defval='BIST:KOZAL')
s23 = input.symbol(title='', group=gr_sy, inline='23', defval='BIST:KOZAA')
s24 = input.symbol(title='', group=gr_sy, inline='24', defval='BIST:GARAN')
s25 = input.symbol(title='', group=gr_sy, inline='25', defval='BIST:ALARK')
s26 = input.symbol(title='', group=gr_sy, inline='26', defval='BIST:TAVHL')
s27 = input.symbol(title='', group=gr_sy, inline='27', defval='BIST:MAVI')
s28 = input.symbol(title='', group=gr_sy, inline='28', defval='BIST:ODAS')
s29 = input.symbol(title='', group=gr_sy, inline='29', defval='BIST:KORDS')
s30 = input.symbol(title='', group=gr_sy, inline='30', defval='BIST:KAREL')
s31 = input.symbol(title='', group=gr_sy, inline='31', defval='BIST:GWIND')
s32 = input.symbol(title='', group=gr_sy, inline='32', defval='BIST:NATEN')
s33 = input.symbol(title='', group=gr_sy, inline='33', defval='BIST:PGSUS')
s34 = input.symbol(title='', group=gr_sy, inline='34', defval='BIST:AGHOL')
s35 = input.symbol(title='', group=gr_sy, inline='35', defval='BIST:ISDMR')
s36 = input.symbol(title='', group=gr_sy, inline='36', defval='BIST:GOLTS')
s37 = input.symbol(title='', group=gr_sy, inline='37', defval='BIST:AKCNS')
s38 = input.symbol(title='', group=gr_sy, inline='38', defval='BIST:NUHCM')
s39 = input.symbol(title='', group=gr_sy, inline='39', defval='BIST:QUAGR')
s40 = input.symbol(title='', group=gr_sy, inline='40', defval='BIST:KLKIM')
//

f_screener(s) =>
int x = na
int y = na
z = color(na)
if s
x := direction
y := ta.barssince(x != x[1])
z := x == 1 ? lb_cl : x == -1 ? lb_cs : c00
[x, y, z]
//
f_bars(x) =>
r = ' [' + str.tostring(x) + '] '
//
f_size(x) =>
x == 'Minik' ? size.tiny :
x == 'Küçük' ? size.small :
x == 'Normal' ? size.normal :
x == 'Büyük' ? size.large :
x == 'EnBüyük' ? size.huge : size.auto
//
f_label(l, t, c) =>
r = string(na)
for i = l*2 to 0
r += '\n\n'
r += t
var label lb = na
label.delete(lb)
fix_allign = ta.highest(200)
lb := lb_sh ? label.new(
x=bar_index + lb_xa,
y=bar_index > 200 ? fix_allign * (1 + lb_ya / 1000) : hl2 * (1 + lb_ya /
1000),
text=r, textcolor=c, textalign=text.align_right,
style=label.style_label_left, size=f_size(lb_sz), color=#00000000) : na
[a01, b01, c01] = request.security(s01, tf01, f_screener(sh01))
[a02, b02, c02] = request.security(s02, tf02, f_screener(sh02))
[a03, b03, c03] = request.security(s03, tf03, f_screener(sh03))
[a04, b04, c04] = request.security(s04, tf04, f_screener(sh04))
[a05, b05, c05] = request.security(s05, tf05, f_screener(sh05))
[a06, b06, c06] = request.security(s06, tf06, f_screener(sh06))
[a07, b07, c07] = request.security(s07, tf07, f_screener(sh07))
[a08, b08, c08] = request.security(s08, tf08, f_screener(sh08))
[a09, b09, c09] = request.security(s09, tf09, f_screener(sh09))
[a10, b10, c10] = request.security(s10, tf10, f_screener(sh10))
[a11, b11, c11] = request.security(s11, tf11, f_screener(sh11))
[a12, b12, c12] = request.security(s12, tf12, f_screener(sh12))
[a13, b13, c13] = request.security(s13, tf13, f_screener(sh13))
[a14, b14, c14] = request.security(s14, tf14, f_screener(sh14))
[a15, b15, c15] = request.security(s15, tf15, f_screener(sh15))
[a16, b16, c16] = request.security(s16, tf16, f_screener(sh16))
[a17, b17, c17] = request.security(s17, tf17, f_screener(sh17))
[a18, b18, c18] = request.security(s18, tf18, f_screener(sh18))
[a19, b19, c19] = request.security(s19, tf19, f_screener(sh19))
[a20, b20, c20] = request.security(s20, tf20, f_screener(sh20))

[a21, b21, c21] = request.security(s21, tf21, f_screener(sh21))


[a22, b22, c22] = request.security(s22, tf22, f_screener(sh22))
[a23, b23, c23] = request.security(s23, tf23, f_screener(sh23))
[a24, b24, c24] = request.security(s24, tf24, f_screener(sh24))
[a25, b25, c25] = request.security(s25, tf25, f_screener(sh25))
[a26, b26, c26] = request.security(s26, tf26, f_screener(sh26))
[a27, b27, c27] = request.security(s27, tf27, f_screener(sh27))
[a28, b28, c28] = request.security(s28, tf28, f_screener(sh28))
[a29, b29, c29] = request.security(s29, tf29, f_screener(sh29))
[a30, b30, c30] = request.security(s30, tf30, f_screener(sh30))
[a31, b31, c31] = request.security(s31, tf31, f_screener(sh31))
[a32, b32, c32] = request.security(s32, tf32, f_screener(sh32))
[a33, b33, c33] = request.security(s33, tf33, f_screener(sh33))
[a34, b34, c34] = request.security(s34, tf34, f_screener(sh34))
[a35, b35, c35] = request.security(s35, tf35, f_screener(sh35))
[a36, b36, c36] = request.security(s36, tf36, f_screener(sh36))
[a37, b37, c37] = request.security(s37, tf37, f_screener(sh37))
[a38, b38, c38] = request.security(s38, tf38, f_screener(sh38))
[a39, b39, c39] = request.security(s39, tf39, f_screener(sh39))
[a40, b40, c40] = request.security(s40, tf40, f_screener(sh40))

t01 = a01 == 1 ? '▲' + f_bars(b01) + s01 : a01 == -1 ? '▼' + f_bars(b01) + s01 :


'■' + f_bars(b01) + s01
t02 = a02 == 1 ? '▲' + f_bars(b02) + s02 : a02 == -1 ? '▼' + f_bars(b02) + s02 :
'■' + f_bars(b02) + s02
t03 = a03 == 1 ? '▲' + f_bars(b03) + s03 : a03 == -1 ? '▼' + f_bars(b03) + s03 :
'■' + f_bars(b03) + s03
t04 = a04 == 1 ? '▲' + f_bars(b04) + s04 : a04 == -1 ? '▼' + f_bars(b04) + s04 :
'■' + f_bars(b04) + s04
t05 = a05 == 1 ? '▲' + f_bars(b05) + s05 : a05 == -1 ? '▼' + f_bars(b05) + s05 :
'■' + f_bars(b05) + s05
t06 = a06 == 1 ? '▲' + f_bars(b06) + s06 : a06 == -1 ? '▼' + f_bars(b06) + s06 :
'■' + f_bars(b06) + s06
t07 = a07 == 1 ? '▲' + f_bars(b07) + s07 : a07 == -1 ? '▼' + f_bars(b07) + s07 :
'■' + f_bars(b07) + s07
t08 = a08 == 1 ? '▲' + f_bars(b08) + s08 : a08 == -1 ? '▼' + f_bars(b08) + s08 :
'■' + f_bars(b08) + s08
t09 = a09 == 1 ? '▲' + f_bars(b09) + s09 : a09 == -1 ? '▼' + f_bars(b09) + s09 :
'■' + f_bars(b09) + s09
t10 = a10 == 1 ? '▲' + f_bars(b10) + s10 : a10 == -1 ? '▼' + f_bars(b10) + s10 :
'■' + f_bars(b10) + s10
t11 = a11 == 1 ? '▲' + f_bars(b11) + s11 : a11 == -1 ? '▼' + f_bars(b11) + s11 :
'■' + f_bars(b11) + s11
t12 = a12 == 1 ? '▲' + f_bars(b12) + s12 : a12 == -1 ? '▼' + f_bars(b12) + s12 :
'■' + f_bars(b12) + s12
t13 = a13 == 1 ? '▲' + f_bars(b13) + s13 : a13 == -1 ? '▼' + f_bars(b13) + s13 :
'■' + f_bars(b13) + s13
t14 = a14 == 1 ? '▲' + f_bars(b14) + s14 : a14 == -1 ? '▼' + f_bars(b14) + s14 :
'■' + f_bars(b14) + s14
t15 = a15 == 1 ? '▲' + f_bars(b15) + s15 : a15 == -1 ? '▼' + f_bars(b15) + s15 :
'■' + f_bars(b15) + s15
t16 = a16 == 1 ? '▲' + f_bars(b16) + s16 : a16 == -1 ? '▼' + f_bars(b16) + s16 :
'■' + f_bars(b16) + s16
t17 = a17 == 1 ? '▲' + f_bars(b17) + s17 : a17 == -1 ? '▼' + f_bars(b17) + s17 :
'■' + f_bars(b17) + s17
t18 = a18 == 1 ? '▲' + f_bars(b18) + s18 : a18 == -1 ? '▼' + f_bars(b18) + s18 :
'■' + f_bars(b18) + s18
t19 = a19 == 1 ? '▲' + f_bars(b19) + s19 : a19 == -1 ? '▼' + f_bars(b19) + s19 :
'■' + f_bars(b19) + s19
t20 = a20 == 1 ? '▲' + f_bars(b20) + s20 : a20 == -1 ? '▼' + f_bars(b20) + s20 :
'■' + f_bars(b20) + s20

t21 = a21 == 1 ? '▲' + f_bars(b21) + s21 : a21 == -1 ? '▼' + f_bars(b21) + s21 :


'■' + f_bars(b21) + s21
t22 = a22 == 1 ? '▲' + f_bars(b22) + s22 : a22 == -1 ? '▼' + f_bars(b22) + s22 :
'■' + f_bars(b22) + s22
t23 = a23 == 1 ? '▲' + f_bars(b23) + s23 : a23 == -1 ? '▼' + f_bars(b23) + s23 :
'■' + f_bars(b23) + s23
t24 = a24 == 1 ? '▲' + f_bars(b24) + s24 : a24 == -1 ? '▼' + f_bars(b24) + s24 :
'■' + f_bars(b24) + s24
t25 = a25 == 1 ? '▲' + f_bars(b25) + s25 : a25 == -1 ? '▼' + f_bars(b25) + s25 :
'■' + f_bars(b25) + s25
t26 = a26 == 1 ? '▲' + f_bars(b26) + s26 : a26 == -1 ? '▼' + f_bars(b26) + s26 :
'■' + f_bars(b26) + s26
t27 = a27 == 1 ? '▲' + f_bars(b27) + s27 : a27 == -1 ? '▼' + f_bars(b27) + s27 :
'■' + f_bars(b27) + s27
t28 = a28 == 1 ? '▲' + f_bars(b28) + s28 : a28 == -1 ? '▼' + f_bars(b28) + s28 :
'■' + f_bars(b28) + s28
t29 = a29 == 1 ? '▲' + f_bars(b29) + s29 : a29 == -1 ? '▼' + f_bars(b29) + s29 :
'■' + f_bars(b29) + s29
t30 = a30 == 1 ? '▲' + f_bars(b30) + s30 : a30 == -1 ? '▼' + f_bars(b30) + s30 :
'■' + f_bars(b30) + s30
t31 = a31 == 1 ? '▲' + f_bars(b31) + s31 : a31 == -1 ? '▼' + f_bars(b31) + s31 :
'■' + f_bars(b31) + s31
t32 = a32 == 1 ? '▲' + f_bars(b32) + s32 : a32 == -1 ? '▼' + f_bars(b32) + s32 :
'■' + f_bars(b32) + s32
t33 = a33 == 1 ? '▲' + f_bars(b33) + s33 : a33 == -1 ? '▼' + f_bars(b33) + s33 :
'■' + f_bars(b33) + s33
t34 = a34 == 1 ? '▲' + f_bars(b34) + s34 : a34 == -1 ? '▼' + f_bars(b34) + s34 :
'■' + f_bars(b34) + s34
t35 = a35 == 1 ? '▲' + f_bars(b35) + s35 : a35 == -1 ? '▼' + f_bars(b35) + s35 :
'■' + f_bars(b35) + s35
t36 = a36 == 1 ? '▲' + f_bars(b36) + s36 : a36 == -1 ? '▼' + f_bars(b36) + s36 :
'■' + f_bars(b36) + s36
t37 = a37 == 1 ? '▲' + f_bars(b37) + s37 : a37 == -1 ? '▼' + f_bars(b37) + s37 :
'■' + f_bars(b37) + s37
t38 = a38 == 1 ? '▲' + f_bars(b38) + s38 : a38 == -1 ? '▼' + f_bars(b38) + s38 :
'■' + f_bars(b38) + s38
t39 = a39 == 1 ? '▲' + f_bars(b39) + s39 : a39 == -1 ? '▼' + f_bars(b39) + s39 :
'■' + f_bars(b39) + s39
t40 = a40 == 1 ? '▲' + f_bars(b40) + s40 : a40 == -1 ? '▼' + f_bars(b40) + s40 :
'■' + f_bars(b40) + s40

f_label(0, t00, c00)


f_label(1, t01, c01)
f_label(2, t02, c02)
f_label(3, t03, c03)
f_label(4, t04, c04)
f_label(5, t05, c05)
f_label(6, t06, c06)
f_label(7, t07, c07)
f_label(8, t08, c08)
f_label(9, t09, c09)
f_label(10, t10, c10)
f_label(11, t11, c11)
f_label(12, t12, c12)
f_label(13, t13, c13)
f_label(14, t14, c14)
f_label(15, t15, c15)
f_label(16, t16, c16)
f_label(17, t17, c17)
f_label(18, t18, c18)
f_label(19, t19, c19)
f_label(20, t20, c20)

f_label(21, t21, c21)


f_label(22, t22, c22)
f_label(23, t23, c23)
f_label(24, t24, c24)
f_label(25, t25, c25)
f_label(26, t26, c26)
f_label(27, t27, c27)
f_label(28, t28, c28)
f_label(29, t29, c29)
f_label(30, t30, c30)
f_label(31, t31, c31)
f_label(32, t32, c32)
f_label(33, t33, c33)
f_label(34, t34, c34)
f_label(35, t35, c35)
f_label(36, t36, c36)
f_label(37, t37, c37)
f_label(38, t38, c38)
f_label(39, t39, c39)
f_label(40, t40, c40)

You might also like