How to link EA orders to iPhone email

First, to achieve via MT4 → yahoo mail → iPhone mail,

From MT4 options → Email, set the following.

1. SMTP server information of Yahoo mail

2. Yahoo mail login information

3. Yahoo mail password

4, Yahoo mail

5. iPhone mail

* After setting 1-5, press the “Test” button and it will be successful if it arrives in your iPhone mail.

* If it doesn't work, you may need to restart MT4.

Next, under the OrderSend function of the EA program (mq4)

When implemented with the following feeling,

When the relevant EA places an order,

You can skip order contents to iPhone mail.

string msg = “”;
msg = msg + “Currency pair:“ + OrderSymbol () + ”\ r \ n”;
msg = msg + “Order type:“ + OrderType () + ”\ r \ n”;
msg = msg + “Order quantity:“ + DoubleToStr (OrderLots (), 2) + ”\ r \ n”;
msg = msg + “Rate:“ + OrderOpenPrice () + ”\ r \ n”;
msg = msg + “Stop:“ + OrderStopLoss () + ”\ r \ n”;
msg = msg + “Limit:“ + OrderTakeProfit () + ”\ r \ n”;
msg = msg + “Magic No.:“ + OrderMagicNumber () + ”\ r \ n”;
msg = msg + “Open date and time:“ + TimeToStr (OrderOpenTime (), TIME_DATE | TIME_MINUTES) + ”\ r \ n”;
msg = msg + “Order number:“ + OrderTicket () + ”\ r \ n”;
msg = msg + “\ r \ n”;

SendMail (“MT4”, msg);

Translate »