AlphaMaster is a comprehensive quantitative trading framework for automated alpha factor discovery, optimization, and backtesting evaluation. The system integrates multiple advanced AI paradigms to generate, refine, and validate predictive financial signals across diverse market conditions.
Multi-algorithm parallel alpha factor generation:
a_agent: Intelligent agent-based factor generation using multi-agent systemsa_gen: Foundational factor generation modulesa_genetic: Evolutionary computation via genetic programminga_gfn: Generative flow networks for reward-aligned samplinga_miner: AlphaMiner-based factor discovery pipelines
Dual-chain architecture for systematic factor refinement:
- Factor Evaluation: Computation of IC, IC-IR, quintile returns, and other core metrics
- Factor Pool Management: Maintenance of effective and candidate factor repositories
- Iterative Optimization: Continuous quality enhancement through performance feedback loops
Comprehensive performance assessment framework:
- Multi-factor model construction
- Strategy backtesting execution
- Performance metric calculation
- Visual analytics and reporting
- Alpha 101: Traditional 101-factor alpha library
- Alpha 158: Extended 158-factor alpha universe
- Alpha 360: Comprehensive 360-factor collection
- GP (Genetic Programming): Evolutionary expression optimization
- DSO (Differentiable Symbolic Optimization): Gradient-based symbolic regression
- AlphaGen: Generative model-based factor discovery
- AlphaForge: Dynamic formulatic alpha combination framework
- LLM + CoT (Chain of Thought): Sequential reasoning-enhanced generation
- LLM + ToT (Tree of Thought): Multi-path exploratory reasoning
- LLM + MCTS (Monte Carlo Tree Search): Search-based factor optimization
a_factor_generate/ # Multi-paradigm factor generation
├── a_agent/ # Agent-based generation
├── a_gen/ # Foundational generators
├── a_genetic/ # Genetic programming
├── a_gfn/ # Generative flow networks
└── a_miner/ # AlphaMiner pipelines
dual_chain/ # Dual-chain optimization
├── dual_chain_manager.py # Architecture coordination
├── factor_evaluator.py # Metric computation
└── factor_pool.py # Repository management
compare/ # Backtesting & evaluation
├── alpha_evaluation.py # Performance assessment
└── alpha_evaluation_report.json # Analysis outputs
data/ # Multi-market datasets
├── a_share/ # Chinese A-shares
├── crypto/ # Cryptocurrency markets
└── us/ # US equities
alpha_pool/ # Factor repository storage
- Multi-paradigm Synthesis: Integration of RL, GFlowNet, LLM, and GP methodologies
- Diverse Factor Typologies: Momentum, volatility, volume, statistical, and composite factors
- Automated Expression Management: Structured storage and retrieval of mathematical formulations
- FactorEvaluator: Computation of information coefficients, consistency metrics, and efficiency measures
- FactorPool: Dynamic management of factor repositories with quality thresholds
- DualChainManager: Coordinated exploration and exploitation workflows
- AlphaEvaluationSystem: LightGBM-based multi-factor modeling
- Comprehensive Metrics: Returns, risk-adjusted performance, drawdown analysis
- Automated Reporting: Visual analytics and performance attribution
cd a_factor_generate/a_miner
python run_alphaminer.pycd ../../dual_chain
python run_dual_chain.pycd ../compare
python alpha_evaluation.py- IC (Information Coefficient): Cross-sectional correlation between factor values and forward returns
- IC-IR (IC Information Ratio): Risk-adjusted consistency measure of predictive power
- Quintile Returns: Performance stratification across factor-sorted portfolios
- Annualized Return: Compounded strategy performance
- Sharpe Ratio: Excess return per unit of volatility
- Maximum Drawdown: Peak-to-trough capital erosion
- Win Rate: Proportion of profitable periods
- Chinese A-Shares: CSI 500, CSI 1000 indices
- US Equities: S&P 500 constituents
- Cryptocurrencies: Major digital assets
- Python 3.8+: Core programming language
- pandas, numpy: Data manipulation and numerical computation
- scikit-learn, LightGBM: Machine learning and gradient boosting
- matplotlib, seaborn: Data visualization and analytics
- Quantitative Libraries: Specialized financial computation packages
- Research Purpose: This system is designed for academic and research applications only
- Computational Requirements: Factor discovery and backtesting require substantial computational resources
- Environment Isolation: Recommended deployment within virtual environments
- Create new factor implementation in appropriate generator directory
- Implement
calculate_factormethod with proper interfaces - Register factor in generator execution scripts
- Edit
dual_chain/factor_evaluator.py - Implement new assessment methodologies
- Update evaluation workflow logic
- Data Updates: Regular refresh of market data to maintain factor validity
- Parameter Calibration: Periodic adjustment of evaluation thresholds based on regime changes
- Algorithm Enhancement: Continuous improvement of generation and optimization methodologies
This project is intended for research purposes only. Commercial use requires explicit authorization.