Download MetaTrader 5
To add comments, please log in or register
MQL5 library has more than 1500 apps already. Contribute your own one!
grafzero
17
grafzero 2014.02.07 11:33 

Hello guys

i have little problem with this code

void OnInit

OpenFile(xxx,FILE_WRITE||FILE_BIN );

OnTick or OnTimer i drop some data to array then

OnDeinit()

FileWriteArray(xxx,0,WHOLE_ARRAY)

FileClose(xxx)

and thats working fine in expert adv. After removing expert from chart i can access my file and get the data i want.

Problem starts when i try to do this in system tester...

I tried to put FileClose() in all places like OnTester, OnDeinit even in some mql5 functions like OnTesterInit ect but when i start system testing i see that my file xxx is created and has 0 bytes but after when testing is done file is still 0 and i cant access to it or delete it so i assume that file is still open by the program and FileClose didnt work...

I have to close MT4 terminal to delete those files....

Any idea ?

Ubzen
Moderator
5394
Ubzen 2014.02.07 13:46  
Try contacting the service with additional information. Link.
/
To add comments, please log in or register