- Is There A Better Way Of Doing This?
- How to bring up the Object Properties dialog box programmatically?
- How to update the external input entries with a new values ? please :)
No.
Alternatively... since the changing of input vars via dialog box triggers a deinit and init call. Is there any difference between that and re-attaching the EA via loading a template with new input variables I should be aware of?
No.
Is this to the original question... or the alternative question :)
Both
Of course you can - simulate right click at exact pixels of chart plus arrows, enter, escape key sequence with user32.dll functions. Without, however, having any option to check if everything went well. And there are no guaranties it will - if terminal is busy it may mix the sequence, Windows may or may not register all of the events as you intended. And you will need to read Microsoft documentation, which may or may not exist for the particular things you need. And if it exist it is such quality that you wish it didn't.
In short - no.
The original question was already answered.
Alternatively... since the changing of input vars via dialog box triggers a deinit and init call. Is there any difference between that and re-attaching the EA via loading a template with new input variables I should be aware of?
There is a difference.
Yes, you can. For example, you can manage expert advisors from the Market in this way.
- www.mql5.com
Very definitive.
Alternatively... since the changing of input vars via dialog box triggers a deinit and init call. Is there any difference between that and re-attaching the EA via loading a template with new input variables I should be aware of?
- When you apply a template, the EA and all indicators are removed. Then all are reloaded. So you loose any modified global/static variables. Whether that is a problem depends on if the EA is coded to recover. If the power fails, OS crashes, terminal or chart is accidentally closed, on the next tick, any static/global ticket variables will have been lost. You will have an open order but don't know it, so the EA will never try to close it, trail SL, etc. How are you going to recover? Use a OrderSelect loop to recover, or persistent storage (GV+flush or files) of ticket numbers required.
- Changing EA inputs or changing the chart Symbol/TF does not reload the EA (only deinit/init cycle.)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use