Is it posible for EA to recognise opened order open time?

 

Hallo!

I have an idea to insert in my EA an option that could close the order if, it has met some criteria and it is opened yesterday or earlier.

Is it posible?

 
Reason: