A sophisticated financial analysis tool that compares various technical indicators to help make informed trading decisions.
Metric Comparator is a web application built with Django and JavaScript that analyzes stock market data using multiple technical indicators. The application provides trading signals and visualizes comparative performance data to help users make informed investment decisions.
-
Multiple Technical Indicators:
- Simple Moving Average (SMA)
- Exponential Moving Average (EMA)
- Weighted Moving Average (WMA)
- Relative Strength Index (RSI)
- Bollinger Bands
- Stochastic Oscillator
-
Interactive Web Interface:
- Real-time stock data fetching
- Date range selection
- Interactive charts and visualizations
- Trading view widget integration
- AI-powered insights using Google's Gemini model
-
Data Analysis:
- Comparative analysis of different technical indicators
- Maximum profit calculations
- Buy/Sell/Hold signals
- Historical price data visualization
- Access the application at
http://localhost:8000 - Enter a stock ticker symbol (e.g., "GME")
- Select a date range for analysis
- View the comparative analysis of different technical indicators
- Check the AI-generated insights for deeper understanding
- Django 5.0.6
- Python 3.12
- REST Framework
- Yahoo Finance API
- HTML/CSS/JavaScript
- Bootstrap 5
- TradingView widgets
- Matplotlib for visualization
- Google Generative AI (Gemini 1.5)
- Clone the repository:
git clone https://github.com/yourusername/metric-comparator.git
cd metric-comparator- Create and activate virtual environment:
python -m venv env
source env/bin/activate # On Windows use `env\Scripts\activate`- Install dependencies:
pip install -r requirements.txt- Set up environment variables:
Create a
.envfile in the root directory with:
SECRET_KEY=your_django_secret_key
GOOGLE_API_KEY=your_google_api_key
- Run migrations:
python manage.py migrate- Start the development server:
python manage.py runserver/core/max_profit/: Returns maximum profit calculations based on technical indicators/core/llm/: Provides AI-generated insights about the analysis