Machine Learning, Investment, AI, Sklearn, Quant.
np.log(dataset['Close'] / dataset['Close'].shift(1)) dataset['Momentum'] = dataset['Close'].diff(1) # Simple Moving Averages dataset['SMA_5'] = dataset['Close'].rolling(window=5).mean() dataset['SMA_10'] = dataset['Close'].rolling(window=10).mean() dataset['SMA_20'] =