This project is a comprehensive stock data analysis tool built using Python and Jupyter Notebook. It enables you to fetch historical market data, compute key technical indicators, and visualize trends, aiding in better trading or investment decisions.
- Stock_Analysis.ipynb β Main notebook for data loading, visualization, and technical indicator computation.
- data/ β (Optional) Folder to store any downloaded CSV files or backups.
- charts/ β (Optional) Output directory for saved plots.
- ποΈ Fetch stock data using Yahoo Finance (
yfinance) - π Compute technical indicators like:
- Simple Moving Average (SMA)
- Exponential Moving Average (EMA)
- Relative Strength Index (RSI)
- Moving Average Convergence Divergence (MACD)
- πΌοΈ Plot price charts with indicators and signals
- π§ Perform trend and momentum analysis
- π§Ύ Simple signal generation (Buy/Sell zones)
-
Install Dependencies
Run the following command to install all required Python packages:
pip install pandas numpy matplotlib seaborn yfinance ta
- β
Stock Data Download via
yfinance - β Interactive Charting with price overlays
- β
Built-in Indicators:
- Moving Averages (SMA, EMA)
- MACD & Signal Line
- Relative Strength Index (RSI)
- β Buy/Sell Signal Zones (based on RSI thresholds or MA crossovers)
- β Modular Codebase for easy customization
- β No API key required (free public data)
- Python 3.7+
| Library | Purpose |
|---|---|
pandas |
Data wrangling and time series |
numpy |
Numerical computations |
matplotlib |
Basic visualization |
seaborn |
Statistical & styled visualizations |
yfinance |
Fetching historical stock data |
ta |
Pre-built technical indicators |
jupyter |
Notebook for interactive workflows |