PDA

View Full Version : Control Center question


Burga1
12-18-2007, 05:21 PM
Hi,

I'm using the following code within a strategy to cancel an order when entry conditions change (tick-by-tick basis):

CancelOrder(OrderID3);

It seems to work OK, however in the Control Center the associated order doesn't seem to change its status from "Accepted"...shouldn't it change to "Cancelled"?

NinjaTrader_Josh
12-18-2007, 09:55 PM
Will look into this and report with findings.

Burga1
12-18-2007, 10:01 PM
Thanks, but you probably don't need to bother...I think what is happening is that the order is being "reset/recalculated" since it is running on a tick-by-tick basis...thus as long as the order condition remains "true" it stays at "accepted". It does appear to be modifying entry price as it does this.

NinjaTrader_Josh
12-19-2007, 11:51 PM
The order changes to cancelled on my test strategy in the Control Center. As you stated it is probably just the resubmission that you are seeing for your order.