There might be a case when you can stay on the same time frame, but this need to be tested.

In order to perform conservative backtest, stop orders should be processed before take orders. bt normally processes orders as first come - first go, so every time you issue buy entry order, stop order should be issued before take order. Using this and quicknotify to cancel remaining order can work.