I have coded an EA that appears to work correctly. It generates the correct results and displays them in the results tab. If I use visual mode I can see the trades being generated on the chart. However, when it reaches the end of the test or when I stop the test the trades disappear from the chart. Why would this happen?
It seems to have something to do with a call to iCustom. I did not have this problem until I added a call to iCustom to get some data from a custom indicator. Now the custom indicator is shown at the end of the test, but the trades are not. Is there something I have done wrong?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I have coded an EA that appears to work correctly. It generates the correct results and displays them in the results tab. If I use visual mode I can see the trades being generated on the chart. However, when it reaches the end of the test or when I stop the test the trades disappear from the chart. Why would this happen?
It seems to have something to do with a call to iCustom. I did not have this problem until I added a call to iCustom to get some data from a custom indicator. Now the custom indicator is shown at the end of the test, but the trades are not. Is there something I have done wrong?
Thank you,
Sean