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 01-24-2012, 06:42 AM   #1
sherazwaqar
Member
 
Join Date: Oct 2011
Posts: 50
Thanks: 4
Thanked 8 times in 7 posts
Default Strategy Advance Order Management

I want to program a feature in strategy that will

1) Create a limit order on lets say EMA(8) of the bar on which certain conditions are met,

2) and if order is not filled and the bar is completed, it will cancel the previous order and create a new limit order on the EMA(8) of the next bar.
3) The strategy should do this for 5 bars and if order is not filled, it should cancel the order.

I have programmed (1) and (3) and I need some help with (2).

Thanks
sherazwaqar is offline  
Reply With Quote
Old 01-24-2012, 07:27 AM   #2
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

sherazwaqar,

Here is a relevant reference sample : http://www.ninjatrader.com/support/f...ad.php?t=18890

Please let me know if I may assist further.
NinjaTrader_AdamP 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
Auto Strategy Order Management Issue MiniDowTrader Automated Trading 9 01-19-2012 08:49 AM
Strategy Development - order management mdgtrader Automated Trading 3 06-12-2009 09:10 AM
Order Management--Order Via Strategy and SuperDOM? djdinut1 Strategy Development 3 05-28-2009 12:58 PM
order management and strategy wizard billm ATM Strategies (Discretionary Trading) 1 09-27-2008 11:51 PM
Strategy Management order handling latkinso Suggestions And Feedback 1 02-15-2008 06:56 AM


All times are GMT -6. The time now is 03:13 PM.