This article is a step-by-step guide on how to install the DT-Box-Inference program along with all necessary MetaTrader5 files to collect data, train your model, and then run it in prediction mode.
If you haven’t read previous articles in my series of articles on developing neural network-based pattern recognition indicators for MetaTrader5 – here, you can find an introduction to the series. In the first article, I describe the process of collecting data for neural network model training using the MT5 script. Here, you can find the second article describing training neural networks in Google Colab using collected data. In the third article, I describe how you can use your model as MT5 indicator using DT-Box-Inference tool. Finally, here you find the source code of DT-Box-Inference.
Installation Process
First, you need to install the MetaTrader5 terminal. If you haven’t already installed it, you can download the installer from this page: https://www.metaquotes.net/en/download. If you already have MetaTrader5 installed, we will proceed using your current version.
Second, please download the latest version of the DT-Box-Inference installation – here is the link to the ZIP file on my Github. This archive includes the DT-Box-Inference application, TensorFlow execution environment, and necessary MT5 files. You can extract the archive to any temporary directory.
After extracting the files, you will have the following folder structure:
A batch file named Install.bat is designed to copy the required MetaTrader5 files into the corresponding directories of your MetaTrader5 installation. It will also create a ‘pccom’ folder in your documents directory and copy the DT-Box-Inference program along with the TensorFlow execution environment there.
The installation is now complete. In your MetaTrader5 terminal, within the Navigator window, you should now see the CollectPatternData script and DT-ML-Indicator.
In the ‘Documents\pccom’ directory, you will find the DT-Box-Inference installation:
That is essentially it – you can now collect pattern data, train your models, and use trained models as MetaTrader5 indicators. If you want to modify the source code of DT-Box-Inference or the MT5 files, here you can find links to the corresponding GitHub repositories.
If you have any questions or suggestions, I will be glad to hear from you at pavel@pavelchigirev.com