wie baue ich aus einem code einen ea?
hallo,
ich bin ziemlich neu im mql4 und habe einen code gefunden für einen ea. ich weiss aber nicht richtig wie ich daraus einen ea basteln kann. kann mir jemand helfen?
hier ist der code:
////////////////////////////////////
//call the Notify() function in your code, after the ea closes trade
void Notify(){
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));
SendMail(Sb,Bd);
}
/////////////////////////////////////
gruß und danke
|