Skip to content

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.

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 (default true): 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.

Push notifications go to the MetaTrader 4 app on your phone. Follow these steps:

  1. Install the MetaTrader 4 app on your phone, open it and allow notifications. Find your MetaQuotes ID in the app’s settings.
  2. In MetaTrader 4 on your computer, log in to your trading account.
  3. Click Tools > Options and open the Notifications tab.
  4. Check Enable Push Notifications.
  5. Enter your MetaQuotes ID.
  6. Click Test to check that a notification arrives on your phone.
  7. Click OK to save.
  1. Click Tools > Options and open the Email tab.
  2. Check Enable, and fill in the SMTP server, login and password of your mail account, and the From and To addresses.
  3. Click Test to send a test e-mail, then OK.

Then set Send e-mail on error to true in the EA’s inputs.

  1. Attach the EA to a chart, or right-click it in the Navigator panel and click Properties.
  2. Open the Inputs tab and find the group Display & Notifications.
  3. Set the alerts, notifications and e-mail you want to true, and the others to false.
  4. Click OK.
MT4 EA Inputs for alerts and notificationsMT4 EA Inputs for alerts and notifications
Configure alert settings in MT4 EA inputs

The inputs are only in a Pro export: see Export to MT4 / MT5.

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.

MetaTrader is a registered trademark of MetaQuotes Ltd. EA Builder Pro is not affiliated with MetaQuotes.