Skip to content

hrithikda/quant_alpha_research

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Quantitative Alpha Research Platform

License: MIT Python Streamlit

Table of Contents

  1. Overview
  2. Key Features
  3. Technologies Used
  4. Project Structure
  5. Installation Guide
  6. Usage Instructions
  7. Future Enhancements
  8. Contributions
  9. License
  10. Acknowledgments

Overview

The Quantitative Alpha Research Platform is an interactive tool for conducting financial research and backtesting trading strategies using machine learning and technical indicators. This project integrates data collection, feature engineering, model training, and a web-based dashboard to visualize stock performance and trading signals.


Key Features

  • Data Collection: Pulls historical stock prices using Yahoo Finance (yfinance).
  • Feature Engineering: Computes key technical indicators:
    • RSI (Relative Strength Index)
    • MACD (Moving Average Convergence Divergence)
    • Bollinger Bands
    • Lagged Returns
  • Machine Learning Model: Trains a Random Forest Classifier to predict buy/sell signals.
  • Backtesting: Simulates a trading strategy using Backtrader and evaluates performance.
  • Streamlit Dashboard: Displays interactive charts, key metrics (ROC AUC, Confusion Matrix), and prediction samples.

Technologies Used

  • Programming Language: Python 3.x
  • Libraries:
    • yfinance: Historical stock data fetching
    • pandas, numpy: Data manipulation and feature engineering
    • scikit-learn: Machine learning model training and evaluation
    • backtrader: Trading strategy simulation
    • streamlit: Interactive web dashboard
    • matplotlib: Data visualization for backtest results

Project Structure

  quant_alpha_research/
  ├── main.py           # Main Python script
  ├── README.md         # Project description and instructions
  ├── requirements.txt  # List of dependencies
  └── .gitignore        # Files to exclude from GitHub

Installation Guide

  1. Clone the Repository:
    git clone https://github.com/your-username/QuantAlphaResearchPlatform.git
    cd QuantAlphaResearchPlatform
    

Install Dependencies: Ensure you have Python installed, then run:

pip install -r requirements.txt

Run the Application:

streamlit run main.py

The dashboard will open in your default web browser.

Usage Instructions Enter the desired stock ticker (e.g., AAPL for Apple) and set the date range. The platform will: Fetch historical stock data. Compute technical indicators (RSI, MACD, Bollinger Bands, etc.). Train a Random Forest model to generate buy/sell signals. Run backtests and display performance metrics. View results in the dashboard, including: Stock price and indicator plots. Model accuracy (ROC AUC score). Confusion matrix and prediction samples. Future Enhancements Add live trading support using APIs (e.g., Alpaca, Interactive Brokers). Include Explainable AI (XAI) features to improve transparency. Add hyperparameter tuning improvements and support for additional models (e.g., XGBoost). Contributions Contributions are welcome! Feel free to fork this repository, make enhancements, and submit a pull request.

License This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments Yahoo Finance API for financial data. Backtrader for providing a robust backtesting framework. Streamlit for making interactive dashboards simple to create. Sample Badges: The badges at the top display:

License status. Python compatibility. Link to Streamlit for easy app reference.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages