During EA execution, I want to change the Push Notification Setting for MQ4L to Yes to be able to send out myself an immediate notification then take it back to No all from inside EA. That way, I hope I would prevent continuous notification alerts to my mobile phone for unwanted trade operations. Therefore, by default, I intend to keep it off, and make it on temporarily when I need a notification, then back it off again. e.g I only want to get notified when my order is opened not on every modification...
How to do that? Many thanks.
PS: I use MQL4 not MQL5, if your solution is only for MQL5 I won't be able to use it.
Well you could use a button for that for example this one:
Yes it is under your control you can disable notify of trade transactions and then add the notify to your code where you want it to notify you and additionally an on and off button on the chart.