Simulating stock scanning on historical data

Hello All,
I have written an AFL that is expected to scan in the live market every 1 min and send orders to brokers.
I can use the Bar Replay feature on single stock and test if the orders are punched in. But without live market, It is not possible to scan periodically on historical data. So I am unable to test a few features in my algorithm. Is there any way to simulate that?