NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM 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 12-22-2011, 02:41 AM   #1
alex.nt
Senior Member
 
Join Date: Nov 2011
Posts: 136
Thanks: 41
Thanked 2 times in 2 posts
Default The best way to implement staggered exit

Greetings,

What is the best way in NinjaTrader to implement staggered exits?

For example, I enter position with 3 contract lots and the exit should be:
1) first contract exits at X1 ticks profit target
2) 2nd contract exits at X2 ticks profit target
3) The last goes until some condition is true

I know it is not a pure staggered exit but would appreciate your thoughts. May be NT has a native support for at least 1) and 2)

Thank you!
alex.nt is offline  
Reply With Quote
Old 12-22-2011, 06:43 AM   #2
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

Thanks for the forum post.

Yes you can do this in strategies with this sample code:

http://www.ninjatrader.com/support/f...ead.php?t=3225

So you would use this sample and call EnterLong("1"); EnterLong("2");, now you can separate out the exit conditions for each leg in strategy.

Let me know if I can be of further assistance.
NinjaTrader_Brett 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
How to implement Bid/Ask fills in Strategy Baruch Strategy Development 14 01-17-2011 11:43 AM
How do I implement this idea falcon00 Automated Trading 1 05-28-2010 05:35 AM
IDataSeries - Can we implement and pass to NT methods/functions? Brillo Indicator Development 9 04-27-2010 08:48 AM
Staggered ATM entry zepplin ATM Strategies (Discretionary Trading) 3 02-23-2009 07:09 AM
implement a function on NT kuroro13 Indicator Development 8 08-06-2008 05:31 PM


All times are GMT -6. The time now is 01:31 AM.