Live stock market data flows like a roaring river! Using the yfinance library:
Extracted 3 years of historical data for Google (GOOG), Apple (AAPL), and Amazon (AMZN).
First Insight: Amazon showed 12% higher volatility compared to others!
I crafted two powerful spells to decode stock secrets:
Relative Strength Index (RSI):
RSI > 70 → Overbought signal
RSI < 30 → Oversold signal
Bollinger Bands:
Price touches upper band → Likely price drop
Price touches lower band → Likely price rally
"With Plotly, I built a magical dashboard:
Live candlestick charts with zoom/pan functionality.
Bollinger Bands in bold colors.
RSI displayed on a secondary axis.
"The correlation matrix revealed:
Google & Apple: 0.87 correlation
Google & Amazon: 0.95 correlation → Twin trends!
Amazon& Apple: 0.83 correlation
"With linear regression, I predicted:
$1 increase in Google → $0.95 rise in Amazon !
Multivariate model achieved 82% accuracy in forecasting Apple’s trends.
Curious about the code?
Visit my Github to see the magic behind the numbers!