Ok so my code is this:
//200 SMA sma = sma(close, input(200)) rsiset = rsi(close, rsilength) rsiW = security(syminfo.tickerid, "W", rsiset) // 1 We