grooooper,
The native conditional orders in the API only allow for a single action to be triggered - either the order can be submitted when the condition is true or cancelled when the order is true. So the other logic would need to reside in the API program. As JG mentioned, orders can't be paused from the API, so you would have to cancel/resubmit it. There could be a loop which:?
(1) waits until the underlying is within the range then submits the order with a conditional cancel attached
(2) monitors the orders status and if it is cancelled go back to state (1)
?
Josh