I suggest that in this branch we discuss the possibility of automatic code generation based on a template and its automatic compilation at the request of the expert Advisor.
For example, I will tell you about my task:
1. there Are files with data, the data are variables of different types with an assigned value
2. you need to read the data and make it an array of data or enum or something else, so that one line from the file corresponds to one set of variables. This is tedious to do for each file.
3. taking into account the data from the file, generate a code counter that can iterate through all combinations of sets of variables.
4. Save the result to a file to connect to the expert Advisor/other code
Here, in General, the task is theoretically not difficult, except that it is necessary to somehow automate the process of creating a template. Is it even possible to do this using MQL?
And you need all this to speed up the optimization process, if there are a lot of variables and they belong to groups (for example, independent filters).