Forecasting, Deep Learning, Arima, Goldman Sachs, Data Science.
adjust=False).mean() # Calculate RSI def rsi(close, period=14): delta = close.diff() gain, loss = delta.copy(), delta.copy() gain[gain < 0] = 0 loss[loss > 0] = 0 avg_gain = gain.rolling(period).mean() avg_loss = abs(loss.rolling(period).mean()) rs = avg_gain / avg_loss rsi = 100.0 - (100.0 / (1.0