Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
6.5 kB
7
Indexable
Never
var table Metric = table.new(position = position.middle_right, columns = 7, rows = 10,bgcolor =#770737 , frame_color =  #79767624,border_color =  #770737, border_width = 1, frame_width = 1,force_overlay = true) 
table.set_border_width(Metric, 2)
table.set_frame_width(Metric, 2)

table.cell(Metric,0,2, "π’π²π¬π­πžπ¦", text_color = color.rgb(96, 101, 111), bgcolor =#00000000,text_size = size.small,text_halign = text.align_center,text_valign = text.align_center)  
table.cell(Metric,1,2, text = "π’πœπ¨π«πž", text_color = color.rgb(96, 101, 111), bgcolor =#00000000,text_size = size.small,text_halign = text.align_center,text_valign = text.align_center)
table.cell(Metric,2,2, text = "𝐏𝐨𝐬𝐒𝐭𝐒𝐨𝐧", text_color = color.rgb(96, 101, 111), bgcolor =#00000000,text_size = size.small,text_halign = text.align_center,text_valign = text.align_center)
table.cell(Metric,3,2, text = "π‘π¨πœ", text_color = color.rgb(96, 101, 111), bgcolor =#00000000,text_size = size.small,text_halign = text.align_center,text_valign = text.align_center)



table.merge_cells(Metric,0,0,3,0)
table.cell(Metric,0,0," ~ 𝐕 𝐈 𝐒 𝐇 𝐕 𝐀 𝐌 ~ ",width=20,text_color = #ffffff,bgcolor =color.rgb(192, 192, 192),text_halign = text.align_center,text_valign = text.align_center,text_size = size.large)
 
table.cell(Metric,0,3, text = " 𝐕 𝐄 𝐆 𝐀  1",width=10, text_color =  #ffffff, bgcolor =#79767624,text_halign = text.align_center,text_valign = text.align_center)  
table.cell(Metric,1,3, text = str.tostring(math.round(TPI_medium,2)), width=10,text_color  = #001427,bgcolor=#79767624,text_halign = text.align_center,text_valign = text.align_center)
table.cell(Metric,2,3, text = score_medium ==1? "𝓑𝓾𝔂":"𝓒π“ͺ𝓼𝓱" , width=10,text_color  = score_medium ==1 ? color.rgb(42, 127, 98): color.rgb(202, 16, 87),bgcolor=#79767624,text_halign = text.align_center,text_valign = text.align_center)
table.cell(Metric,3,3, text = roc_TPI_medium>0? "⬆":roc_TPI_medium<0?"⬇":"-" , width=10,text_color  = roc_TPI_medium>0? color.rgb(42, 127, 98):roc_TPI_medium<0? color.rgb(202, 16, 87): #ffffff,bgcolor=#79767624,text_halign = text.align_center,text_valign = text.align_center)


table.cell(Metric,0,4, " 𝐕 𝐄 𝐆 𝐀  2 ", text_color =   #ffffff,bgcolor =#79767624,text_halign = text.align_center,text_valign = text.align_center)  
table.cell(Metric,1,4, text = str.tostring(math.round(TPI_medium2,2)), width=10,text_color  = #001427,bgcolor=#79767624,text_halign = text.align_center,text_valign = text.align_center)
table.cell(Metric,2,4, text = TPI_medium2 >0 ?"𝓑𝓾𝔂":"𝓒π“ͺ𝓼𝓱", text_color = TPI_medium2>0 ? color.rgb(42, 127, 98): color.rgb(202, 16, 87),bgcolor=#79767624,text_halign = text.align_center,text_valign = text.align_center)
table.cell(Metric,3,4, text = roc_TPI_medium2>0? "⬆":roc_TPI_medium2<0?"⬇":"-", text_color = roc_TPI_medium2>0? color.rgb(42, 127, 98):roc_TPI_medium2<0? color.rgb(202, 16, 87): #ffffff,bgcolor=#79767624,text_halign = text.align_center,text_valign = text.align_center)


table.cell(Metric,0,5, " 𝐕 𝐄 𝐆 𝐀  3 ", text_color =   #ffffff,bgcolor =#79767624,text_halign = text.align_center,text_valign = text.align_center)  
table.cell(Metric,1,5,  text = str.tostring(math.round(TPI_medium3,2)), width=10,text_color  = #001427,bgcolor=#79767624,text_halign = text.align_center,text_valign = text.align_center)
table.cell(Metric,2,5, text = TPI_medium3 >0 ?"𝓑𝓾𝔂":"𝓒π“ͺ𝓼𝓱", text_color = TPI_medium3>0 ? color.rgb(42, 127, 98): color.rgb(202, 16, 87),bgcolor=#79767624,text_halign = text.align_center,text_valign = text.align_center)
table.cell(Metric,3,5, text = roc_TPI_medium3>0? "⬆":roc_TPI_medium3<0?"⬇":"-", text_color = roc_TPI_medium3>0? color.rgb(42, 127, 98):roc_TPI_medium3<0? color.rgb(202, 16, 87): #ffffff,bgcolor=#79767624,text_halign = text.align_center,text_valign = text.align_center)


table.cell(Metric,0,6, "𝐀 𝐙 𝐔", text_color =  #ffffff, bgcolor =#79767624,text_halign = text.align_center,text_valign = text.align_center)  
table.cell(Metric,1,6, text = str.tostring(math.round(TPI_fast,2)), width=10,text_color  = #001427,bgcolor=#79767624,text_halign = text.align_center,text_valign = text.align_center)
table.cell(Metric,2,6, text = TPI_fast>0 ?"𝓑𝓾𝔂":"𝓒π“ͺ𝓼𝓱", text_color = TPI>0 ? color.rgb(42, 127, 98) :color.rgb(202, 16, 87),bgcolor=#79767624,text_halign = text.align_center,text_valign = text.align_center)
table.cell(Metric,3,6, text = roc_TPI_fast>0? "⬆":roc_TPI_fast<0?"⬇":"-", text_color = roc_TPI_fast>0? color.rgb(42, 127, 98):roc_TPI_fast<0? color.rgb(202, 16, 87): #ffffff,bgcolor=#79767624,text_halign = text.align_center,text_valign = text.align_center)


table.cell(Metric,0,7, "𝐌 𝐀 𝐍 𝐃 𝐀 ", text_color = #ffffff, bgcolor =#79767624,text_halign = text.align_center,text_valign = text.align_center)  
table.cell(Metric,1,7, text = str.tostring(math.round(TPI_slow,2)), width=10,text_color  = #001427,bgcolor=#79767624,text_halign = text.align_center,text_valign = text.align_center)
table.cell(Metric,2,7, text = TPI_coffee3 ==1 ?"𝓑𝓾𝔂":"𝓒π“ͺ𝓼𝓱", text_color = TPI_coffee3==1 ?  color.rgb(42, 127, 98) :color.rgb(202, 16, 87),bgcolor=#79767624,text_halign = text.align_center,text_valign = text.align_center)
table.cell(Metric,3,7, text = roc_TPI_slow>0? "⬆":roc_TPI_slow<0?"⬇":"-", text_color = roc_TPI_slow>0? color.rgb(42, 127, 98):roc_TPI_slow<0? color.rgb(202, 16, 87): #ffffff,bgcolor=#79767624,text_halign = text.align_center,text_valign = text.align_center)

table.merge_cells(Metric,0,8,3,8)
 
table.cell(Metric,0,9, "π“ππˆ ", text_color = #ffffff, bgcolor =#79767624,text_halign = text.align_center,text_valign = text.align_center)  
table.cell(Metric,1,9, text = str.tostring(math.round(TPI,2)), width=10,text_color  = #001427,bgcolor=#79767624,text_halign = text.align_center,text_valign = text.align_center)
table.cell(Metric,2,9, text = TPI>0 ?"𝓑𝓾𝔂":"𝓒π“ͺ𝓼𝓱", text_color = TPI>0  ?  color.rgb(42, 127, 98) :color.rgb(202, 16, 87),bgcolor=#79767624,text_halign = text.align_center,text_valign = text.align_center)
table.cell(Metric,3,9, text = roc_TPI>0? "⬆":roc_TPI_slow<0?"⬇":"-", text_color = roc_TPI>0? color.rgb(42, 127, 98):roc_TPI_slow<0? color.rgb(202, 16, 87): #ffffff,bgcolor=#79767624,text_halign = text.align_center,text_valign = text.align_center)
Leave a Comment