very little information, or very limited functionality?
how can I offer the user a set of input parameters more flexibly?
for example, I need if the user selects p1 = true, then allow to specify p2 and p3 and p4, if the user selects p1 = false, then prohibit filling in other fields
input bool p1=true;
isinput int p2=0;
input int p3=0;
input int p4=0;
it possible to substitute values in input from a text file?
alexeyvik
This prevents optimization of the parameter, and nothing more.
avel08
sinput string a1="info";
right?
it’s being edited..
marketeer
Write a request to the service desk. This should have been done long ago in MT4. Today you will write – maybe in a couple of years they will do it. 😉
In the meantime, MQ usually offers for such dependent settings to make their own graphical control panel from existing standard objects or other ready-made controls, which already have several libraries.
avel08
everything already works without these input parameters ( using the interactive menu), but the strategy tester and MQL VPS require exactly these software parameters. Input parameters, so you have to duplicate them
prostotrader
Why in input?
Just set global variables and subtract data from your file.
laryx
If the user chooses p1=false, then it’s his own fault – let him put anything in the other fields, you just ignore them.
If the user chooses p1=true, then use these values.
If you really want the user to have the possibility of the appearance or disappearance of input fields , it is better to do this through the input / output controls. But, in my opinion, all this is superfluous…
As for the “text file” – I personally use INI files. In my opinion, a very convenient thing for settings.