Add a momentum factor to this previously published Leveraged ETF algo to shift the tickers arround based on momentum. I am trying to add RSI indactor to sell and buy tickers above 70 or 80 but I don't seem to be able to figure out how to add it in. I can see the data in the libary but can't get past that. Can anyone help?

Author