look at FileReadNumber() and FileReadString() which work with CSV files. Your "," delimiter is the terminating token for each call of these functions.
the ones you use are for BINARY files. Different format...
FileReadNumber() reads in valid number characters for types int/double until delimiter is seen.
FileReadString() reads in characters until delimiter is seen and since comma is your delimiter, the file data looks ok for that.
Just replace the ones you are using with above two.
That is not making sense. Are you saying I should not use comma "," or that I am using the wrong methods to get the data? The data type for the number I am pulling in is double, so shouldn't I use FileReaddouble?
Aslo, this is the same code I pulled from the File Operations information here on this site. File Operations.
I am sorry I am confused at what you are saying the problem is.
Greeeat Job...
Hi dear
What isthe right code for this EA?
and if we have just 3 prices in the FIL3DATA and want to change BuyFirst to TakeProfit and remove BuySecond what shall to do?
and the typ of order is buy limit and sell limit.
Thanks a lot for ane hellping ;-)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I wrote this code and put it in my EA's init location. Each time I start the EA, I want to read in this file.
File data looks like this:
Error:
2009.07.19 14:04:24 Callout1: attempt to read binary data from a CSV file
File is located in ...\experts\files\