Anyone have any clue (or some other EA/FAQ etc) out there on how do I cancel a pending order if price moves past a particular level?

Example price is currently at 1.45, I have a sell pending order in 1.40, however if price strikes 1.50 the pending order will be cancelled.