//@version=5
indicator(“MTF RSI Dashboard FIXED”, overlay=true)
plot(na) // invisible plot to force overlay
rsiLength = input.int(14, “RSI Length”)
rsiColor(val) =>
if val > 75
color.red
else if val >= 50
color.green
else if val >= 25
color.red
else
color.green
rsi_5 = request.security(syminfo.tickerid, “5”, ta.rsi(close, rsiLength))
rsi_15 = request.security(syminfo.tickerid, “15”, ta.rsi(close, rsiLength))
rsi_1H = request.security(syminfo.tickerid, “60”, ta.rsi(close, rsiLength))
rsi_D = request.security(syminfo.tickerid, “D”, ta.rsi(close, rsiLength))
rsi_W = request.security(syminfo.tickerid, “W”, ta.rsi(close, rsiLength))
rsi_M = request.security(syminfo.tickerid, “M”, ta.rsi(close, rsiLength))
var table dash = table.new(position.top_right, 1, 6, border_width=1)
if barstate.islast
table.cell(dash, 0, 0, “5M RSI: ” + str.tostring(rsi_5, “#.##”), bgcolor=rsiColor(rsi_5))
table.cell(dash, 0, 1, “15M RSI: ” + str.tostring(rsi_15, “#.##”), bgcolor=rsiColor(rsi_15))
table.cell(dash, 0, 2, “1H RSI: ” + str.tostring(rsi_1H, “#.##”), bgcolor=rsiColor(rsi_1H))
table.cell(dash, 0, 3, “D RSI: ” + str.tostring(rsi_D, “#.##”), bgcolor=rsiColor(rsi_D))
table.cell(dash, 0, 4, “W RSI: ” + str.tostring(rsi_W, “#.##”), bgcolor=rsiColor(rsi_W))
table.cell(dash, 0, 5, “M RSI: ” + str.tostring(rsi_M, “#.##”), bgcolor=rsiColor(rsi_M))