EA doesnt enter a trade properly - help please

 

Hey guys.

I wrote an expert advisor and I have a little problem. I made it look at the last 10 , 1min candles. It should enter at a break of the highest/lowest point of that time period. Break of a high is a buy and break of a low is a sell. 

Some days it does now even open up a trade, sometimes it opens up a trade right and sometimes it opens up a trade like 8hours later or 1 hour later etc...

There are no errors in the journal or in the code.

I searched every forum....If there is anything you could think of please let me know, thanks!

 

Your topic has been moved to the section: Expert Advisors and Automated Trading — In the future, please consider which section is most appropriate for your query.

 

If you need help with your code, you will need to show your code.

Also show output from the Journal and Experts log relevant to the issue.

If nothing is shown, then add extra prints to your code so that it can be debugged more easily.

Show screenshots if relevant.

Reason: