AFAIK, stop-market orders triggering on IB is always based on bid/ask prices, for example, a stop-market sell order is triggered when ask price hits the stop price, the order is then executed as a market order.
Also 5 seconds is too long to execute a market order, if you check attached time and...