Hi
You need to reset the request before creating a new one like this
MqlTradeRequest request; MqlTradeResult result; ZeroMemory(request);
Have a nice weekend👍📊

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
Hello,
I have been struggling for the past 2 days to understand what's wrong with my code.
I am new to coding. I have done similar EA's, but this is the first time I encounter this issue.
All seems good to me, I also used chatgpt to recheck the conditions and make sure to debug the errors and type it. It added a bunch of ways to check if there is an issue to the code- Still stuck- please if anyone has an idea on what's wrong let me know, much appreciated. I will attach the image of the issue.
EA idea is to highlight the high and low of the first 5 hours of the day, and if the price touched the high/low enter a buy\sell.