PDA

View Full Version : Why can't I have two stop orders pending?


cassb
04-13-2008, 08:32 PM
I want to have two stop orders pending (or one pending and one working) in opposite directions - one is a long stop and one is a short stop order. However, Strategy Analyzer will not allow this situation -- I found this on this Help Guide Page:

http://www.ninjatrader-support.com/HelpGuideV6/helpguide.html?DevelopTradingLogic


Methods that generate orders (excluding market orders) to enter a position will be ignored if:

The strategy position is flat and an order submitted by an enter method (EnterLongLimit() (http://www.ninjatrader-support.com/vb/../HelpGuideV6/EnterLongLimit.html) for example) is active and the order is used to open a position in the opposite direction
I can or course do this type of stop order setup manually - why can't I do it with the Strategy Analyzer? I have a legitimate reason to do this.

Thanks,
Bryan

NinjaTrader_Josh
04-13-2008, 10:40 PM
The reason is to prevent unwanted strategy positions. If you still wish to do so I suggest running two strategies simultaneously, but please be aware of the potential implications of running such orders in that configuration.

cassb
04-14-2008, 06:50 AM
Yes, I am aware, and I set up my order quantities and stops to prevent problems. So how do you run two strategies at the same time in the Analyzer or in a chart trader window? Is there a help guide page on this?

Thanks!

NinjaTrader_Dierk
04-14-2008, 06:54 AM
- you can't backtest multiple strategies the same time in strategy analyzer
- you can run multiple strategies simultaneously on the chart by selecting these strategies in Right click->Strategies
- you also can run multiple strategies simultaneously on the control center, strategies tab

cassb
04-14-2008, 06:58 AM
OK, thank you Dierk!

cassb
04-14-2008, 07:36 AM
Actually, Josh gave me an idea. I can have two pending stop orders in opposite directions at the same time, right? So, when one of the two is filled, I'll just cancel the other that was still pending. Then after the open order is closed, I'll just place the two pending stop orders again. Rinse and repeat. :)

NinjaTrader_Josh
04-15-2008, 01:44 AM
Please see the help guide article on Internal Order Handling Rules. You may run into some of those. If you are using two separate strategies there will be no issue though.