But expert writes line by line from beginning of existing file. Perhaps it is necessary to tell expert to write to end of file with cycle statement, but I don't understand how write such cycle.
int FileHandle=FileOpen(FileName, FILE_BIN|FILE_WRITE|FILE_READ);if(FileHandle>0){FileSeek(FileHandle,0, SEEK_END);FileWrite(FileHandle,Text);FileClose(FileHandle);}
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Here is line from expert:
But expert writes line by line from beginning of existing file. Perhaps it is necessary to tell expert to write to end of file with cycle statement, but I don't understand how write such cycle.
Edward
To add data to the end of CSV file use FileSeek.
File handle is not boolean, here is your code that saves Time, Bid, Ask.
Enable experts, and attach it to chart. after the expert deataching your file data1.csv will have contents something like this:Can you make your ea only record the last 50 ticks?
Can you make your ea only record the last 50 ticks?