We are updating RSI indicator using historical dataset. In some scenarios, RSI is 0.0.

 

SetStartDate(2019, 06, 15); SetEndDate(2019, 06, 29); var currentRSI = new RelativeStrengthIndex(14, MovingAverageType.Simple); foreach (TradeBar tradeBar in tradeBarHistory) { currentRSI.Update(tradeBar.EndTime, tradeBar.Close); } --Log Output-- 2019-06-19 09:32:00 currentRSI: 0.0 (AMD) 2019-06-19 09:33:00 currentRSI: 0.0 (FXI)

Could it be data issue or am I doing something wrong in the code?