Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
ExitOnClose = false is not working
Collapse
X
-
Hello,
Thank you for your note.
The Exit On Close is still getting executed, I suspect that when you start the strategy or run a back test when setting up the parameters please make double sure it is set to false here. Then run the back test one more time still occurs?
I look forward to assisting you further.
-
Thanks for the fast reply!
There's no change whether I pick 'GTC' or 'Day' for 'Time in Force'. GTC is my default.
I'm using the Default 24/7 session template (In my Session Manager anyways... maybe it's using a different one for backtesting?)
Thanks for your help.
Leave a comment:
-
Hello bswerd,
Thank you for your post.
In your strategy backtest parameters, what do you have the Order Properties 'Time in force' set to? Day or GTC?
What session template are you testing this on?
Leave a comment:
-
ExitOnClose = false is not working
Hello,
In my script in the Initialize() function, I have ExitOnClose = false.
However, when I run a backtest, it still sells all of my shares on the last day before it exits. I would like for the backtest to terminate with open positions. Otherwise, it messes up the statistics for my automated strategy.
I've added a couple of screenshots to show you what is happening.
Any help would be much appreciated. I'm at a loss here.Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by foxtrott21, Today, 08:27 AM
|
0 responses
1 view
0 likes
|
Last Post
by foxtrott21
Today, 08:27 AM
|
||
Started by jaypelle3, Today, 08:26 AM
|
0 responses
1 view
0 likes
|
Last Post
by jaypelle3
Today, 08:26 AM
|
||
Started by linkcou, Today, 07:01 AM
|
2 responses
18 views
0 likes
|
Last Post
by bltdavid
Today, 08:25 AM
|
||
Started by jaypelle3, Today, 08:25 AM
|
0 responses
1 view
0 likes
|
Last Post
by jaypelle3
Today, 08:25 AM
|
||
Started by jaypelle3, Today, 08:22 AM
|
0 responses
2 views
0 likes
|
Last Post
by jaypelle3
Today, 08:22 AM
|
Leave a comment: