Maybe the "slide order" function helps.. Here's an example
https://fxdreema.com/shared/eldrdmecb
Such precision trading will come with some problems:
Generally the spread widens just before news
Your broker might not allow moving the pending orders all the way to Ask price
There may not be new ticks before the news, so you want to use the OnTimer instead of OnTick
There's also the usual "kickback" to opposite direction before breakout, but that's purely a strategy question