I believe this should be relatively simple to implement and would only require two basic rules for implementation.
1. While a trade is open (an order was filled), prevent any further orders (limit or market orders from either side) from being submitted.
2. Stop limit and limit orders from either side can be submitted simultaneously as long as no trade is open however, when a trade is open (an order was filled), cancel any pending limit/stop limit orders that did not originate from the open trade.
This should be able to be backtested as well/enabled the EA for MT4/Multicharts/etc. Also, It may be obvious but when cancelling limit/stop limit orders, this should only apply to other trades and not the TP/SL of the current trade.
Loop through the orders. Check if the time of opening the next trade only occurs after previous trade is closed out. Should be true for all trades recorded by the strategy.