Using FileReadArray instead of FileReadDouble divide my profits by 10..

 

Hi,

I wrote a function to see profits of each signals I used in my EA, it get those profits in files, and profits change if I use FileReadArray(handle, file, 0, 1) instead of FileReadDouble. I need to use array to write more informations in files, I currently write profits only.

So is there any difference to write:

FileWriteDouble(file, profit[0]);

or

FileWriteArray(file, profit, 0, 1);

?

 
Both are writing to bin file (if you need) you can use 1 constant (written in or elsewhere) for case/needed transform (to)any doubles and use the int's in other cases for speed up process.
 
rfb:
Both are writing to bin file (if you need) you can use 1 constant (written in or elsewhere) for case/needed transform (to)any doubles and use the int's in other cases for speed up process.

I'm not sure to understand what you mean, I actually use bin files, and I always write and read doubles data, so the result would change just because of the time it takes to process ?
 
No, the result will not be changed. Nothing wrong in the code. Probably you know the start position of writing.