Skip to content

godhangyu/alpha-gpt

 
 

Repository files navigation

Alpha-GPT: Human-AI Interactive Alpha Mining for Quantitative Investment

Alpha-GPT is an advanced Human-AI collaborative framework designed for Quantitative Investment. It leverages cutting-edge tools like LangGraph, Zipline, Alphalens, and PyGAD to generate, evaluate, and optimize financial trading strategies (alphas).

🚧 Project Status: Under Development 🚧

This repository is currently a work in progress. The latest code updates are not yet fully pushed to GitHub but will be available soon.

Feel free to explore the current implementation, and if you have any questions, contact me.


Research Acknowledgments

We are grateful for the foundational research papers that inspired and guided this project:

These papers have significantly influenced the system's development, especially in leveraging Genetic Programming, LLM-guided Alpha Discovery, and Backtesting Pipelines.


What It Does

  1. Alpha Generation: Custom alphas generated using symbolic expressions through LangGraph Orchestration.
  2. Evaluation and Backtesting: Backtest performance using Zipline and evaluate factors with Alphalens.
  3. Genetic Programming: Evolve optimal alphas using PyGAD through selection, mutation, and crossover.
  4. Data Pipeline Automation: Modular design supports real-time updates and evaluations using LangGraph workflows.

How to Run

  1. Install Dependencies:
    pip install -r requirements.txt
    # Set up environment variables:
    cp .env.example .env  # Then add your OpenAI API key
    
  2. Run the Project:
    python main.py
    This will:
    • Load the trading idea from user input
    • Generate seed alphas using GPT-4
    • Evaluate and backtest the alphas
    • Optimize using genetic programming
    • Output the best performing strategies

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.2%
  • Makefile 3.8%