I user enterlongstoplimit and entershortstoplimit orders. I'm getting the following errors. I believe it happens when the stop portion of the order gets hit, but the limit doesn't and my strategy tries to reset the order. (with MBT).
Replace rejected for reason: General Order Replace Error Affected Order: Buy 1 StopLimit @ 12230 x 12224
For the error above, if the price touches 12230, it sets a limit order at 12224. The limit order isn't filled and my strategy tries to reset the stop and limit amounts to different values.
Is this a bug, or am I doing something wrong? Would it be possible to have a "simulated" value for stoplimitorders where the stop portion would be simulated and if touched would just send a limit order?
-Erik
Comment