![]() |
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 |
|
Junior Member
Join Date: Dec 2009
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
Hello,
Please forgive if this is a stupid question, I'm a NT newbie. I have a strategy that is always in either a long or short position depending on whether a fast moving average crosses below or above a slow moving average. So, basically, when the strategy is in a long position and the indicator says to go short, it will close its long position and immediately place an order to go short. My question is, I want to set the option in my "strategy" tab to be "Wait Until Flat"...but if I'm immediately going from a long position to a short position (and vice versa) at the same time, will it still register as having "been flat?" My fear is that right now my strategy position is long and my actual position is flat, but when the indicator says to go short, that the short order still won't go through to my broker because since the long exit and short entry orders are happening concurrently I never really will be "flat". Thanks for any light anybody can shed on this. Edwin |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
|
Edwin, welcome to our forums - yes 'WaitUntilFlat' would still work in this case of a 'always in' strategy, as there's a brief flat state registered when the strategy reverses the position...
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Dec 2009
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
Perfect! Many thanks for the quick response!
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can I include "flat" MA conditions in strategy? | karlmonte | Strategy Development | 18 | 02-20-2013 05:31 AM |
| "Wait while Windows Configures Ninja Trader 6.5" | Prospectus | Installation and Licensing | 6 | 05-27-2009 09:44 PM |
| summary of "strategy realized" is not equal "account performance, total net profit"" | Fragolino | Miscellaneous Support | 1 | 02-19-2009 04:12 AM |
| Please add "Calmar" and "Sterling" ratios to Performance._Trades.TradesPerformance | Elliott Wave | Suggestions And Feedback | 2 | 06-10-2008 09:57 PM |
| Show "Flat" if an Overnight Trade is Closed | aspTrader | Miscellaneous Support | 6 | 05-10-2005 01:39 AM |