Transaction History

 
How can I download my transaction or trade history in csv or xl?
 
Ajay Sharma: How can I …

Write the code (or pay someone).

 

Also, besides what has been states in the previous post, before asking, do a search—you will find several examples in the CodeBase.

 

Hi

It’s not a difficult to code, you should simply go in a loop for all historical trades and save the data you want as a text (you can write here ticket, lots, prices etc – converted to string and if you want to use different columns in excel for that use specified delimiter like “,’ or “;” ) in the txt file like this:

void writeInFile(string txt)
{
  int f = FileOpen(Filename+".csv",FILE_READ|FILE_SHARE_WRITE|FILE_WRITE|FILE_SHARE_READ);

  if(f>0)
  {
     FileSeek(f, 0, SEEK_END);
     FileWrite(f,txt);
     FileClose(f);
  }
}

Have a nice day👍📊

 
Marzena Maria Szmit #:

Hi

It’s not a difficult to code, you should simply go in a loop for all historical trades and save the data you want as a text (you can write here ticket, lots, prices etc – converted to string and if you want to use different columns in excel for that use specified delimiter like “,’ or “;” ) in the txt file like this:

Have a nice day👍📊

Thanks.