PDA

View Full Version : AtmStrategyCreate


AO76
05-20-2007, 02:41 PM
I would like to enter an order using AtmStrategyCreate. But I have a few questions.

1) When the AtmStrategyCreate() line is executed does that create a DOM which appears on my screen?
2) the parameters limitprice, stopprice are set to 0 in your example I'm not sure what those values mean.

Thanks

NinjaTrader_Ray
05-20-2007, 04:37 PM
1) No but you can open a SuperDOM and monitor a strategy created via your script

2) Its the value of either the stop or limit price when submitting a limit, stop or stop limit order

AO76
05-20-2007, 07:17 PM
Ok.

I would like to enter a limit order so the limit parameter will be Bars.CurrentBid. I'm not putting a stop limit order so do I just leave it as 0?

AtmStrategyCreate(Action.Buy, OrderType.Limit, Bars.CurrentBid, 0, TimeInForce.Day, GetAtmStrategyUniqueId(), "ATM_SEMI_AUTO_YM_MOMENTUM_1M_LONG", GetAtmStrategyUniqueId());

NinjaTrader_Ray
05-20-2007, 07:33 PM
Yes, just leave it as zero.