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.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 12-07-2009, 02:19 AM   #1
gobears
Junior Member
 
Join Date: Dec 2009
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default "Wait Until Flat" Question

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
gobears is offline  
Reply With Quote
 

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 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


All times are GMT -6. The time now is 02:46 PM.