Hey there! Just a quick post to say that recently a lot of people have been getting the following error when trying to download MetaTrader 4 from the official MetaQuotes website: 416 Requested Range Not Satisfiable I am sure that this is a temporary issue, however to assist you with this challenge here are some […]
Hello dear friends! In the previous article we discussed the process of setting up MetaTrader 4 for sending email notifications. Also, as a proof-of-concept we sent our very first MT4 email alert. Today we will delve deeper into the topic of MQL4 email notifications and we will learn how to send combine useful information in the emails our FX Robots send to us!
The MT4 SendMail function
As you recall, the MQL4 function responsible for sending emails is the SendMail. This function takes two parameters:
string subject, // header
string some_text // email text
The subject parameter will be displayed as the subject of your email, and some_text is the email message. (more…)
In this short article we will discuss how to setup your Expert Advisor so to get an MT4 email alert every time a significant event occurs. A significant event can be anything like successful execution of an order, or a position being closed at StopLoss, or even simply the price crossing a certain level. It’s up to you to decide when you want your FX Robot to send an email notification.
Step 1 – Open a Gmail Account
It is important to understand that MetaTrader 4 cannot send an MT4 email alert on its own. The only way your trading platform can do this is through an existing email account.
Of course, for this purpose you can use your personal email account. However, that way you may run into complications when configuring the SMTP server. Gmail is tried and tested, and generally speaking, I find that this is the easiest approach. (more…)