mq4: Last minute of day is running? Close all at end of day?

 

Hi Experts, i need know when the last minute of day is running in my EA. It's for backtesting years of DAX-Index in order to close some postions at end of day.

Usually it's always the same time hour=21 && minute=59. But unfortunately during years it has been changed in the DAX-Index often and my data is very bad (1M ohlc, some missing). And we have sometimes summer and winter time^^.

Any solution how to know, that its last chance to close Orders for this day?

At the moment i can use Brokers ActivTrades and FXPRO.


Thank you!

Reason: