![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Senior Member
Join Date: Nov 2011
Posts: 136
Thanks: 41
Thanked 2 times in 2 posts
|
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! |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
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.
Brett
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |