Answers for "python creating a 50 day and 100 day moving average"

2

creating a 50 day and 100 day moving average python

#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()
Posted by: Guest on September-14-2021

Code answers related to "python creating a 50 day and 100 day moving average"

Python Answers by Framework

Browse Popular Code Answers by Language