Alert 0 popup

 

Hi,

I have an EA which is able to send pending orders using OrderSend function on an MT4 version 880. But when using version 890 , it stops working and Alert 0 pop up box is shown. any ideas what could have caused it? Seems like the version upgrade is the culprit .

 
lasergunpew:

Hi,

I have an EA which is able to send pending orders using OrderSend function on an MT4 version 880. But when using version 890 , it stops working and Alert 0 pop up box is shown. any ideas what could have caused it? Seems like the version upgrade is the culprit .

Which error is reported in the log ? Please show the relevant code.
 

 

 The error happened on a seperate PC , which i can try to get the logs . The code is as follows.

 

OrderSend(Symbol(),ordertype,Lot_Size1,input_price,3,input_price-PipsToPrice(max_risk_pips),input_price + PipsToPrice(TP1pips));
   if(GetLastError() != 0) Alert (GetLastError()); // Error ref: http://docs.mql4.com/constants/errors  
Trade Server Return Codes - MQL4 Documentation
  • docs.mql4.com
Trade Server Return Codes - MQL4 Documentation
 
lasergunpew:

 

 The error happened on a seperate PC , which i can try to get the logs . The code is as follows.

 

OrderSend(Symbol(),ordertype,Lot_Size1,input_price,3,input_price-PipsToPrice(max_risk_pips),input_price + PipsToPrice(TP1pips));
   if(GetLastError() != 0) Alert (GetLastError()); // Error ref: http://docs.mql4.com/constants/errors  
You have to read the documentation and fix your code.