Is this possible to close orders before news arrives?

 

Hi!

Is this possible to close orders before news arrives?

eg:

when High/Medium impact news arrives after 30min-1hr, i check all open/pending orders and to be close/delete orders.

How to find and add news time to my EA?

Your help is appreciated.