Alerts & Notifications MT4
Your EA can warn you in MetaTrader 4 when it runs into an error, for example when it can’t open or close an order. It can show an alert in the terminal, send a push notification to your phone and send an e-mail.
In short:
- The EA’s inputs in the group Display & Notifications decide how it warns you.
- Alerts work at once. Push notifications and e-mail first need to be set up in MetaTrader 4.
- Changing the inputs needs a Pro export: a free export has no inputs.
What your EA notifies you about
Section titled “What your EA notifies you about”The inputs of your EA (in MetaTrader 4: the EA’s properties, Inputs tab), group Display & Notifications:
- Metatrader alert on error (default
true): an alert window with a sound in the terminal. - Send notification on error (default
true): a push notification to the MetaTrader 4 app on your phone. - Send e-mail on error (default
false): an e-mail with the error. - Display errors on chart (default
true) and Display warnings on chart (defaulttrue): the message on the chart the EA runs on. - Display order counts on chart (default
false): the number of open orders of the EA on the chart.
Each notification and e-mail names the EA by its magic number, so you know which EA it is about when you run several.
Enable notifications on the MT4 terminal
Section titled “Enable notifications on the MT4 terminal”Push notifications go to the MetaTrader 4 app on your phone. Follow these steps:
- Install the MetaTrader 4 app on your phone, open it and allow notifications. Find your MetaQuotes ID in the app’s settings.
- In MetaTrader 4 on your computer, log in to your trading account.
- Click Tools > Options and open the Notifications tab.
- Check Enable Push Notifications.
- Enter your MetaQuotes ID.
- Click Test to check that a notification arrives on your phone.
- Click OK to save.
Enable e-mail on the MT4 terminal
Section titled “Enable e-mail on the MT4 terminal”- Click Tools > Options and open the Email tab.
- Check Enable, and fill in the SMTP server, login and password of your mail account, and the From and To addresses.
- Click Test to send a test e-mail, then OK.
Then set Send e-mail on error to true in the EA’s inputs.
Enable notifications in the MT4 EA
Section titled “Enable notifications in the MT4 EA”- Attach the EA to a chart, or right-click it in the Navigator panel and click Properties.
- Open the Inputs tab and find the group Display & Notifications.
- Set the alerts, notifications and e-mail you want to
true, and the others tofalse. - Click OK.


The inputs are only in a Pro export: see Export to MT4 / MT5.
Trade notifications
Section titled “Trade notifications”MetaTrader 4 itself can also notify you of every trade, with or without an EA. In Tools > Options > Notifications:
- Notify of trade transactions: a push notification for every order your account opens, closes or changes.
Related
Section titled “Related”- Alerts & Notifications MT5
- Run your first EA: install the EA and attach it to a chart
- Settings: where Stop Loss and Take Profit are managed
MetaTrader is a registered trademark of MetaQuotes Ltd. EA Builder Pro is not affiliated with MetaQuotes.