PDA

View Full Version : Scaling Into positon using IOrder object


phineas
04-02-2008, 10:05 PM
I am working on how to scale into a position. I have used the sample strategy "SampleOnOrderUpdate" (from link below). I though it would be easiest to ask the question based on using that strategy.

Using that sample strategy, I have entered a 1 contract long position with associated profit target and stops.
After the position moves 1 pt into profit, I would like to add a second long contract (market order) , and increase the size of the Profit target order and Stop loss order, each from 1 to 2 contracts.

Do I use the same IOrder object (entryOrder), that was used for original entry. Or does a second IOrder object(entryOrder2?) need to be used, with Profit/stop_loss at the same level as originals.

Any advice would be appreciated.

Thanks,
Phineas

http://www.ninjatrader-support.com/vb/showthread.php?t=3917

NinjaTrader_Josh
04-03-2008, 01:22 AM
I would use a second IOrder since it seems like you would generally have two entry orders. This maintains you the flexibility to still reference your original entry order even after placing your second order.

phineas
04-03-2008, 09:28 AM
Josh,
Follow-up question. If I thought it was preferred to use just one IOrder object. Is it okay to use the same IOrder object identifier (entryOrder), for both the first and the second order placement ?
Phineas

NinjaTrader_Josh
04-03-2008, 08:02 PM
That depends on how you want to design your strategy. You will have to evaluate what your needs are and how you want to proceed with the issue.