Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
nT8- OnPreExitOnClose Event
Collapse
X
-
nT8- OnPreExitOnClose Event
nT8- OnPreExitOnClose Event to allow developers to gracefully deal with dissapearing working orders and stuck unprotected positionsTags: None
-
Hello,
Good thought I added suggestion #327. As a workaround (Which you may have already implemented) you could handle it yourself since the code in our handling is fairly straightforward.
# Start a timer and check about every 1 second that the current time is not greater then or equal to exit on close time.
You would likely trigger your logic for example 5 seconds ahead of the set exit on close time.BrettNinjaTrader Product Management
-
Yes i know - but as you are already doing this - its nothing for you to add an event that fires when it actually happens.... and will help many 10000s of people with their code...Originally posted by NinjaTrader_Brett View PostHello,
Good thought I added suggestion #327. As a workaround (Which you may have already implemented) you could handle it yourself since the code in our handling is fairly straightforward.
# Start a timer and check about every 1 second that the current time is not greater then or equal to exit on close time.
You would likely trigger your logic for example 5 seconds ahead of the set exit on close time.
Your solution. work for bakctesting and yes i do know how to code for that...
the point is its better to have an event :-)
Comment
-
Ah ok sorry i am multitaksing - that always cuases issues :-)Originally posted by NinjaTrader_Brett View PostFor sure, understood and I wrote down the suggestion to our list. I was just providing you a workaround to use immediately.
Thanks for reporting this.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, Today, 06:46 AM
|
0 responses
9 views
0 likes
|
Last Post
by Mindset
Today, 06:46 AM
|
||
|
Started by M4ndoo, Yesterday, 05:21 PM
|
0 responses
14 views
0 likes
|
Last Post
by M4ndoo
Yesterday, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
15 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
82 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
48 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment