kjackson
11-28-2009, 01:03 PM
If I enter a long position with a particular signal name, and then I call both ExitLongStop and ExitLongLimit using the same signal name, if either the limit or the stop is hit, will the other always get automatically cancelled, ie. will this be an OCO order? In running the simulations that seems to be the case but I just want to verify that it the case always.
Also, in running the simulation, I find that my code might possibly cancel a current EnterLongStop and then switch to EnterShortStop. This seems to work okay, but when I cancel an order and then create a new order, should I use a different signal name, or is using the same signal name of an order I cancelled okay?
Thanks in advance,
Ken
Also, in running the simulation, I find that my code might possibly cancel a current EnterLongStop and then switch to EnterShortStop. This seems to work okay, but when I cancel an order and then create a new order, should I use a different signal name, or is using the same signal name of an order I cancelled okay?
Thanks in advance,
Ken