Script reads from CSV but EA does not.. Why??????????
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.
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?
Note:This post has been edited as there were gross mistakes in the previous one. Thanks to WHRoeder