double G_time;
if (Sell order && G_time != Time[0]) {
if (PopUp_Alert) Alert(“Sell signal on “, Symbol(), “, TimeFrame: “, Period());
G_time = Time[0];
if (Email_Alert) {
SendMail(“Sell signal on ” + Symbol() + “, TimeFrame: ” + Period() + ” at ” + TimeToStr(G_time, TIME_DATE), “Sell signal on ” + Symbol() + “, TimeFrame: ” + Period() + ” at ” + TimeToStr(G_time, TIME_DATE));
}
}
if (Buy order && G_time != Time[0]) {
if (PopUp_Alert) Alert(“Buy signal on “, Symbol(), “, TimeFrame: “, Period());
G_time = Time[0];
if (Email_Alert) {
SendMail(“Buy signal on ” + Symbol() + “, TimeFrame: ” + Period() + ” at ” + TimeToStr(G_time, TIME_DATE), “Buy signal on ” + Symbol() + “, TimeFrame: ” + Period() + ” at ” + TimeToStr(G_time, TIME_DATE));
}
Leave a Reply