Deep Learning, Stock Prediction, Python, Financial Analysis, Programming.
(delta.where(delta > 0, 0)).rolling(window=14).mean() loss = (-delta.where(delta < 0, 0)).rolling(window=14).mean() rs = gain / loss data['RSI'] = 100 - (100 / (1 + rs)) # OHLC Ratios data['HLC_Ratio'] = (data['High'] - data['Low']) / data['Close'] data['OC_Ratio'] = (data['Open'] - data['Close'])