modified calculation, zero rather than NaN for RSI