Record trade profits/losses question.

 
Hi all! Does anyone have any ideas on how to record all trade profits/losses for an expert advisor? I believe I can use "double" datatype and arrays to record all profit/losses, but I am looking for other more efficient ways to record large quantities of this specific data. Thanks!
 
Use an array or a few arrays.
 
Hi Simon! Thanks sir :)
 

Heres code taken from the codebase program TradeNewsEA. The code seeks the end of a file and writes the string to the file stamping it with the date and time.

int Write(string str)
{
   int handle;
  
   handle = FileOpen(filename,FILE_READ|FILE_WRITE|FILE_CSV,"/t");
   FileSeek(handle, 0, SEEK_END);      
   FileWrite(handle,str + " Time " + TimeToStr(CurTime(),TIME_DATE|TIME_SECONDS));
    FileClose(handle);
}
 
Ickyrus:

Heres code taken from the codebase program TradeNewsEA. The code seeks the end of a file and writes the string to the file stamping it with the date and time.

Thank you much Ickyrus! :)