View Full Version : ExitLong() does not cancel Stop/Target?
jcwolfe00
08-12-2008, 09:41 AM
So My strategy trails a stop below a certain MA but also has an exit signal when a faster MA crosses it. When the position is exited by the MA exit via the ExitLong() function the associated stop order is not canceled along with it. Is there a way to resolve this? I did not see a cancel all orders function or anything to that effect in the manual.
NinjaTrader_Ray
08-12-2008, 09:55 AM
What information do you use to confirmt that the stops/targets are not cancelled? Are the stops/targets being submitted by SetStopLoss() and SetProfitTarget()?
jcwolfe00
08-12-2008, 10:06 AM
What information do you use to confirmt that the stops/targets are not cancelled? Are the stops/targets being submitted by SetStopLoss() and SetProfitTarget()?
The stop is being submitted as a SetStopLoss().
I know the exit does not cancel the stop from trading simulation of the strategy.
NinjaTrader_Ray
08-12-2008, 11:09 AM
Is this Market Replay or connecting to a live feed and trading in the Sim101 account?
jcwolfe00
08-12-2008, 03:44 PM
I think I am getting some issues with some of my other strategies mixed up.
My apologies.
NinjaTrader_Ray
08-12-2008, 04:44 PM
No problem, thanks for reporting back.