Hi!
Can anyone please tell me a solution for this problem that the message I tried to write in excel (.csv) was written in single column of a row altogether. Not in different columns.
My code was this:
string handle = "testingexcel.csv";
int myexcelhandle = FileOpen(handle, FILE_READ|FILE_WRITE|FILE_CSV);
FileSeek(myexcelhandle, 0, SEEK_END);
FileWrite(myexcelhandle, "Time", TimeCurrent(), "Price", iClose(NULL, PERIOD_CURRENT, 1));
FileClose(myexcelhandle);
- Help Writing to .CSV file.
- csv file, new data in a new line....
- export stop price in Excel
Sal Mod: Not in different columns.
-
Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum (2019)
Messages Editor -
FileWrite(myexcelhandle, "Time", TimeCurrent(), "Price", iClose(NULL, PERIOD_CURRENT, 1));
You wrote four (4) columns in your call. Why does that surprise you?
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register