There is a simple and a complicated way. The simple way is a one-minute bar period and exiting after one bar. The complicated way is using the minute() and seconds() functions for counting seconds in a TMF after opening the trade. However you'll need Zorro S or the tick data plugin for simulating that in the backtest.