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
- www.metatrader5.com
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.
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.
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)
It's working now thank you all.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I'm trying to work with ea but not working probably, it's not taking the deal.