Good grief. Thanks.
Now, the other good thing to come out of this is a timely reminder to all yo mql4 devs to remember to get some rest!
I saw Carpe Noctem somewhere, perhaps I shouldve ignored it.
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
OK, I've been on it now for ages, time to get a sanity check.
The code below is only the important parts of my EA, which operates fine, but in order to get a more automated way of calculating the best stoploss without trawling back through visual charts, I write open close and peak pull back for each trade. You'll note that after a filewrite I fileflush and remembered to fileclose on deinit. I have not tested this in forward, only in the mt4 back tester. I'm checking the file in the tester\files folder and the file is created ok and the header is written in the file ok too.
I'm in debt to anyone who can suggest why my EA is not writing to the file in start() after it successful creates and writes to it in the init fn. Cheers