A real-time stock analysis tool that monitors technical indicators and provides scoring based on market signals.
- Real-time stock data fetching using Alpha Vantage API
- Technical analysis including MACD and EMA indicators
- Scoring system based on technical indicators
- Data persistence using SQLite
- Interactive Streamlit dashboard
- Basic alerting system
- Clone the repository:
git clone https://github.com/dglewis/trend-signal.git
cd trend-signal
- Create a virtual environment and activate it:
python3.11 -m venv .venv
source .venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Create a
.env
file in the root directory with your Alpha Vantage API key:
ALPHA_VANTAGE_API_KEY=your_api_key_here
- Start the Streamlit dashboard:
streamlit run src/app.py
- Enter a stock symbol and select the time interval in the sidebar
- Click "Analyze" to fetch and analyze the data
- View the technical analysis results and charts
trend-signal/
├── config/
│ └── config.py # Configuration settings
├── data/ # SQLite database storage
├── src/
│ ├── app.py # Streamlit dashboard
│ ├── data_fetcher.py # Alpha Vantage API integration
│ ├── database.py # Database models and management
│ └── technical_analysis.py # Technical indicators and scoring
├── tests/ # Test files
├── .env # Environment variables (create this)
├── requirements.txt # Project dependencies
└── README.md # This file
- Never commit your
.env
file or expose your API keys - This tool is for educational and research purposes only
- Always verify the analysis with other sources before making investment decisions
MIT License