System configured for: Windows 10
-
IMPORTANT: Configure Your Model
- Open
train_enhanced_model.pyanddaemon.pyin a text editor. - At the top of each file, find the
SELECTED_MODELvariable. - Set it to either
'ALFA'or'TRANSFORMER'. - You must use the same model for both training and the daemon.
- Open
-
Run the Launcher
- On Windows: Double-click
ALFA_Launcher.bat - On macOS/Linux: Open a terminal, navigate to this folder, and run
./ALFA_Launcher.sh
- On Windows: Double-click
-
Train the Model
- In the launcher, choose option
1and press Enter. - Wait for the training process to complete. This may take some time.
- In the launcher, choose option
-
Start the Daemon
- In the launcher, choose option
2and press Enter. - The daemon will now run in the background, waiting for requests from MetaTrader 5.
- In the launcher, choose option
-
Set up MetaTrader 5
- Copy the
ALFA_Transformer_EA.mq5file to your MT5Expertsfolder. - Open MetaEditor, open the EA file, and click "Compile".
- Attach the compiled EA to a EURUSD, H1 chart.
- Copy the
- After training a model, run the launcher and choose option
3to generatebacktest_predictions.csv. - Copy this CSV file to your MT5
Common\Filesdirectory. - Run the EA in the Strategy Tester. It will automatically use the predictions from the file.
- If you have issues, re-run this installer by choosing option
4in the launcher. - Ensure your MetaTrader 5 terminal has permission to access the file system (Tools -> Options -> Expert Advisors -> "Allow file read and write").
- Check the "Experts" and "Journal" tabs in MT5 for error messages from the EA.