After you've Exported your EA and are running the EA on a demo- or live account, you can setup alerts & notifications to allow your EA to alert you, when it requires your attention. Keep on reading to learn how to.
Alerts are enabled by default on MetaTrader, but to enable notifications we have to make sure we enable notifications on the MT4 or 5 terminal. Then, we also have to setup notifications on the EA.
To enable notifications for MT4, please follow these steps:
Please note that you need to have the MetaTrader mobile app installed on your smartphone and be logged in with the same account to receive notifications successfully. Additionally, ensure that you have allowed notifications for the MetaTrader app in your mobile device's settings.
Now, you should receive notifications on your mobile device whenever there are important events or alerts in your MT4 trading account.
You can also setup informational notifications to get notified when trades have taken place. This is standard MetaTrader functionality and doesn't need to be configured in your EA. However, when going to 'Tools' -> 'Options' -> Notifications (tab), you will need to check the extra checkbox to receive those notifications. The checkbox is called 'Notify of trade transactions'.
Now let's configure your EA to send alerts & notifications. Open your EA's properties. Open the 'Inputs' tab. You will now see your EA's inputs, including the inputs required to enable alerts & notifications.
In the image above you see the settings required to enable alerts & notifications. Now, the last thing to do is to make sure you set the alert/ notification/ e-mail setting(s) to 'true' if you want the EA to send you messages when it requires your attention. Disclaimer: Never leave your Account unattended, even with alerts & notifications enabled, since those can fail too.
To enable notifications for MT5, please follow these steps:
Please note that you need to have the MetaTrader mobile app installed on your smartphone and be logged in with the same account to receive notifications successfully. Additionally, ensure that you have allowed notifications for the MetaTrader app in your mobile device's settings.
From now on, you should receive push notifications on your mobile device for important events and alerts within your MetaTrader 5 trading account.
You can also setup informational notifications to get notified when trades have taken place. This is standard MetaTrader functionality and doesn't need to be configured in your EA. However, when going to 'Tools' -> 'Options' -> Notifications (tab), you will need to check the extra checkboxes to receive those notifications. The checkboxes are called 'Notifications from the local terminal' and 'Notifications from the trade server'. Enable both.
Open your EA's properties. On the Properties window, open the 'Inputs' tab. You will now see your EA's inputs, including the inputs required to enable alerts & notifications.
In the image above you see the settings required to enable alerts & notifications. Now, the last thing to do is to make sure you set the alert/ notification/ e-mail setting(s) to 'true' if you want the EA to send you messages when it requires your attention. Disclaimer: Never leave your Account unattended, even with alerts & notifications enabled, since those can fail too.