How to block MT4's "Multiple Close by" command from an EA

 

Hi,

I was wondering if anyone from this community can help, please.

I would like to have an EA running all the time and whenever I use the Multiple Close by button in MT4 (that is every time I manually click and try to modify the order) an alert is generated.

How to identify this event originating from MT4 with an EA?

The reason would be to prevent from closing multiple orders at once. If 1 order is modified from the MT4 button, then it should process it. But if I want to "Multiple Close by", then I want the EA to cancel the command.


Thank you.