A comprehensive Streamlit application for analyzing stock price cycles and identifying potential buy/sell opportunities.
- Interactive Price Charts - Candlestick charts with volume analysis
- Technical Indicators - RSI, MACD, Moving Averages
- Buy/Sell Signals - Automated signal generation based on multiple indicators
- Support & Resistance - Automatic level detection
- Cycle Analysis - Peak and trough identification
- Multiple Timeframes - Supports various periods and data granularities
- Real-time Data - Fetches live data from Yahoo Finance
-
Clone or navigate to the project directory
cd /Users/karan/MyProjects/nasdaq -
Install dependencies
poetry install
-
Activate the virtual environment
poetry shell
-
Run the Streamlit app
streamlit run app.py
-
Use the application
- Enter a stock ticker symbol (e.g., AAPL, GOOGL, TSLA)
- Select time period and data granularity
- Choose analysis features to display
- Click "Fetch Data" to analyze
- Moving Averages: SMA 20, SMA 50
- RSI: Relative Strength Index with overbought/oversold levels
- MACD: Moving Average Convergence Divergence with histogram
- Support/Resistance: Automatic level detection using peak analysis
The app generates buy/sell signals based on:
- Price relationship to moving averages
- RSI momentum indicators
- MACD crossovers and histogram
- Multi-condition filtering for signal strength
nasdaq/
├── app.py # Main Streamlit application
├── modules/
│ ├── __init__.py # Package initialization
│ ├── data_fetcher.py # Yahoo Finance data integration
│ ├── cycle_analyzer.py # Technical analysis algorithms
│ └── charts.py # Plotly visualization components
├── pyproject.toml # Poetry dependencies
└── README.md # This file
streamlit- Web application frameworkyfinance- Yahoo Finance data APIplotly- Interactive chartspandas- Data manipulationnumpy- Numerical computationsscipy- Scientific computing for peak detection
Deployed as streamlit app in the streamlit community workspace. Two versions of the app exists. one is mobile friendly and the other one is for a wider screen.
MIT License - Feel free to modify and distribute.