//@version=5
indicator(title="[AzMoh]_multiple_emas", format=[Link], precision=4, overlay
= true)
//==============================================
//////////////////////////////////
MAFun(source, length, type) =>
type == "SMA" ? [Link](source, length) : type == "DSMA" ? 2 * [Link](source,
length) - [Link]([Link](source, length), length) : type == "TSMA" ? 3 *
[Link](source, length) - 3 * [Link]([Link](source, length), length) +
[Link]([Link]([Link](source, length), length), length) : type == "EMA" ?
[Link](source, length) : type == "DEMA" ? 2 * [Link](source, length) -
[Link]([Link](source, length), length) : type == "TEMA" ? 3 * [Link](source,
length) - 3 * [Link]([Link](source, length), length) + [Link]([Link]([Link](source,
length), length), length) : type == "SMMA (RMA)" ? [Link](source, length) : type ==
"WMA" ? [Link](source, length) : type == "VWMA" ? [Link](source, length) : type ==
"HULL" ? [Link](source, length) : type == "LSMA" ? [Link](source, length, 0) :
type == "ALMA" ? [Link](source, length, 0.85, 6) : na
// TIMEFRAMES OPTIONS
ma9 = [Link](true, "9 ", inline = "0", group="MA")
ma9len = [Link](9, "", inline = "0", group="MA")
ma9src = [Link](close,"", inline = "0", group="MA")
ma9type = [Link]("EMA" , "" , options=["SMA","DSMA","TSMA",
"EMA","DEMA","TEMA", "SMMA (RMA)", "WMA", "VWMA", "HULL", "LSMA", "ALMA"] , inline
= "0", group="MA")
ma21 = [Link](true, "21 ", inline = "1", group="MA")
ma21len = [Link](21, "", inline = "1", group="MA")
ma21src = [Link](close,"", inline = "1", group="MA")
ma21type = [Link]("EMA" , "" , options=["SMA","DSMA","TSMA",
"EMA","DEMA","TEMA", "SMMA (RMA)", "WMA", "VWMA", "HULL", "LSMA", "ALMA"] , inline
= "1", group="MA")
ma35 = [Link](true, "35 ", inline = "2", group="MA")
ma35len = [Link](35, "", inline = "2", group="MA")
ma35src = [Link](close,"", inline = "2", group="MA")
ma35type = [Link]("EMA" , "" , options=["SMA","DSMA","TSMA",
"EMA","DEMA","TEMA", "SMMA (RMA)", "WMA", "VWMA", "HULL", "LSMA", "ALMA"] , inline
= "2", group="MA")
ma55 = [Link](true, "55 ", inline = "3", group="MA")
ma55len = [Link](55, "", inline = "3", group="MA")
ma55src = [Link](close,"", inline = "3", group="MA")
ma55type = [Link]("EMA" , "" , options=["SMA","DSMA","TSMA",
"EMA","DEMA","TEMA", "SMMA (RMA)", "WMA", "VWMA", "HULL", "LSMA", "ALMA"] , inline
= "3", group="MA")
ma100 = [Link](true, "100", inline = "4", group="MA")
ma100len = [Link](100, "", inline = "4", group="MA")
ma100src = [Link](close,"", inline = "4", group="MA")
ma100type = [Link]("EMA" , "" , options=["SMA","DSMA","TSMA",
"EMA","DEMA","TEMA", "SMMA (RMA)", "WMA", "VWMA", "HULL", "LSMA", "ALMA"] , inline
= "4", group="MA")
ma144 = [Link](true, "144", inline = "5", group="MA")
ma144len = [Link](144, "", inline = "5", group="MA")
ma144src = [Link](close,"", inline = "5", group="MA")
ma144type = [Link]("EMA" , "" , options=["SMA","DSMA","TSMA",
"EMA","DEMA","TEMA", "SMMA (RMA)", "WMA", "VWMA", "HULL", "LSMA", "ALMA"] , inline
= "5", group="MA")
ma200 = [Link](true, "200", inline = "6", group="MA")
ma200len = [Link](200, "", inline = "6", group="MA")
ma200src = [Link](close,"", inline = "6", group="MA")
ma200type = [Link]("EMA" , "" , options=["SMA","DSMA","TSMA",
"EMA","DEMA","TEMA", "SMMA (RMA)", "WMA", "VWMA", "HULL", "LSMA", "ALMA"] , inline
= "6", group="MA")
ma252 = [Link](true, "252", inline = "7", group="MA")
ma252len = [Link](252, "", inline = "7", group="MA")
ma252src = [Link](close,"", inline = "7", group="MA")
ma252type = [Link]("EMA" , "" , options=["SMA","DSMA","TSMA",
"EMA","DEMA","TEMA", "SMMA (RMA)", "WMA", "VWMA", "HULL", "LSMA", "ALMA"] , inline
= "7", group="MA")
// POSITION AND SIZE
Ucol = [Link](defval=#0000FF, title='', inline = "1", group = "Table")
Dcol = [Link](defval=#FFAD00, title='Colors', inline = "1", group = "Table")
PosTable = [Link](defval="Bottom Right", title="Position", options=["Top
Right", "Middle Right", "Bottom Right", "Top Center", "Middle Center", "Bottom
Center", "Top Left", "Middle Left", "Bottom Left"], group="Table Location & Size",
inline="1")
SizTable = [Link](defval="Auto", title="Size", options=["Auto", "Huge",
"Large", "Normal", "Small", "Tiny"], group="Table Location & Size", inline="1")
Pos1Table = PosTable == "Top Right" ? position.top_right : PosTable == "Middle
Right" ? position.middle_right : PosTable == "Bottom Right" ? position.bottom_right
: PosTable == "Top Center" ? position.top_center : PosTable == "Middle Center" ?
position.middle_center : PosTable == "Bottom Center" ? position.bottom_center :
PosTable == "Top Left" ? position.top_left : PosTable == "Middle Left" ?
position.middle_left : position.bottom_left
Siz1Table = SizTable == "Auto" ? [Link] : SizTable == "Huge" ? [Link] :
SizTable == "Large" ? [Link] : SizTable == "Normal" ? [Link] : SizTable ==
"Small" ? [Link] : [Link]
tbl = [Link](Pos1Table, 18, 30, frame_width=0, frame_color=#000000,
border_width=1, border_color=#000000)
// RSI CONFIGS
srcRSI = [Link](close, "Source ", inline="1", group="RSI configs")
lenRSI = [Link](14, "Length 100 ,1 ," , inline="1", group="RSI configs")
OB = [Link](70, "O.B", 0, 100, inline="1", group="RSI configs")
OS = [Link](30, "O.S", 0, 100, inline="1", group="RSI configs")
oscRSI = [Link](srcRSI, lenRSI)
ema9_ = MAFun(ma9src,ma9len,ma9type) //[Link](close, 9)
ema9c_ = close
ema9H_ = high
ema9L_ = low
ema9I_ = high[1]<high[2] and low[1]>low[2]
ema21_ = MAFun(ma21src,ma21len,ma21type) // [Link](close, 21)
ema21c_ = close
ema21H_ = high
ema21L_ = low
ema21I_ = close[1]>ema9_ and close[1]>ema21_ and oscRSI>40? 1 : close[1]<ema9_ and
close[1]<ema21_ and oscRSI<60? -1 : 0
ema35_ = MAFun(ma35src,ma35len,ma35type) //[Link](close, 50)
ema35c_ = close
ema35H_ = high
ema35L_ = low
ema35I_ = high<high[1] and low>low[1]
ema55_ = MAFun(ma55src,ma55len,ma55type)//[Link](close, 55)
ema55c_ = close
ema55H_ = high
ema55L_ = low
ema55I_ = high<high[1] and low>low[1]
ema100_ = MAFun(ma100src,ma100len,ma100type)//[Link](close, 100)
ema100c_ = close
ema100H_ = high
ema100L_ = low
//ema100I_ = high<high[1] and low>low[1]
ema144_ = MAFun(ma144src,ma144len,ma144type) //[Link](close, 144)
ema144c_ = close
ema144H_ = high
ema144L_ = low
ema144I_ = high<high[1] and low>low[1]
ema200_ = MAFun(ma200src,ma200len,ma200type)//[Link](close, 200)
ema200c_ = close
ema200H_ = high
ema200L_ = low
ema200I_ = high<high[1] and low>low[1]
ema252_ = MAFun(ma252src,ma252len,ma252type) //[Link](close, 252)
ema252c_ = close
ema252H_ = high
ema252L_ = low
ema252I_ = high<high[1] and low>low[1]
lensig = 14
len = 14
up = [Link](high)
down = -[Link](low)
plusDM = na(up) ? na : (up > down and up > 0 ? up : 0)
minusDM = na(down) ? na : (down > up and down > 0 ? down : 0)
trur = [Link]([Link], len)
plus = fixnan(100 * [Link](plusDM, len) / trur)
minus = fixnan(100 * [Link](minusDM, len) / trur)
sum = plus + minus
adx = 100 * [Link]([Link](plus - minus) / (sum == 0 ? 1 : sum), lensig)
ema100I_ = plus>minus?1:plus<minus?-1:0
//STOCHASTIC CONFIGS
lenK = [Link](14, "%K Lenght 1 ," , inline="1", group="STOCH configs")
smoothK = [Link](3, "%K Smoothing 1 ," , inline="1", group="STOCH configs")
lenD = [Link](3, "%D Smoothing 1 ," , inline="1", group="STOCH configs")
OB_1 = [Link](80, "O.B", 0, 100, inline="1", group="STOCH configs")
OS_1 = [Link](20, "O.S", 0, 100, inline="1", group="STOCH configs")
oscK = [Link]([Link](close, high, low, lenK), smoothK)
oscD = [Link](oscK, lenD)
box01 = [Link](true, "", inline = "0", group="Select Timeframe")
tf01 = [Link]("1", "", inline = "0", group="Select Timeframe")
box02 = [Link](true, "", inline = "0", group="Select Timeframe")
tf02 = [Link]("5", "", inline = "0", group="Select Timeframe")
box03 = [Link](true, "", inline = "0", group="Select Timeframe")
tf03 = [Link]("15", "", inline = "0", group="Select Timeframe")
box04 = [Link](true, "", inline = "1", group="Select Timeframe")
tf04 = [Link]("30", "", inline = "1", group="Select Timeframe")
box05 = [Link](true, "", inline = "1", group="Select Timeframe")
tf05 = [Link]("60", "", inline = "1", group="Select Timeframe")
box06 = [Link](true, "", inline = "1", group="Select Timeframe")
tf06 = [Link]("75", "", inline = "1", group="Select Timeframe")
box07 = [Link](true, "", inline = "2", group="Select Timeframe")
tf07 = [Link]("90", "", inline = "2", group="Select Timeframe")
box08 = [Link](true, "", inline = "2", group="Select Timeframe")
tf08 = [Link]("120", "", inline = "2", group="Select Timeframe")
box09 = [Link](true, "", inline = "2", group="Select Timeframe")
tf09 = [Link]("240", "", inline = "2", group="Select Timeframe")
box10 = [Link](true, "", inline = "3", group="Select Timeframe")
tf10 = [Link]("360", "", inline = "3", group="Select Timeframe")
box11 = [Link](true, "", inline = "3", group="Select Timeframe")
tf11 = [Link]("480", "", inline = "3", group="Select Timeframe")
box12 = [Link](true, "", inline = "3", group="Select Timeframe")
tf12 = [Link]("720", "", inline = "3", group="Select Timeframe")
box13 = [Link](true, "", inline = "4", group="Select Timeframe")
tf13 = [Link]("D", "", inline = "4", group="Select Timeframe")
box14 = [Link](true, "", inline = "4", group="Select Timeframe")
tf14 = [Link]("W", "", inline = "4", group="Select Timeframe")
box15 = [Link](true, "", inline = "4", group="Select Timeframe")
tf15 = [Link]("M", "", inline = "4", group="Select Timeframe")
// DEFINITION OF VALUES
symbol = [Link]([Link], [Link])
tfArr = [Link]<string>(na)
rsiArr = [Link]<float>(na)
ArrK = [Link]<float>(na)
ArrD = [Link]<float>(na)
Arr9 = [Link]<float>(na)
Arr9c = [Link]<float>(na)
Arr9H = [Link]<float>(na)
Arr9L = [Link]<float>(na)
Arr9I = [Link]<bool>(na)
Arr21 = [Link]<float>(na)
Arr21c = [Link]<float>(na)
Arr21H = [Link]<float>(na)
Arr21L = [Link]<float>(na)
Arr21I = [Link]<int>(na)
Arr35 = [Link]<float>(na)
Arr35c = [Link]<float>(na)
Arr35H = [Link]<float>(na)
Arr35L = [Link]<float>(na)
Arr35I = [Link]<bool>(na)
Arr55 = [Link]<float>(na)
Arr55c = [Link]<float>(na)
Arr55H = [Link]<float>(na)
Arr55L = [Link]<float>(na)
Arr55I = [Link]<bool>(na)
Arr100 = [Link]<float>(na)
Arr100c = [Link]<float>(na)
Arr100H = [Link]<float>(na)
Arr100L = [Link]<float>(na)
Arr100I = [Link]<int>(na)
Arr144 = [Link]<float>(na)
Arr144c = [Link]<float>(na)
Arr144H = [Link]<float>(na)
Arr144L = [Link]<float>(na)
Arr144I = [Link]<bool>(na)
Arr200 = [Link]<float>(na)
Arr200c = [Link]<float>(na)
Arr200H = [Link]<float>(na)
Arr200L = [Link]<float>(na)
Arr200I = [Link]<bool>(na)
Arr252 = [Link]<float>(na)
Arr252c = [Link]<float>(na)
Arr252H = [Link]<float>(na)
Arr252L = [Link]<float>(na)
Arr252I = [Link]<bool>(na)
// DEFINITIONS OF RSI & STOCH FUNCTIONS APPENDED IN THE TIMEFRAME OPTIONS
rsiNstochFun(tf, flg) =>
[rsi, stcK, stcD, ema9, ema9c, ema9H, ema9L, ema9I, ema21, ema21c, ema21H,
ema21L, ema21I, ema35, ema35c, ema35H, ema35L, ema35I, ema55, ema55c, ema55H,
ema55L, ema55I, ema100, ema100c, ema100H, ema100L, ema100I, ema144, ema144c,
ema144H, ema144L, ema144I, ema200, ema200c, ema200H, ema200L, ema200I, ema252,
ema252c, ema252H, ema252L, ema252I] = [Link](symbol, tf, [oscRSI, oscK,
oscD, ema9_, ema9c_, ema9H_, ema9L_, ema9I_, ema21_, ema21c_, ema21H_, ema21L_,
ema21I_,ema35_, ema35c_, ema35H_, ema35L_, ema35I_, ema55_, ema55c_, ema55H_,
ema55L_, ema55I_, ema100_, ema100c_, ema100H_, ema100L_, ema100I_, ema144_,
ema144c_, ema144H_, ema144L_, ema144I_,ema200_, ema200c_, ema200H_, ema200L_,
ema200I_,ema252_, ema252c_, ema252H_, ema252L_, ema252I_])
if flg and ([Link] ? true : timeframe.in_seconds([Link])
<= timeframe.in_seconds(tf))
[Link](tfArr, na(tf) ? [Link] : tf)
[Link](rsiArr, rsi)
[Link](ArrK, stcK)
[Link](ArrD, stcD)
[Link](Arr9, ema9)
[Link](Arr9c, ema9c)
[Link](Arr9H, ema9H)
[Link](Arr9L, ema9L)
[Link](Arr9I, ema9I)
[Link](Arr21, ema21)
[Link](Arr21c, ema21c)
[Link](Arr21H, ema21H)
[Link](Arr21L, ema21L)
[Link](Arr21I, ema21I)
[Link](Arr35, ema35)
[Link](Arr35c, ema35c)
[Link](Arr35H, ema35H)
[Link](Arr35L, ema35L)
[Link](Arr35I, ema35I)
[Link](Arr55, ema55)
[Link](Arr55c, ema55c)
[Link](Arr55H, ema55H)
[Link](Arr55L, ema55L)
[Link](Arr55I, ema55I)
[Link](Arr100, ema100)
[Link](Arr100c, ema100c)
[Link](Arr100H, ema100H)
[Link](Arr100L, ema100L)
[Link](Arr100I, ema100I)
[Link](Arr144, ema144)
[Link](Arr144c, ema144c)
[Link](Arr144H, ema144H)
[Link](Arr144L, ema144L)
[Link](Arr144I, ema144I)
[Link](Arr200, ema200)
[Link](Arr200c, ema200c)
[Link](Arr200H, ema200H)
[Link](Arr200L, ema200L)
[Link](Arr200I, ema200I)
[Link](Arr252, ema252)
[Link](Arr252c, ema252c)
[Link](Arr252H, ema252H)
[Link](Arr252L, ema252L)
[Link](Arr252I, ema252I)
rsiNstochFun(tf01, box01), rsiNstochFun(tf02, box02), rsiNstochFun(tf03, box03),
rsiNstochFun(tf04, box04),
rsiNstochFun(tf05, box05), rsiNstochFun(tf06, box06), rsiNstochFun(tf07, box07),
rsiNstochFun(tf08, box08),
rsiNstochFun(tf09, box09), rsiNstochFun(tf10, box10), rsiNstochFun(tf11, box11),
rsiNstochFun(tf12, box12),
rsiNstochFun(tf13, box13), rsiNstochFun(tf14, box14), rsiNstochFun(tf15, box15)
// TABLE AND CELLS CONFIG
// Post Timeframe in format
tfTxt(x)=>
out = x
if not [Link](x, "S") and not [Link](x, "M") and
not [Link](x, "W") and not [Link](x, "D")
if [Link](x)%60 == 0
out := [Link]([Link](x)/60)+"H"
else
out := x + "m"
out
if [Link]
[Link](tbl, 0, 0, 2, 16)
// TITLES
[Link](tbl, 0, 0, [Link]([Link]) + " ( " +
[Link](close) + " )", text_color=open<close?[Link](Ucol,0):open>close?
[Link](Dcol,0):#000000, text_size=Siz1Table, bgcolor=#FFFFFF)
table.merge_cells(tbl, 0, 0, 10, 0)
[Link](tbl, 0, 1, "⏱", text_color=#FFFFFF, text_size=Siz1Table,
bgcolor=#000000)
// [Link](tbl, 2, 1, "%K ("+[Link](lenK)+")", text_color=#FFFFFF,
text_size=Siz1Table, bgcolor=#000000)
[Link](tbl, 1, 1, "EMA9 ", text_color=#FFFFFF, text_size=Siz1Table,
bgcolor=#000000)
[Link](tbl, 2, 1, "EMA21 ", text_color=#FFFFFF, text_size=Siz1Table,
bgcolor=#000000)
[Link](tbl, 3, 1, "EMA35 ", text_color=#FFFFFF, text_size=Siz1Table,
bgcolor=#000000)
[Link](tbl, 4, 1, "EMA55 ", text_color=#FFFFFF, text_size=Siz1Table,
bgcolor=#000000)
[Link](tbl, 5, 1, "EMA100", text_color=#FFFFFF, text_size=Siz1Table,
bgcolor=#000000)
[Link](tbl, 6, 1, "EMA144", text_color=#FFFFFF, text_size=Siz1Table,
bgcolor=#000000)
[Link](tbl, 7, 1, "EMA200", text_color=#FFFFFF, text_size=Siz1Table,
bgcolor=#000000)
[Link](tbl, 8, 1, "EMA252", text_color=#FFFFFF, text_size=Siz1Table,
bgcolor=#000000)
[Link](tbl, 9, 1, "RSI("+[Link](lenRSI)+")", text_color=#FFFFFF,
text_size=Siz1Table, bgcolor=#000000)
[Link](tbl, 10, 1, "I_Bar", text_color=#FFFFFF, text_size=Siz1Table,
bgcolor=#000000)
j = 2
if [Link](rsiArr) > 0
for i = 0 to [Link](rsiArr) - 1
if not na([Link](rsiArr, i))
//config values in the cells
TF_VALUE = [Link](tfArr,i)
RSI_VALUE = [Link](rsiArr, i)
K_VALUE = [Link](ArrK, i)
D_VALUE = [Link](ArrD, i)
ema9_VALUE = [Link](Arr9, i)
ema9c_VALUE = [Link](Arr9c, i)
ema9H_VALUE = [Link](Arr9H, i)
ema9L_VALUE = [Link](Arr9L, i)
ema9I_VALUE = [Link](Arr9I, i)
ema21_VALUE = [Link](Arr21, i)
ema21c_VALUE = [Link](Arr21c, i)
ema21H_VALUE = [Link](Arr21H, i)
ema21L_VALUE = [Link](Arr21L, i)
ema21I_VALUE = [Link](Arr21I, i)
ema35_VALUE = [Link](Arr35, i)
ema35c_VALUE = [Link](Arr35c, i)
ema35H_VALUE = [Link](Arr35H, i)
ema35L_VALUE = [Link](Arr35L, i)
ema35I_VALUE = [Link](Arr35I, i)
ema55_VALUE = [Link](Arr55, i)
ema55c_VALUE = [Link](Arr55c, i)
ema55H_VALUE = [Link](Arr55H, i)
ema55L_VALUE = [Link](Arr55L, i)
ema55I_VALUE = [Link](Arr55I, i)
ema100_VALUE = [Link](Arr100, i)
ema100c_VALUE = [Link](Arr100c, i)
ema100H_VALUE = [Link](Arr100H, i)
ema100L_VALUE = [Link](Arr100L, i)
ema100I_VALUE = [Link](Arr100I, i)
ema144_VALUE = [Link](Arr144, i)
ema144c_VALUE = [Link](Arr144c, i)
ema144H_VALUE = [Link](Arr144H, i)
ema144L_VALUE = [Link](Arr144L, i)
ema144I_VALUE = [Link](Arr144I, i)
ema200_VALUE = [Link](Arr200, i)
ema200c_VALUE = [Link](Arr200c, i)
ema200H_VALUE = [Link](Arr200H, i)
ema200L_VALUE = [Link](Arr200L, i)
ema200I_VALUE = [Link](Arr200I, i)
ema252_VALUE = [Link](Arr252, i)
ema252c_VALUE = [Link](Arr252c, i)
ema252H_VALUE = [Link](Arr252H, i)
ema252L_VALUE = [Link](Arr252L, i)
ema252I_VALUE = [Link](Arr252I, i)
SIGNAL = K_VALUE > D_VALUE ? "▲" : K_VALUE < D_VALUE ? "▼" : na
SIGNAL0 = ema9I_VALUE?"IB" : na
SIGNAL1 = ema9c_VALUE > ema9_VALUE ? "▲" : ema9c_VALUE < ema9_VALUE
? "▼" : na
SIGNAL2 = ema21c_VALUE > ema21_VALUE ? "▲" : ema21c_VALUE <
ema21_VALUE ? "▼" : na
SIGNAL3 = ema35c_VALUE > ema35_VALUE ? "▲" : ema35c_VALUE <
ema35_VALUE ? "▼" : na
SIGNAL4 = ema55c_VALUE > ema55_VALUE ? "▲" : ema55c_VALUE <
ema55_VALUE ? "▼" : na
SIGNAL5 = ema100c_VALUE > ema100_VALUE ? "▲" : ema100c_VALUE <
ema100_VALUE ? "▼" : na
SIGNAL6 = ema144c_VALUE > ema144_VALUE ? "▲" : ema144c_VALUE <
ema144_VALUE ? "▼" : na
SIGNAL7 = ema200c_VALUE > ema200_VALUE ? "▲" : ema200c_VALUE <
ema200_VALUE ? "▼" : na
SIGNAL8 = ema252c_VALUE > ema252_VALUE ? "▲" : ema252c_VALUE <
ema252_VALUE ? "▼" : na
//config colors in the the cells
//rsi
cond0 = ([Link](rsiArr,i)) > 40 and (([Link](Arr9c,i)) >
([Link](Arr9,i))) and (([Link](Arr9c,i)) > ([Link](Arr21,i)))
?[Link](Ucol, 0): ([Link](rsiArr,i)) < 60 and
(([Link](Arr9c,i)) < ([Link](Arr9,i))) and (([Link](Arr9c,i)) <
([Link](Arr21,i)))
?[Link](Dcol, 0):[Link](#808080, 0)
cond0x = ([Link](Arr100I,i))==1?[Link](Ucol, 50):
([Link](Arr100I,i))==-1?[Link](Dcol, 50):[Link](#808080, 50)
cond1 = ([Link](rsiArr,i)) >= OB
cond2 = ([Link](rsiArr, i)) <= OS
cond9x = ([Link](Arr9c,i)) > ([Link](Arr9,i))
cond9y = ([Link](Arr9c,i)) < ([Link](Arr9,i))
cond9Ix = ([Link](Arr9I,i))
cond9Iy = not ([Link](Arr9I,i))
cond21x = ([Link](Arr21c,i)) > ([Link](Arr21,i))
cond21y = ([Link](Arr21c,i)) < ([Link](Arr21,i))
cond35x = ([Link](Arr35c,i)) > ([Link](Arr35,i))
cond35y = ([Link](Arr35c,i)) < ([Link](Arr35,i))
cond55x = ([Link](Arr55c,i)) > ([Link](Arr55,i))
cond55y = ([Link](Arr55c,i)) < ([Link](Arr55,i))
cond100x = ([Link](Arr100c,i)) > ([Link](Arr100,i))
cond100y = ([Link](Arr100c,i)) < ([Link](Arr100,i))
cond144x = ([Link](Arr144c,i)) > ([Link](Arr144,i))
cond144y = ([Link](Arr144c,i)) < ([Link](Arr144,i))
cond200x = ([Link](Arr200c,i)) > ([Link](Arr200,i))
cond200y = ([Link](Arr200c,i)) < ([Link](Arr200,i))
cond252x = ([Link](Arr252c,i)) > ([Link](Arr252,i))
cond252y = ([Link](Arr252c,i)) < ([Link](Arr252,i))
//stochastic
cond3 = ([Link](ArrK,i)) >= OB_1
cond4 = ([Link](ArrK,i)) <= OS_1
cellRSI = cond1 ? [Link](Dcol,80) : cond2 ?
[Link](Ucol,80) : not cond1 and not cond2 ? [Link](#808080,80) : na
cell9 = cond9y ? [Link](Dcol,80) : cond9x ?
[Link](Ucol,80) : not cond9x and not cond9y ? [Link](#808080,80): na
cell9I = cond9Ix ? [Link]: #808080
cell21 = cond21y ? [Link](Dcol,80) : cond21x ?
[Link](Ucol,80) : not cond21x and not cond21y ? [Link](#808080,80) : na
cell35 = cond35y ? [Link](Dcol,80) : cond35x ?
[Link](Ucol,80) : not cond35x and not cond35y ? [Link](#808080,80) : na
cell55 = cond55y ? [Link](Dcol,80) : cond55x ?
[Link](Ucol,80) : not cond55x and not cond55y ? [Link](#808080,80) : na
cell100 = cond100y ? [Link](Dcol,80) : cond100x ?
[Link](Ucol,80) : not cond100x and not cond100y ? [Link](#808080,80) : na
cell144 = cond144y ? [Link](Dcol,80) : cond144x ?
[Link](Ucol,80) : not cond144x and not cond144y ? [Link](#808080,80) : na
cell200 = cond200y ? [Link](Dcol,80) : cond200x ?
[Link](Ucol,80) : not cond200x and not cond200y ? [Link](#808080,80) : na
cell252 = cond252y ? [Link](Dcol,80) : cond252x ?
[Link](Ucol,80) : not cond252x and not cond252y ? [Link](#808080,80) : na
txtRSI = cond1 ? Dcol : cond2 ? Ucol : not cond1 and not cond2 ?
#808080 : na
txt9 = cond9y ? Dcol : cond9x ? Ucol : not cond9x and not cond9y ?
#808080 : na
txt9I = cond9Ix ? [Link] : na
txt21 = cond21y ? Dcol : cond21x ? Ucol : not cond21x and not
cond21y ? #808080 : na
txt35 = cond35y ? Dcol : cond35x ? Ucol : not cond35x and not
cond35y ? #808080 : na
txt55 = cond55y ? Dcol : cond55x ? Ucol : not cond55x and not
cond55y ? #808080 : na
txt100 = cond100y ? Dcol : cond100x ? Ucol : not cond100x and not
cond100y ? #808080 : na
txt144 = cond144y ? Dcol : cond144x ? Ucol : not cond144x and not
cond144y ? #808080 : na
txt200 = cond200y ? Dcol : cond200x ? Ucol : not cond200x and not
cond200y ? #808080 : na
txt252 = cond252y ? Dcol : cond252x ? Ucol : not cond252x and not
cond252y ? #808080 : na
[Link](tbl, 0, j, tfTxt(TF_VALUE), text_color=#FFFFFF,
text_halign=text.align_left, bgcolor=cond0, text_size = Siz1Table)
[Link](tbl, 1, j, [Link](ema9_VALUE, [Link]) +
SIGNAL1, text_color=txt9, text_halign=text.align_right, bgcolor=cell9, text_size =
Siz1Table)
[Link](tbl, 2, j, [Link](ema21_VALUE, [Link]) +
SIGNAL2, text_color=txt21, text_halign=text.align_right, bgcolor=cell21, text_size
= Siz1Table)
[Link](tbl, 3, j, [Link](ema35_VALUE, [Link]) +
SIGNAL3, text_color=txt35, text_halign=text.align_right, bgcolor=cell35, text_size
= Siz1Table)
[Link](tbl, 4, j, [Link](ema55_VALUE, [Link]) +
SIGNAL4, text_color=txt55, text_halign=text.align_right, bgcolor=cell55, text_size
= Siz1Table)
[Link](tbl, 5, j, [Link](ema100_VALUE, [Link]) +
SIGNAL5, text_color=txt100, text_halign=text.align_right, bgcolor=cell100,
text_size = Siz1Table)
[Link](tbl, 6, j, [Link](ema144_VALUE, [Link]) +
SIGNAL6, text_color=txt144, text_halign=text.align_right, bgcolor=cell144,
text_size = Siz1Table)
[Link](tbl, 7, j, [Link](ema200_VALUE, [Link]) +
SIGNAL7, text_color=txt200, text_halign=text.align_right, bgcolor=cell200,
text_size = Siz1Table)
[Link](tbl, 8, j, [Link](ema252_VALUE, [Link]) +
SIGNAL8, text_color=txt252, text_halign=text.align_right, bgcolor=cell252,
text_size = Siz1Table)
[Link](tbl, 9, j, [Link](RSI_VALUE,
[Link]),text_color=txtRSI, text_halign=text.align_right, bgcolor=cellRSI,
text_size = Siz1Table)
[Link](tbl, 10, j, SIGNAL0, text_color=[Link],
text_halign=text.align_center, bgcolor=cell9I, text_size = Siz1Table)
j += 1