Other Time Frame values are strange
I am new in pine script and just tring to print the value of RSI of two different timeframes eg "D" (Daily) and "60" (Hourly) using the following code but whenever I change the timeframe from the chart tollber the vales changes !!
daily_close = request.security(syminfo.tickerid, "D", close)
hourly_close = request.security(syminfo.tickerid, "60", close)
rsiD = ta.rsi(daily_close, 14)
rsiH = ta.rsi(hourly_close, 14)
var myTable = table.new(position.bottom_right, 2, 5)
if barstate.islast
table.cell(myTable, 0, 0, "RSI Daily", text_color = color.white)
table.cell(myTable, 1, 0, str.tostring(rsiD[0], "#.##"), text_color = color.white)
table.cell(myTable, 0, 1, "RSI Hourly", text_color = color.white)
table.cell(myTable, 1, 1, str.tostring(rsiH[0], "#.##"), text_color = color.white)