Question about MQL4 and pending orders

Can an MQL4 expert advisor do something like this? I don’t want a code just want to know if it’s even possible. At 8am everyday open a buy and sell pending order 10 pips from whatever the opening price is and then close whichever is not hit. So if it opens at 1.2000 there would be a buy order at 1.2010 and a sell order at 1.9090? And depending on which way it moves one order will be placed and the other will be cancelled. Basically following the momentum of the beginning of the day. Is this possible?