This code will execute easily in a script. However the EA fails to open the data file. I simply dont understand the reason why script can access data.txt while EA with the same code cannot.
The data.txt is put in ...\MQL4\Files folder
The tester gives error:- "2015.03.16 04:41 TimeEA EURUSD,M1: I can't open the file."
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 was eagerly waiting to reply "Thank God it's only Burton", ... turned out, ... huh.
Just kidding Burton, people are too serious over here in this forum, seriously no kidding :)
Have fun.
:D
I have modified the script even further to open orders based on time data supplied in results.txt or data.txt.
Time data is supplied on each line as :- date, hour, minute
So that EA opens one sell order on that date at that hour and minute.
This code will execute easily in a script. However the EA fails to open the data file. I simply dont understand the reason why script can access data.txt while EA with the same code cannot.
The data.txt is put in ...\MQL4\Files folder
The tester gives error:- "2015.03.16 04:41 TimeEA EURUSD,M1: I can't open the file."
How to correct this error?
Open your file in ANSI mode.
Thanks, you solved my problem too