Créer un python moyen mobile de 50 et 100 jours

#We use the closing price for Apple to create a MA using rolling windows
AAPL['Moving Average 200'] = AAPL['Close'].rolling(200).mean()
AAPL['Moving Average 50'] = AAPL['Close'].rolling(50).mean()
M.U