RobinMorajker: I tried to go through mql4 reference but it reads from binary file which I dont want to use.
-
Play videoPlease edit your post.
For large amounts of code, attach it.
- Read the documentation again. What does FILE_CSV mean?
WHRoeder:
I cleaned up the code but still there is a major problem as mentioned above...
-
Play videoPlease edit your post.
For large amounts of code, attach it.
- Read the documentation again. What does FILE_CSV mean?
- Why don't you print out the last error in your message, so you find out why.
- This file is placed in ...\MQL4\Files folder and is accessible to all the scripts.Are you trying to use the tester?
int m_handle=-1, count, line_count = 1;
Count has no value, so you will be trying to store in a random array element and will likely get array exceeded.

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
This is an ea to open orders based to time data supplied in a comma separated values in .csv file. It works brilliantly in a script but in an ea it simply unable to open file supplied.
The tester gives error:- "2015.03.16 04:41 TimeEA EURUSD,M1: I can't open the file."
the time data is supplied in data.txt formatted as:- date,hour,minute
This file is placed in ...\MQL4\Files folder and is accessible to all the scripts.
How to correct that error?