NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 02-12-2009, 11:25 AM   #1
xewoox
Senior Member
 
Join Date: Dec 2008
Posts: 118
Thanks: 0
Thanked 0 times in 0 posts
Default Limit Order

In my strategy, I have placed a long position and I am in.
Then I placed a limit order to exit when the Close touches the limit price. It did not get filled, I subsequent change the higher price for my limit order. What I observe is that the limit order is not execute at all. Eventhough the command is execute in the code (Because I echo print what I execute in the alert window). Has anyone have such an experience?
xewoox is offline  
Reply With Quote
Old 02-12-2009, 11:42 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
Default

Please rerun the strategy with TraceOrders = true and see if you spot the cause of this.

You can also try putting in directly GetCurrentBid / GetCurrentAsk as limit price.
NinjaTrader_Bertrand is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Enter limit order but convert it to market order end of bar maxpi Strategy Development 3 05-07-2009 05:57 PM
Limit order question? ju1234 Strategy Development 3 11-24-2008 07:15 AM
Timed Limit order madhav_ab Strategy Development 1 11-19-2008 07:37 AM
The Convert limit order to market order HelloHello Automated Trading 0 08-17-2007 02:10 PM
Submit Limit Entry Order and Stop Loss Order at same time? aspTrader Miscellaneous Support 2 10-04-2006 02:40 AM


All times are GMT -6. The time now is 05:42 PM.