As my subject suggests,

I'm wondering if it's possible to place a pending market order on any market in MT4 or MT5 during market close. I've tried in MT4 to do it manually but it's not possible.
Now I'm wondering if it works on MT5 either manually or via an algorithm.

If it's only via an algo, is it also possible to place a kind of bracket order together with the market order for a TP/SL?

So in short, at the very split second the market opens, the algo executes a market order, and then automatically places TP/SL at a certain amounts of ticks away from the fill price.