How to check if any pending order is opened

 
I would like to send an e-mail when a pending order is opened. Is there any way or ML4 function to check if the order status change from "pending" to "open"? Thank you.