It seems a problem with ChartApplyTemplate(). The function returns true, but something happens and it removes the EA from the chart. I'm using version MT5 build 2994 (09 Jul 2021). Can anyone try to reproduce it with this same version and see if the error occurs? Here's the log (Expert+Journal):
Is it not obvious that if you apply a template to the current chart, that EVERYTHING gets removed, including the EA that applied the template, and replaced by what ever the template loads (after returning from the event handler)?
Is it not obvious that if you apply a template to the current chart, that EVERYTHING gets removed, including the EA that applied the template, and replaced by what ever the template loads (after returning from the event handler)?
I believe you are right. I'll test it.
Thank you!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
The code below removes the EA after X seconds (if you try to debug it, it closes the current chart). Just create an EA with the code, run it and press T key:
It seems a problem with ChartApplyTemplate(). The function returns true, but something happens and it removes the EA from the chart.
I'm using version MT5 build 2994 (09 Jul 2021).
Can anyone try to reproduce it with this same version and see if the error occurs?
Here's the log (Expert+Journal):
Thank you.