Adding Rsi logic into the algorithm