lasergunpew:
Which error is reported in the log ? Please show the relevant code.
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 .
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:
You have to read the documentation and fix your 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
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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 .