Send notification on trade open/close to count all accounts were executed.

 

I have a bunch of accounts (on different MT4 instances) that I have running the same EA. To be sure all is opening/closing trades correctly I want to make som kind of alarm

for me to detect when accounts fail to execute a trade transaction.

Since mql4 is "Sandbox" it is hard, but I wanted to reach out here to see if anyone has any idea to solve this dilemma. I have set up mobile notifications. Those are kind of

difficult to get a quick overview of, since every account sends a notification and I need to audit every single message and then delete them for the next execution.

I'd rather have a number of how many accounts sent a message. Any suggestions how to solve this? Thanks!

 

Assuming that your acct.no. differ in the last 3 numbers I would calc:

 string acct = (string)(AccountInfoInteger(ACCOUNT_LOGIN) % 1000); // not tested, just typed!

and start the PushNotification with it.

 
Carl Schreib
Carl Schreiber #:

Assuming that your acct.no. differ in the last 3 numbers I would calc:

and start the PushNotification with it.


Thanks Carl, but I don't get it. Would this solution not send a notification to mobile MT4 for every account? Please explain.
 
How to set notification? i been using a while and found out no notification show when there is a message came in. 
 

Ideal, I think, would be to write to a common file and do a count from that information. The problem is the "Sandbox". How would I go about getting information outside the MT4 structure and

write to a file reachable by all MT4 instances?