Skip to content
All library documents

Generating Trade Reports and Sending FTP and Email Notifications in MQL5

Article MQL5 articles

Summary

This MQL5 tutorial describes a script that turns account deal history into an HTML trade report, with tables grouping deals into positions and images showing balance and current-instrument price charts. It explains selecting a reporting window, processing deal history to reconstruct position entries and exits, creating chart screenshots, and optionally publishing the report and image files to a server through the terminal's FTP settings.

The article also shows how trade programs can send event details by email and how a timer can send periodic price messages; an email-to-SMS gateway can route those notices to a phone. The examples are implementation guidance, not a trading strategy or performance study. Report content is limited to available deal history and the current instrument chart, while FTP and notifications depend on external server, terminal, and email gateway configuration.

Key ideas

  • Deal history can be processed to group executions into position entries and exits for a report.
  • The report combines a deal table with balance and price chart images.
  • MQL5 can publish generated report files through configured FTP access.
  • Trade event or timer callbacks can send email messages that an email-to-SMS service may forward.

Tags

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