This program implements a genetic algorithm to optimize a given model using historical stock data. It utilizes a simulation environment to evolve solutions through crossover and mutation processes, evaluating their performance over generations.
To install the required dependencies for this project, you should have Python 3.x installed. Create a virtual environment if needed, then use pip
to install the packages listed in requirements.txt
.
-
Create a virtual environment (optional but recommended):
python -m venv venv
-
Activate the virtual environment:
source venv/bin/activate
-
Install the required packages:
pip install -r requirements.txt
-
Set up parameters:
generation_size = 10 initial_amount = 100_000 generations = 10 ticker=["AAPL", "GOOGL"] generation = []
-
Run the program:
python3 main.py
This project is licensed under the GPL v3 License. See the LICENSE file for details.