pachi 楼主 : //@version =5//pachito83指标(“多时间框架 RSI 表”,overlay=true)var 表 rsi_table = table.new(position.top_right,10、2,border_width=0)B_Clr = color.rgb (8, 8, 8, 35)B_Grn = color.rgb (44, 106, 44, 20) B_Red = #701919ccB_Main = color.rgb (20, 20, 20, 20)T_Font = 字体.family_monospacet_size = 大小。正常tcolor = color.whitewclor = color.white//获取给定时间范围内的 RSI 的函数get_rsi (tf) => request.security(syminfo.tickerid、tf、ta.rsi(关闭,14))//用 RSI 值填充表格table.cell(rsi_table,0,0,“RSI”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)table.cell(rsi_table,0,1,str.tostring(syminfo.ticker),bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)table.cell(rsi_table,1,0,“1M”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)table.cell(rsi_table,1、1、str.tostring(math.round(get_rsi(“1"))),bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)table.cell(rsi_table,2,0,“5M”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)table.cell(rsi_table,2、1、str.tostring(math.round(get_rsi(“5"))),bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)table.cell(rsi_table,3,0,“15M”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)table.cell(rsi_table,3、1、str.tostring(math.round(get_rsi(“15”))、bgcolor = B_Clr、text_size = T_size、text_font_family = T_Font、text_color = wclor)
pachi 楼主 : table.cell(rsi_table,4,0,“30M”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)table.cell(rsi_table,4、1、str.tostring(math.round(get_rsi(“30”))、bgcolor = B_Clr、text_size = T_size、text_font_family = T_Font、text_color = wclor)table.cell(rsi_table,5,0,“1H”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)table.cell(rsi_table,5、1,str.tostring(math.round(get_rsi(“60”)),bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)table.cell(rsi_table,5,0,“2H”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)table.cell(rsi_table,5、1、str.tostring(math.round(get_rsi(“120”))、bgcolor = B_Clr、text_size = T_size、text_font_family = T_Font、text_color = wclor)table.cell(rsi_table,6,0,“4H”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)table.cell(rsi_table,6、1、str.tostring(math.round(get_rsi(“240”))、bgcolor = B_Clr、text_size = T_size、text_font_family = T_Font、text_color = wclor)table.cell(rsi_table,7,0,“D”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)table.cell(rsi_table,7、1、str.tostring(math.round(get_rsi(“D”))、bgcolor = B_Clr、text_size = T_size、text_font_family = T_Font、text_color = wclor)table.cell(rsi_table,8,0,“W”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)table.cell(rsi_table,8,1,str.tostring(math.round(get_rsi(“W”)),bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)table.cell(rsi_table,9,0,“M”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)table.cell(rsi_table,9、1、str.tostring(math.round(get_rsi(“M”))、bgcolor = B_Clr、text_size = T_size、text_font_family = T_Font、text_color = wclor)
pachi 楼主 : //@version =5
//pachito83
指标(“多时间框架 RSI 表”,overlay=true)
var 表 rsi_table = table.new(position.top_right,10、2,border_width=0)
B_Clr = color.rgb (8, 8, 8, 35)
B_Grn = color.rgb (44, 106, 44, 20)
B_Red = #701919cc
B_Main = color.rgb (20, 20, 20, 20)
T_Font = 字体.family_monospace
t_size = 大小。正常
tcolor = color.white
wclor = color.white
//获取给定时间范围内的 RSI 的函数
get_rsi (tf) =>
request.security(syminfo.tickerid、tf、ta.rsi(关闭,14))
//用 RSI 值填充表格
table.cell(rsi_table,0,0,“RSI”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)
table.cell(rsi_table,0,1,str.tostring(syminfo.ticker),bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)
table.cell(rsi_table,1,0,“1M”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)
table.cell(rsi_table,1、1、str.tostring(math.round(get_rsi(“1"))),bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)
table.cell(rsi_table,2,0,“5M”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)
table.cell(rsi_table,2、1、str.tostring(math.round(get_rsi(“5"))),bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)
table.cell(rsi_table,3,0,“15M”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)
table.cell(rsi_table,3、1、str.tostring(math.round(get_rsi(“15”))、bgcolor = B_Clr、text_size = T_size、text_font_family = T_Font、text_color = wclor)
pachi 楼主 : table.cell(rsi_table,4,0,“30M”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)
table.cell(rsi_table,4、1、str.tostring(math.round(get_rsi(“30”))、bgcolor = B_Clr、text_size = T_size、text_font_family = T_Font、text_color = wclor)
table.cell(rsi_table,5,0,“1H”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)
table.cell(rsi_table,5、1,str.tostring(math.round(get_rsi(“60”)),bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)
table.cell(rsi_table,5,0,“2H”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)
table.cell(rsi_table,5、1、str.tostring(math.round(get_rsi(“120”))、bgcolor = B_Clr、text_size = T_size、text_font_family = T_Font、text_color = wclor)
table.cell(rsi_table,6,0,“4H”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)
table.cell(rsi_table,6、1、str.tostring(math.round(get_rsi(“240”))、bgcolor = B_Clr、text_size = T_size、text_font_family = T_Font、text_color = wclor)
table.cell(rsi_table,7,0,“D”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)
table.cell(rsi_table,7、1、str.tostring(math.round(get_rsi(“D”))、bgcolor = B_Clr、text_size = T_size、text_font_family = T_Font、text_color = wclor)
table.cell(rsi_table,8,0,“W”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)
table.cell(rsi_table,8,1,str.tostring(math.round(get_rsi(“W”)),bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)
table.cell(rsi_table,9,0,“M”,bgcolor = B_Clr,text_size = T_size,text_font_family = T_Font,text_color = wclor)
table.cell(rsi_table,9、1、str.tostring(math.round(get_rsi(“M”))、bgcolor = B_Clr、text_size = T_size、text_font_family = T_Font、text_color = wclor)