I was actually hoping it could send a email when a trade is opened on my mt4 account. I have several ea's running on my account and like to know when they open a trade so I can monitor. FGB is one of them which I like to keep an eye on
tell me if u just want your EA to send you emails when it closes a trade
if so, here is the code:
//call the Notify() function in your code, after the ea closes trade
string OT; if(OrderType()==0) OT="BUY"; if(OrderType()==1) OT="SELL";
string Sb=StringConcatenate(AccountNumber()," ",AccountCompany());
string Bd=StringConcatenate("#",OrderTicket()," ",OT," ",DoubleToStr(OrderLots(),2)," ",OrderSymbol()," ",DoubleToStr(OrderOpenPrice(),5)," -> ",DoubleToStr(OrderClosePrice(),5),"\n\n","P/L=",DoubleToStr(OrderProfit(),2),", EQ=",DoubleToStr(AccountEquity(),2));
World Wide Invest was established in 2009 with a vision: To provide unmatched online trading solutions to a broad range of traders and investors group around the world.