
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Bit of a silly one here, but I have an EA which works fine, however I'm receiving error messages for errors which are non-existent.
My EA closes half of my position when I reach 200 pips in the money whilst simultaneously moving the s/l to breakeven.
The system does this flawlessly, but I'm getting the Error message #5020 (through the MessageBox() function) which is a ERR_FILE_NOT_EXIST runtime error. I suspect this is due to some files being .MQH files, but even those files are executing flawlessly too, plus I'm getting duplicate logs on actions which were not carried out more than once on the terminal.
Below is the condensed version of the code and the MQH files, all fully compiled, deployable and replicable if you choose.
If you do want to replicate this, move this to a 1m chart and an order will open on the next bar opening.
This was the last log I received today, as you can see, there are a few duplicate actions when each action was carried out once, i.e;
As standard practice, I'm printing errors when bool functions return false (or return thing thing you don't want it to return) with the GetLastError() function (although it's returning the Runtime Error #0 in the log).
(Note: "Trade Notification Message (TNM) feature's not included in this example)
The full log is as follows;
Has anyone else come across this issue or am I missing something obvious?
Many thanks,