When an ATS places a limit order, there is obviously a chance that this order may not be filled. How do people determine when it is time to cancel a limit order in an automated situation? Imposing a time limit on the order getting filled is the first thing that comes to mind, but I'm wondering what other people have implemented in the same situation.