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 Jonafare, 12-06-2012, 03:48 PM
|
5 responses
3,986 views
0 likes
|
Last Post
by rene69851
Today, 01:44 PM
|
||
Started by Fitspressorest, Today, 01:38 PM
|
0 responses
2 views
0 likes
|
Last Post Today, 01:38 PM | ||
Started by Jonker, Today, 01:19 PM
|
0 responses
2 views
0 likes
|
Last Post
by Jonker
Today, 01:19 PM
|
||
Started by futtrader, Today, 01:16 PM
|
0 responses
8 views
0 likes
|
Last Post
by futtrader
Today, 01:16 PM
|
||
Net Change
by Segwin
Started by Segwin, 05-07-2018, 02:15 PM
|
14 responses
1,792 views
0 likes
|
Last Post
by aligator
Today, 11:47 AM
|
Comment