PDA

View Full Version : Exits not happening


DarrylT
01-11-2007, 02:12 AM
Hi,

I'm using v6.0.0.5 and simulation data. My code isusing these orders to exit an open long:

ExitLongStop(LongStopPrice, "LX_STP");

ExitLongLimit(LongTargetPrice, "LX_TRG");

I have Print statements showing when a long is open, and what the stop and target prices are. I've watched the chart a couple of times now as price hits and exceeds the limit order, but the position stays open. (I'm guessing the same behavior might be true for the stop but I haven't actually seen it.) Any suggestions?

Thanks.

NinjaTrader_Ray
01-11-2007, 02:31 AM
Can you confirm that there was a limit order working via the Control Center Orders Tab? If yes, do you mean that the market traded through the limit but the limit was not filled? Can you reproduce this consistently?

Thanks

DarrylT
01-11-2007, 02:38 AM
The Control Center does not show the orders, but the code to place them executed in the same block as the print statements showing the open position and exit prices. Yes, this appears to be consistent.

NinjaTrader_Ray
01-11-2007, 03:06 AM
Great,

Could you send me your script so I can reproduce the scenario on my end? Ray at ninjatrader dot com.

Thanks