Hello,

 

I am trying to filter stocks based on RSI values and some fundamental values. 

I think I was able to find some values but not sure about accuracy.

 

My questions - 

  1. I was getting multiple RSI values as 0 or 100 which I was not sure is correct. Is MovingAverageType.Wilders correct way declaration for RelativeStrengthIndex? any mistakes that you can help me with in my Algo?
  2. Apart from current RSI I want to compare it with RSI from previous day. So basically I want to check if RSI moved from <30 to >30 and then filter such stocks. Can you please guide me
I have attached my current backtest code. Hopefully it is available for you to see.

Author