![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Oct 2007
Location: Southy Florida
Posts: 263
Thanks: 16
Thanked 1 time in 1 post
|
It is easy to use ExitOnClose, but is there a way to "Exit on bar close"?
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
|
edgeliner, unfortunately not. You could try adding a check like
Code:
if (Position.MarketPosition == MarketPosition.Long)
ExitLong();
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Exit Position Seconds Before Bar Close | djdinut1 | Strategy Development | 29 | 03-08-2011 12:11 PM |
| Exit on Bar Close | stephen_mcse | Strategy Development | 1 | 10-28-2009 03:30 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 positions on current bar close | forextim | Strategy Development | 1 | 11-12-2008 08:39 AM |