Download MetaTrader 5

Help on EA error fixing

To add comments, please log in or register
Financialabs
62
Financialabs  

Hi,

I just downloaded the code from this very nice article:

https://www.mql5.com/en/articles/100

Code can be downloaded here:

http://p.mql5.com/data/2/100/my_first_ea__4.mq5 

Unfortunately when I run it on the simulator I get the following errors: 

 2011.11.13 23:39:58 2011.11.01 14:20:00   Alert: The Sell order request could not be completed -error:4756
 2011.11.13 23:39:58 2011.11.01 14:20:00   failed instant sell 1.00 EURUSD at 1.36833 sl: 1.37133 tp: 1.35833 [Invalid request]

 

No trades are executed.

Could someone help fixing?

I posted into article discussion but no one answered. 

Thanks

 

Step-By-Step Guide to writing an Expert Advisor in MQL5 for Beginners
  • 2010.06.09
  • Samuel
  • www.mql5.com
The Expert Advisors programming in MQL5 is simple, and you can learn it easy. In this step by step guide, you will see the basic steps required in writing a simple Expert Advisor based on a developed trading strategy. The structure of an Expert Advisor, the use of built-in technical indicators and trading functions, the details of the Debug mode and use of the Strategy Tester are presented.
To add comments, please log in or register