Create private journal log file for external trade actions?

 

Hi,

i would like to create a second journal log file for all trade actions happening in MT4 even if they are excecuted on another computer by another mt4 client.

Can this only be done by creating an expert advisor or is there another way to force mt4 to log trade actions (Open, Modify, Close) excecuted by another mt4 client?

Unfortunally mt4 logs only trades in the journal that are excecuted local by an EA or manually. Does anybody had this problem before or has an idea how to create a log for trades excecuted by a client on another computer?

 
paralize:

i would like to create a second journal log file for all trade actions happening in MT4 even if they are excecuted on another computer by another mt4 client.

Can this only be done by creating an expert advisor or is there another way to force mt4 to log trade actions (Open, Modify, Close) excecuted by another mt4 client?

Unfortunally mt4 logs only trades in the journal that are excecuted local by an EA or manually. Does anybody had this problem before or has an idea how to create a log for trades excecuted by a client on another computer?

If the OS has access to the log folders of the secondary MT4 installation ('MT4\logs', 'MT4\experts\logs') then u can have the EA access these folders via WinAPI file functions, read the expert & journal logs and copy the needed information to a local file/s. A potential problem with this approach is that these logs are not necessarily flushed in real time, hence there might be a significant delay...


Here's some info about using WinAPI file functions -> https://www.mql5.com/en/forum/125740. Note that u can't use the built-in file functions since they are limited to accessing certain folders only ('experts\files', etc.).