Launching EA using Script or from another EA WITHOUT DLL
Here you find virtually all chart functions: https://www.mql5.com/en/docs/chart_operations.
There you find a function to aplly a template to a chart - if the template 'contains' you EA it is started...
- www.mql5.com
Does anyone have a solution?
- www.mql5.com
Thank you, Thank you :-)
Was just expecting a simple pointer on the commands. You gave a library :-)
I should read the manual more. Its there in the ChartApplyTemplate function.... but it did not occur to me that EA is a template. My bad. \facepalm
Will study your code more.
Thank you once again :-)
Hi,
https://www.mql5.com/en/forum/115967/page3 lists a method to launch an EA from a script/another EA.
However, it requires enabling of DLL.
Has anyone managed to do so WITHOUT the use of DLL?
Consider the scenario
1. Open MT5
2. Attach "controller" EA/script to a default chart manually.
3. Controller EA will fire up all the other charts and EA for each chart and load the appropriate .SET file.
4. Synchronize the account with VPS and turn off the client PC.
Thoughts
a. Using DLL will cause issues with the VPS. (I was searching for "best practices for using a VPS" with no luck,but did see that VPS do not like DLLs)
b. Use of profiles is considered. However, so far my experience with using profiles is that I often accidentally change stuff without realizing it. (e.g. closing a chart when on 1 profile means the next time u open the profile again, the chart is still missing) Please enlighten if this is not true.
c. Considered "chart.mqh" (https://www.mql5.com/en/docs/standardlibrary/cchart/cchartopen) which can open a chart. But not seeing a method to attach an EA to Chart.
Does anyone have a solution?
Apologies if this has been posted before.