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 NullPointStrategies, Today, 05:17 AM
|
0 responses
44 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
126 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
65 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment