1.3 KiB
1.3 KiB
Project Flow
This document outlines the workflow of the AI-Enhanced MQL5 Trading Bot project.
-
Data Export:
- The process starts with the
Export_EURUSD_History.mq5script, which is an MQL5 script that runs on the MetaTrader 5 terminal. - This script exports historical price data for the EUR/USD pair to a CSV file named
raw_price_data.csv.
- The process starts with the
-
Model Training:
- The
raw_price_data.csvfile is then used by the Python scripts to train the machine learning models. - The
create_benchmark_model.pyscript trains a logistic regression model and exports it tobenchmark_logistic_model.onnx. - The
Model_Development.pyscript trains a neural network model using hyperparameter tuning and exports it totrading_neural_network_model.onnx.
- The
-
Trading:
- The exported ONNX models are used by the MQL5 Expert Advisors (EAs) to make trading decisions.
- The
Benchmark_Model_EA.mq5EA uses thebenchmark_logistic_model.onnxmodel. - The
Neural_Network_Trader_EA.mq5EA uses thetrading_neural_network_model.onnxmodel. - The EAs run on the MetaTrader 5 terminal, and on each new bar, they get the latest price data, feed it to the ONNX model, and execute a trade based on the model's prediction.