-
-
Save quantra-go-algo/7213ff7c2d4db0aa94ffbef92b12595c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Calculate short-term (fast) and long-term (slow) moving averages | |
aapl_data['SMA_50'] = aapl_data['Close'].rolling(window=50).mean() | |
aapl_data['SMA_200'] = aapl_data['Close'].rolling(window=200).mean() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment