Quantitative Analysis, Finance, Criptocurrency, Machine Learning.
200-day simple moving averages stock_data['SMA50'] = stock_data['Close'].rolling(window=50).mean() stock_data['SMA200'] = stock_data['Close'].rolling(window=200).mean() Step 5: Visualization # Plotting stock prices and moving averages plt.figure(figsize=(10, 6)) plt.plot(stock_data['Close'],