Why not put the input parameters in the structure? - page 2

 
Taras Slobodyanik:

So refers, to write this whole heap of parameters, it would be enough to define the structure and put it in the input parameters.

That's not what this thread is about, as it mentions the mqh-file. And defining the structure is the same as writing all the fields. I.e. it's the same thing.

 
fxsaber:

That's not what this thread is about, as it mentions an mqh-file. And defining the structure is the same as writing all the fields. In other words, it's the same thing.


How is it not? First line, first post:

There is a problem withpassing input parameters to the EA

subject line

Why not put the input parameters in a structure?

 
fxsaber:

And defining the structure is the same as writing all the fields. I.e. it is the same thing.

What if there is an array of structures?
 
Taras Slobodyanik:
What if it's an array of structures?
Then set the parameters with a file.
 
Комбинатор:
Then set the parameters with a file.

This is the way it is done now. At the same time, the Expert Advisor comes with an "Editor" of such a file in the form of a DLL, which displays a window with tabbed parameters.

That is, everything is possible. No one argues with that. Another thing is that if it was in the form of ready-made functionality in the terminal, it would be great.

 
Ihor Herasko:
No one argues. Another thing is that it would be great if it were a ready function in the terminal.

If as an additional option, rather than a replacement for existing instances, then you are welcome.

But no one will do it, because it takes a couple of minutes to convert inputs to the right kind of container as needed by TC.

And "an array of structures" is also made a bit more complicated by generating code from json, for example.

 
Ihor Herasko:

This is the way it is done now. At the same time, the Expert Advisor comes with an "Editor" of such a file in the form of a DLL, which displays a window with tabbed parameters.

The articles on custom GUI clearly say that it is possible to make such an editor without a DLL, and this is an exit to the Market.
 
Комбинатор:

But no one will do it, because it takes a couple of minutes to convert the inputs to the right kind of container, as TC wants.

Far from it. It took me longer to do this than it did to complete one of my orders.
fxsaber:
Articles on custom GUI clearly says that it's possible to make such editor without DLL, and it's an exit to Market.
You can, of course you can. You can even write your own terminal, if you think about it that way ))
 
fxsaber:
The articles on custom GUI clearly say that you can make such an editor without a DLL, and that's an exit to the Market.
Here's a plus. Put the parameters in a file and make a dialog box that plugs into any Expert Advisor and displays the parameters as desired.
 
Комбинатор:
Here I give a plus. Put parameters in a file and write a dialog box that might easily connect to any Expert Advisor and display parameters as desired.

So it's not surprising to see two windows for the settings: standard and new? In my opinion, this is not normal. The DLL variant has exactly the same problem. But the dialog box in MFC is written much faster than in MQL.

Reason: