Support Board
Date/Time: Sun, 22 Dec 2024 11:48:42 +0000
Post From: CancelAllOrders and place new order
[2014-12-10 02:13:33] |
onnb - Posts: 662 |
I have a study that auto trades. In some cases, it places a limit order and if that order doesn't get filled within a certain time period, it cancels it and immediately places a market order. In replay it works fine but running it live, I have a Trade Activity Log where the order gets canceled but a new order is not placed. I have a couple of questions about this: 1. In general, is it ok to cancel a working order and then immediately place a new order (all in the same iteration of the study function)? We are thinking that maybe we need to wait a bit in between canceling one order and placing a new one. 2. In this case, does SC cancel the order with the broker and only after being canceled places the new order or does all this happen in parallel? |