Hi, how can I dynamically build a parameter list for FileWrite? The number of columns is always the same, as I have a few loops through all timeframes, but I really want the loops. I suppose, the code will become ugly if I start the following:
FileWrite(file_handle, par1, par2, par3, arrayvalue, arrayvalue, arrayvalue);
My ideal code would fill the parameter list right out of the loop for arrayvalue. Would that be possible?
It's actually a huge amount of data, i.e. many columns. I bumped also with the 63 parameter limit of FilwWrite, so I had to rethink the export entirely.
The solution which works now for me:
// Write header:
WriteData("Symbol");WriteData("OrderType");WriteData("Lot");WriteData("Open");WriteData("Low");.... // lots of more columns hereWriteData("\n");
// then write data ...