System
Folder path and data organization
The Custom Expert Advisor manages its file and folder inputs in the data folder. You can access this folder via the Windows start menu or through a shortcut configured on your Windows desktop, as shown in the image below.

You'll encounter the system text file as you navigate further down the file structure in the tester folder. This file allows you to specify which trading modules SET files are registered and executed by the Custom Expert Advisor. Each SET file in the configuration folder defines an independent trading module. The entire folder tree, starting from the tester folder, is depicted below.

Alternatively, you can access the System input folder by inputting the designated path into your Windows folder browser.
%AppData%\MetaQuotes\Terminal\Common\Files\FEA Trading Data\Custom Expert Advisor 2.0\default\System
Usage
The system text file can be modified using any text editor. Each module in the system text file must have a corresponding entry that defines its trading state. The code block below contains a system text file with two entries starting from line number 2. Line number 1 is included for your convenience.
Please ensure data is in format <MODULE_NAME> <MODULE_STATE> where MODULE_STATE can be ENABLED','DISABLED_WITHOUT_CLOSING or DISABLED_WITH_CLOSING for each module!
EAM_I1 ENABLED
EAM_I2 ENABLED
There are three possible module states:
- ENABLED: The module is fully enabled and can open new trades.
- DISABLED_WITHOUT_CLOSING: The module is disabled, but any open trades will not be closed when the condition changes. Open trades will be closed at their defined stop loss or take profit levels.
- DISABLED_WITH_CLOSING: The module is disabled, and any open trades will be closed when the condition changes, regardless of the current profit.
To add a new trading module, add a line with two identifiers: <MODULE_NAME> <MODULE_STATE>. The module name must match strictly the configuration text file name, and the module state must be one of the three options listed above. The file extension for the SET files is not required.
The following code block shows how to turn off trading modules EAM_I1 and EAM_I2 and enable EAM_I3 and EAM_I4.
Please ensure data is in format <MODULE_NAME> <MODULE_STATE> where MODULE_STATE can be ENABLED','DISABLED_WITHOUT_CLOSING or DISABLED_WITH_CLOSING for each module!
EAM_I1 DISABLED_WITHOUT_CLOSING
EAM_I2 DISABLED_WITHOUT_CLOSING
EAM_I3 ENABLED
EAM_I4 ENABLED
In this example, the modules EAM_I1 and EAM_I2 were turned off, but any open trades remained open until they were closed by their stop loss or take profit levels. After some time, all trades related to EAM_I1 and EAM_I2 were finally closed.
Please ensure data is in format <MODULE_NAME> <MODULE_STATE> where MODULE_STATE can be ENABLED','DISABLED_WITHOUT_CLOSING or DISABLED_WITH_CLOSING for each module!
EAM_I3 ENABLED
EAM_I4 ENABLED