Alerts & Notifications

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.

Jump to instructions for MT4 or MT5

MetaTrader 4

Enabling alerts & notifications on the MT4 terminal

To enable notifications for MT4, please follow these steps:

  1. Open MT4: Launch the MetaTrader 4 platform on your computer.
  2. Login: Log in to your trading account if you haven't already.
  3. Go to Options: Click on the "Tools" menu at the top of the platform, then select "Options."
  4. Notifications Settings: In the Options window, navigate to the "Notifications" tab.
  5. Enable Notifications: Check the box that says "Enable Push Notifications."
  6. Enter MetaQuotes ID: You'll need to enter your MetaQuotes ID. To obtain this ID, you should have the MetaTrader 4 mobile app installed on your smartphone. Open the app, go to Settings, and find your MetaQuotes ID there. Enter this ID in the appropriate field in the MT4 platform.
  7. Test Notification: You can click the "Test" button to ensure that notifications are working correctly. If everything is set up correctly, you should receive a test notification on your mobile device.
  8. Save Settings: Click "OK" to save your notification settings.

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'.

Enabling notifications on the MT4 EA

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.

alerts and notification inputs MT4
EA Inputs - MT4

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.

MetaTrader 5

Enabling alerts & notifications on the MT5 terminal

To enable notifications for MT5, please follow these steps:

  1. Launch MT5: Start the MetaTrader 5 platform on your computer.
  2. Login: Log in to your trading account within MT5.
  3. Access Settings: Click on the "Tools" menu at the top of the platform, then choose "Options."
  4. Notifications Tab: In the Options window, go to the "Notifications" tab.
  5. Enable Push Notifications: Check the box that says "Enable Push Notifications."
  6. MetaQuotes ID: Similar to MT4, you'll need to enter your MetaQuotes ID. Obtain this ID from the MetaTrader 5 mobile app by going to Settings and finding your MetaQuotes ID there. Enter it in the corresponding field in the MT5 platform.
  7. Test Notification: Click the "Test" button to verify that notifications are functioning correctly. You should receive a test notification on your mobile device if the settings are correct.
  8. Save Changes: Click "OK" to save your notification settings.

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.

Enabling notifications on the MT5 EA

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.

alerts and notification inputs MT5
EA Inputs - MT5

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.