Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Do not Exit on Close - Daily Data
Collapse
X
-
Do not Exit on Close - Daily Data
Hello, I am a new user. I want to keep any positions open at the end of a backtest but no matter what settings I use (including Exit on Close = false), the backtest always exits out of all my positions. I am using Daily data so I don't know how this may affect it. There is no logic in my strategy do exit out (I am just testing with a simple strategy). -
Hello Buzzard72,
Thank you for your post and welcome to the NinjaTrader Support Forum!
The Strategy Analyzer will close the historic positions when the To Date is reached in the test. The positions taken in the backtests are not any real account, they are taken on a backtest account.
You can however, go to Tools > Options > Strategies > NinjaScript > 'On starting real-time strategy' > enable 'Immediately submit live working historical orders' > OK. Then enable a strategy on your chart or the Strategies tab of the Control Center and make sure to set 'Sync account position' to True.
This will set up your strategy to calculate on historical data as it normally would but will ensure the positions that are still open after the historical data are taken in real-time.
For information on running NinjaScript Strategies please visit the following link: http://www.ninjatrader.com/support/h...strategies.htm
Please let me know if I may be of further assistance.
-
Originally posted by NinjaTrader_PatrickH View PostHello Buzzard72,
Thank you for your post and welcome to the NinjaTrader Support Forum!
The Strategy Analyzer will close the historic positions when the To Date is reached in the test. The positions taken in the backtests are not any real account, they are taken on a backtest account.
You can however, go to Tools > Options > Strategies > NinjaScript > 'On starting real-time strategy' > enable 'Immediately submit live working historical orders' > OK. Then enable a strategy on your chart or the Strategies tab of the Control Center and make sure to set 'Sync account position' to True.
This will set up your strategy to calculate on historical data as it normally would but will ensure the positions that are still open after the historical data are taken in real-time.
For information on running NinjaScript Strategies please visit the following link: http://www.ninjatrader.com/support/h...strategies.htm
Please let me know if I may be of further assistance.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ageeholdings, Today, 07:43 AM
|
0 responses
7 views
0 likes
|
Last Post
by ageeholdings
Today, 07:43 AM
|
||
Started by pibrew, Today, 06:37 AM
|
0 responses
4 views
0 likes
|
Last Post
by pibrew
Today, 06:37 AM
|
||
Started by rbeckmann05, Yesterday, 06:48 PM
|
1 response
14 views
0 likes
|
Last Post
by bltdavid
Today, 05:43 AM
|
||
Started by llanqui, Today, 03:53 AM
|
0 responses
6 views
0 likes
|
Last Post
by llanqui
Today, 03:53 AM
|
||
Started by burtoninlondon, Today, 12:38 AM
|
0 responses
12 views
0 likes
|
Last Post Today, 12:38 AM |
Comment