NinjaTrader Support Forum  

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 06-21-2012, 04:32 PM   #16
JRagsdale
Junior Member
 
Join Date: Mar 2011
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
Default I'm confused about exit on close and disable strategy

My strategy is a simple moving average cross. It is also set to flatten 660 seconds prior to the session close at 4:15EST. All of a sudden, my strategy is being disabled at the same time and I want it to continue running.

The strategy is set to "Exit on Close" I thought that meant to flatten on close. What should i do?
JRagsdale is offline  
Reply With Quote
Old 06-21-2012, 07:23 PM   #17
koganam
Senior Member
 
Join Date: Feb 2008
Location: Durham, North Carolina, USA
Posts: 3,356
Thanks: 24
Thanked 1,304 times in 1,067 posts
Send a message via Skype™ to koganam
Default

Quote:
Originally Posted by JRagsdale View Post
My strategy is a simple moving average cross. It is also set to flatten 660 seconds prior to the session close at 4:15EST. All of a sudden, my strategy is being disabled at the same time and I want it to continue running.

The strategy is set to "Exit on Close" I thought that meant to flatten on close. What should i do?
"Flatten" means "Flatten". That is "go flat" and stay out. If you want your strategy to just exit all order but remain running, then tell it to do so with ExitLong() and ExitShort() at the exit time that you want it to happen.
koganam 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 can strategy enter/exit at current day's close price rnhoo ATM Strategies (Discretionary Trading) 13 02-11-2011 03:41 AM
entry/exit overlay - enable and disable feature jonathan Miscellaneous Support 8 02-07-2011 07:53 PM
Exit-on-close handling initiated after market close tooearly Automated Trading 3 08-05-2009 08:07 AM
Enter at Close, Exit next day Close tjendra Strategy Development 3 04-08-2009 11:33 AM
'Exit on Close' in Strategy Wizard Elliott Wave Strategy Development 1 05-07-2008 10:14 PM


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