ORDER_TIME_DAY not respected

 

Hi all, I'm testing an expert on D1 time frame in which I wrote the following condition to open pending orders

request_type = ORDER_TIME_DAY

I see that in some cases pending orders are not deleted at the end of the day.

What could be the reason?

Thank you

[Deleted]  
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
MQL5 forum: Expert Advisors and Automated Trading
MQL5 forum: Expert Advisors and Automated Trading
  • www.mql5.com
How to create an Expert Advisor (a trading robot) for Forex trading
 
Alberto Tortella:

Hi all, I'm testing an expert on D1 time frame in which I wrote the following condition to open pending orders

request_type = ORDER_TIME_DAY

I see that in some cases pending orders are not deleted at the end of the day.

What could be the reason?

Thank you

Some are deleted and some are not ? On the same account ?

Please provide more details.