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 adeelshahzad, Today, 11:49 AM
|
2 responses
4 views
0 likes
|
Last Post
by adeelshahzad
Today, 12:15 PM
|
||
Started by spottysallrite, Today, 11:31 AM
|
2 responses
6 views
0 likes
|
Last Post Today, 12:21 PM | ||
Started by johnMoss, 03-04-2024, 01:53 PM
|
2 responses
33 views
0 likes
|
Last Post
by Overnhou
Today, 11:21 AM
|
||
Started by Padan, Today, 02:02 AM
|
5 responses
17 views
0 likes
|
Last Post Today, 11:14 AM | ||
Started by Lele2k24, Yesterday, 11:24 AM
|
8 responses
29 views
0 likes
|
Last Post
by Lele2k24
Today, 11:00 AM
|
Comment