|07-21-2008, 09:14 AM||#1|
Join Date: Apr 2008
Thanked 0 times in 0 posts
help on EnterLongLimit
the price at 10:00am is 1.5820 and I place a buy limit @1.5800. At 10:08am, the price reaches 1.5798 and it suppose to trigger my buy limit order. I use
OnBarUpdate() /* based on 1min chart */
if (cond1) EnterLongLimit(1.5800);
I use OnOrderUpdate() to check the status, it changes from
I don't understand why it is cancelled.
Pls show me how to set the limitprice in EnterLongLimit ?
|07-21-2008, 09:46 AM||#2|
Join Date: Nov 2004
Location: Denver, CO, USA
Thanked 45 times in 32 posts
Orders are only active for the bar they are placed unless you re-submit them or, pass in the parameter liveUntilCancelled = true if you use the long version of the EnterLongLimit() method.
NinjaTrader Customer Service
|Thread||Thread Starter||Forum||Replies||Last Post|
|EnterLongLimit order||mike8943||Strategy Development||3||07-04-2008 01:47 PM|
|EnterLongLimit and stoploss||ct||Strategy Development||1||12-31-2007 09:18 PM|
|Strange Behaviour with EnterLongLimit and Short Position||simone||Strategy Development||21||12-01-2007 12:48 AM|