The error message has changed between your posts.
This error in post #30 is the error I would expect and the error that I advised you should be getting in post #29
The code you have posted in post #30 is guaranteed to be rejected. The stop is being placed at 0.
To ensure that an order is placed at 9:29:45 (or at least on the first tick received after 9:29:45, you must use a 15 second, 5 second, or 1 second chart. This way the bar can close at 9:29:45.
Then your stop price must be above the current ask.
double stopPrice = GetCurrentAsk() + 5 * TickSize; EnterLongStopLimit(DefaultQuantity, stopPrice + 1 * TickSize, stopPrice, "");
Comment