A sophisticated multi-agent system for financial market analysis and trading strategy development. This project implements an AGI (Artificial General Intelligence) approach to market analysis, combining multiple specialized agents to propose, validate, and execute trading strategies.
This system employs a multi-agent architecture where different agents specialize in various aspects of market analysis and trading strategy development. The agents work together through a Socratic dialogue process to critique and refine trading strategies before execution.
- MomentumAgent: Identifies and capitalizes on market momentum trends
- MeanReversionAgent: Focuses on mean reversion trading strategies
- EventDrivenAgent: Analyzes and responds to market events and news
- ValidatorAgent: Ensures proposed strategies meet predefined constraints
- MetaPlannerAgent: Coordinates and selects the best strategy from multiple proposals
- ExecutorAgent: Handles the execution of selected trading strategies
- MemoryAgent: Maintains historical data and learning from past performance
- PostTradeAnalyzerAgent: Evaluates strategy performance post-execution
agents/
: Contains all agent implementationsdata/
: Market data loading and processingexecution/
: Trade execution logicevaluation/
: Performance analysis toolsmemory/
: Historical data and learning mechanismssimulation/
: Backtesting and simulation capabilitiesutils/
: Utility functions and helper modulesvisualize/
: Data visualization tools
- Multi-agent strategy development
- Socratic dialogue for strategy refinement
- Constraint validation and compliance checking
- Performance analysis and learning
- Historical data tracking and analysis
- Market data visualization
- Clone the repository:
git clone https://github.com/yourusername/Planning_and_Strategy_AGI.git
cd Planning_and_Strategy_AGI
- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
-
Set up your environment variables:
- Create a
.env
file with necessary API keys and configurations
- Create a
-
Run the main simulation:
python main.py
- For specific demonstrations:
python demo_run.py
- openai
- yfinance
- python-dotenv
- pandas
- tqdm
- chromadb
- matplotlib
- seaborn
Planning_and_Strategy_AGI/
├── agents/ # Agent implementations
├── data/ # Market data handling
├── execution/ # Trade execution
├── evaluation/ # Performance analysis
├── memory/ # Historical data tracking
├── simulation/ # Backtesting
├── utils/ # Utility functions
├── visualize/ # Visualization tools
├── main.py # Main entry point
├── demo_run.py # Demonstration script
├── run_simulation.py # Simulation runner
└── requirements.txt # Project dependencies
Contributions are welcome! Please feel free to submit a Pull Request.
[Add your license information here]
[Add your contact information here]