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 RideMe, 04-07-2024, 04:54 PM
|
5 responses
28 views
0 likes
|
Last Post Today, 08:48 AM | ||
Started by f.saeidi, Today, 08:13 AM
|
1 response
4 views
0 likes
|
Last Post Today, 08:47 AM | ||
Started by DavidHP, Today, 07:56 AM
|
1 response
6 views
0 likes
|
Last Post Today, 08:16 AM | ||
Started by kujista, Today, 06:23 AM
|
3 responses
10 views
0 likes
|
Last Post
by kujista
Today, 08:15 AM
|
||
Started by Mindset, Yesterday, 02:04 AM
|
2 responses
18 views
0 likes
|
Last Post Today, 08:15 AM |
Comment