Manually stopping & starting the bot is unreasonable. How can I programmatically kick it back into gear when the next session begins?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
ExitOnClose = true kills Strategy?
Collapse
X
-
ExitOnClose = true kills Strategy?
I had ExitOnClose = true in the Initialize() method as I do not want to hold positions overnight. I noticed that when a position was closed by ExitOnClose, the strategy failed to continue running at the next FirstTickOfSession -- I would certainly expect the strategy to start executing orders again in the new session.
Manually stopping & starting the bot is unreasonable. How can I programmatically kick it back into gear when the next session begins?Tags: None
-
OK, I have just seen the same behaviour with the StopLoss - After the system closed the position, no more entries are taken.
The code is running. What else can prevent orders without telling me anything in the output window?
When my code closes a position, no problem. Next entry is taken.
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
115 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
161 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
83 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
127 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
87 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment