Been learning a lot from here and finally putting in my first post. I am building a custom TradingView plotshape for a 1 hour crossover on a 15 min chart and getting an error. I'm hoping someone can help me address this.
src1 = request.security(syminfo.ticker, '60', ta.rsi(close, 14))
src2 = request.security(syminfo.ticker, '60', ta.sma(close, 14))
(line 13)rsi = ta.rsi(close, src1)
(line 14)sma = ta.sma(rsi, src2)
crossover = ta.crossover(rsi, sma)
Here is the error when saving -
line 13: Cannot call 'ta.rsi' with argument 'length'='src1'. An argument of 'series float' type was used but a 'simple int' is expected line 14: Cannot call 'ta.sma' with argument 'length'='src2'. An argument of 'series float' type was used but a 'series int' is expected