My Robot does not open Operations: what to do MT5

Yazeedashrafi  

I'm trying to work with ea but not working probably, it's not taking the deal.

Carl Schreiber  

Use debugging to find the problem:

https://www.metatrader5.com/en/metaeditor/help/development/debug // Code debugging
https://www.mql5.com/en/articles/2041 // Error Handling and Logging in MQL5
https://www.mql5.com/en/articles/272 // Tracing, Debugging and Structural Analysis of Source Code
https://www.mql5.com/en/articles/35 // scroll down to: "Launching and Debuggin"
Tips from a professional programmer (Part  I): Code storing, debugging and compiling. Working with projects and logs
https://www.mql5.com/en/articles/9266
Tips from a professional programmer (Part II): Storing and exchanging parameters between an Expert Advisor, scripts and external programs
https://www.mql5.com/en/articles/9327

Code debugging - Developing programs - MetaEditor Help
  • www.metatrader5.com
MetaEditor has a built-in debugger allowing you to check a program execution step by step (by individual functions). Place breakpoints in the code...
Yazeedashrafi  
Carl Schreiber #:

Use debugging to find the problem:

https://www.metatrader5.com/en/metaeditor/help/development/debug // Code debugging
https://www.mql5.com/en/articles/2041 // Error Handling and Logging in MQL5
https://www.mql5.com/en/articles/272 // Tracing, Debugging and Structural Analysis of Source Code
https://www.mql5.com/en/articles/35 // scroll down to: "Launching and Debuggin"
Tips from a professional programmer (Part  I): Code storing, debugging and compiling. Working with projects and logs
https://www.mql5.com/en/articles/9266
Tips from a professional programmer (Part II): Storing and exchanging parameters between an Expert Advisor, scripts and external programs
https://www.mql5.com/en/articles/9327

I'm not having errors but not taking the deal it's just playing.

Fernando Carreiro  
Yazeedashrafi #: I'm not having errors but not taking the deal it's just playing.

That is exactly why you should use the debugger, to find logic bugs.

You can also use Print() at various points in your code to output the state of things to the log to help you find logic problems too.

Both methods work and it is just up to you to use what is more comfortable for you.

Since you did not supply your EA code, not output from the Experts and Journal log, this is as much as we can do for you — either use Print() or the built-in debugger, or a combination of both, to find your logic bug.

Fernando Carreiro  

If you need further help, then please provide the following:

  • Information about the trading environment:
  • Netting or Hedging account
  • Symbol being traded and screenshot of the contract specifications
  • A screenshot of the chart with the EA attached.
  • Output from the "Experts" log
  • Output from the "Journal" log
  • Source code of EA with the issue (see note below)
EDIT: Please note, that this assumes that it's your own EA or that you have the source code. If not, then please tell us that, but supply the rest of the information I listed above.
Reason: