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 Tim-c, Today, 08:36 AM
|
1 response
2 views
0 likes
|
Last Post Today, 08:45 AM | ||
Started by goodknight777, Today, 08:43 AM
|
0 responses
2 views
0 likes
|
Last Post Today, 08:43 AM | ||
Started by martini, Yesterday, 04:45 PM
|
3 responses
27 views
0 likes
|
Last Post Today, 08:38 AM | ||
Started by Mestor, Today, 03:15 AM
|
2 responses
10 views
0 likes
|
Last Post
by Mestor
Today, 08:36 AM
|
||
Started by roblogic, 11-30-2023, 06:20 PM
|
57 responses
1,364 views
0 likes
|
Last Post
by playr101
Today, 08:35 AM
|
Comment