OrderPrint - is it possible to send the output to another file other than the log ?

 

OrderPrint - is it possible to send the output to another file other than the log ?

 

nop FileWrite() does

 

Hi Mick

Probably your best bet is to make up a string or strings of the info which this function uses (see docs etc.) and o/p to [folder\]file of your choice in or under ...\files\..

Also, you could write to any location by using Win api. Use search box. Author jjc:

Reading and writing files anywhere on disk using CreateFileA() etc.

https://www.mql5.com/en/forum/118999

 
fbj:

Hi Mick

Probably your best bet is to make up a string or strings of the info which this function uses (see docs etc.) and o/p to [folder\]file of your choice in or under ...\files\..

Also, you could write to any location by using Win api. Use search box. Author jjc:

Reading and writing files anywhere on disk using CreateFileA() etc.

https://www.mql5.com/en/forum/118999


thankyou very much :-)
 
MickGlancy:

OrderPrint - is it possible to send the output to another file other than the log ?


You could use a dll to write to excel. The file is here somewhere in the forum, it is called mt4excel.dll. Just put a function inside start() that detect when OrdersTotal() change. You could use it to keep track of your orders and use Excel to evaluate different EA/Strategies/Systems. I tried to attach the file along with an example of the usage, but no avail.
Reason: