Skip to content
All library documents

Email Notifications for New and Closed Expert Advisor Trades

Article MQL5 code base

Summary

OrderNotify is an expert advisor watcher that emails information whenever a trade is opened or closed. The message is intended to include details about the affected trade, allowing a user to receive notifications from an expert advisor’s activity.

To use it, email credentials must be configured in the platform’s options and checked with a test message. The document says the expert advisor belongs in the MQL4 Experts directory and has no additional inputs. It also notes that the first loop after enabling the tool does not send email; notifications are sent for subsequent new or closed orders. This is operational guidance for trade monitoring, not a trading method, and it gives no details about message fields, delivery reliability, or testing results.

Key ideas

  • The expert advisor sends an email when a trade is opened or closed.
  • Notifications include information about the affected trade.
  • Email credentials must be configured and tested in the platform settings.
  • The expert advisor is placed in the MQL4 Experts directory and requires no extra inputs.
  • The initial loop after activation does not send an email.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.