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 11-18-2008, 08:40 PM   #1
madhav_ab
Junior Member
 
Join Date: Jun 2008
Posts: 10
Thanks: 1
Thanked 0 times in 0 posts
Default Timed Limit order

Hello:
Currently in my strategy, I am using market orders to take on positions. I would like to change this such that I start of by entering a Limit order and then after 'x' seconds if the order is not filled, cancel this limit order and enter a market order.

Any help is appreciated.

Thanks,
Madhav
madhav_ab is offline  
Reply With Quote
Old 11-19-2008, 07:37 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Madhav,

It would be easier to work in terms of "x bars have passed". Then you can just run with your own bar counter to determine this. If this is unacceptable then you will need to use custom timer events. Please see the reference sample for that here: http://www.ninjatrader-support2.com/...ead.php?t=5965
NinjaTrader_Josh 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
Virtual Limit Order Sorcerysoft Strategy Development 1 11-05-2008 08:20 AM
Limit to Market order HelloHello Automated Trading 2 08-28-2007 12:39 PM
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 12:11 PM.