Having an issues with TD accepting a script. If someone can take a look and let me know what I’m doing wrong when entering it in that would be great! Thanks!
below is the following script, and TD marks it as red cause my equal sign is invalid…
len = input(14, title = 'Length')
src = input(close, 'Source', type = input.source)
ob = input(70, 'Overbought')
os = input(30, 'Oversold')
timeframe = input('D', title = 'Timeframe', options = ['1', '3', '5', '10', '15', '30', '60', '120', '240', 'D', 'W', 'M'])
rsi = rsi(src, len)
rsi_htf = security(syminfo.tickerid, timeframe, rsi(src,len))
rsi_casabene = (rsi + rsi_htf) / 2
h1 = hline(ob, 'OB', color.gray)
h2 = hline(os, 'OS', color.gray)
plot(rsi, 'RSI', color.green)
plot(rsi_monster, 'RSI Monster', color.red)
fill(h1, h2, color.purple)
below is the following script, and TD marks it as red cause my equal sign is invalid…
len = input(14, title = 'Length')
src = input(close, 'Source', type = input.source)
ob = input(70, 'Overbought')
os = input(30, 'Oversold')
timeframe = input('D', title = 'Timeframe', options = ['1', '3', '5', '10', '15', '30', '60', '120', '240', 'D', 'W', 'M'])
rsi = rsi(src, len)
rsi_htf = security(syminfo.tickerid, timeframe, rsi(src,len))
rsi_casabene = (rsi + rsi_htf) / 2
h1 = hline(ob, 'OB', color.gray)
h2 = hline(os, 'OS', color.gray)
plot(rsi, 'RSI', color.green)
plot(rsi_monster, 'RSI Monster', color.red)
fill(h1, h2, color.purple)
Last edited: