You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Check out the new article: Building Automated Daily Trading Reports with the SendMail Function.
We build an MQL5 Expert Advisor that emails a structured daily trading report. The article shows how to configure SMTP in MetaTrader 5, collect and filter closed trades for the previous day, compute totals for profit, wins, losses, and trade count, and assemble account details into the subject and body. You also schedule one send per day and prevent duplicates using daily candle detection.
Traders often struggle to keep track of their performance at the end of each trading day, as manual review of trades in MetaTrader 5 can be time-consuming and prone to oversight. However, MetaTrader 5 does not provide a built-in system for automatically generating structured daily trading reports and sending them via email in a formatted way.
In this article, we will build a system that automates the generation of daily trading reports directly from MetaTrader 5. You will learn how to retrieve historical trade data within a specified time range, calculate key performance metrics, and dynamically construct an email subject and body based on account activity. Finally, we will automate the process by sending the report once per day using the SendMail() function, giving you a consistent and hands-free trading journal delivered directly to your inbox.
Author: ALGOYIN LTD