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.
-
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
-
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 SantoshXX, Today, 03:09 AM
|
0 responses
6 views
0 likes
|
Last Post
by SantoshXX
Today, 03:09 AM
|
||
Started by DanielTynera, Today, 01:14 AM
|
0 responses
2 views
0 likes
|
Last Post
by DanielTynera
Today, 01:14 AM
|
||
Started by yertle, 04-18-2024, 08:38 AM
|
9 responses
41 views
0 likes
|
Last Post
by yertle
Today, 01:00 AM
|
||
Started by techgetgame, Yesterday, 11:42 PM
|
0 responses
12 views
0 likes
|
Last Post
by techgetgame
Yesterday, 11:42 PM
|
||
Started by sephichapdson, Yesterday, 11:36 PM
|
0 responses
2 views
0 likes
|
Last Post Yesterday, 11:36 PM |
Comment