I made an EA that compiled without problems... but when I tried to test it, no sells or sales were made. How can I solve this problem?

Discover new MetaTrader 5 opportunities with MQL5 community and services
- 2025.06.10
- www.mql5.com
MQL5: language of trade strategies built-in the MetaTrader 5 Trading Platform, allows writing your own trading robots, technical indicators, scripts and libraries of functions
- Partial close in MQL5...?
- Need help ive got 2 errors don't know how to finish the code
- why err = Position doesnt exist.
Samuel Cornelio:
please edit your msg and add your code via the CODE S button in the msg editor.
But just a quick look and i can not see any fill type which could be your issue, or if your code is done by an AI or online generator, then, there could be other issues. If this is obvious to other readers, you will not get any responses. But no one can read it if you do not use the CODE S button that formats and makes pretty colours so we can read it.
I do not see any ArrayAsSeries in your code either. And your Copy lines == 1? whats that? i imagine there is another issue. It seems that i was correct. It is made by an AI or online generator, right? Samuel Cornelio:
I made an EA that compiled without problems... but when I tried to test it, no sells or sales were made. How can I solve this problem?
thanks for formatting the code. it is much easier to read, however, the issues i mention are more obvious now. If you fix those 3 issues, i think that it will work. But i wont respond after this as it is clear to me that you did not code it yourself.

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