What would be your advice? What changes should I do to avoid errors?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Multi-Thread OnExecutionUpdate
Collapse
X
-
Multi-Thread OnExecutionUpdate
I use OnExecutionUpdate instead of OnOrderUpdate because it is supposed to be updated more frequently. But, after reading about the Multi-Thread issues I am wondering if I have to make any changes in the OnExecutionUpdate code block or directly use OnOrderUpdate .
What would be your advice? What changes should I do to avoid errors? -
Hello guillembm,
Thank you for your post.
What errors are you running into specifically?
OnExecutionUpdate() would not necessarily update more than OnOrderUpdate(). OnExecutionUpdate() will update when an execution of an order submitted by the strategy is executed. OnOrderUpdate() will update when an order is updated, which will likely occur more often than OnExecutionUpdate().
Please visit the following links for more information on OnExecutionUpdate() and- OnExecutionUpdate(): https://ninjatrader.com/support/help...tionupdate.htm
- OnOrderUpdate(): https://ninjatrader.com/support/help...rderupdate.htm
What logic are you processing in OnExecutionsUpdate() that generates these errors and please explain why you are placing it in OnExecutionUpdate()?
I look forward to your response.Last edited by NinjaTrader_PatrickH; 02-05-2018, 10:38 AM.
-
I still haven't arrived at this point of the migration. I was reading about multi-threading in your help and, honestly, I was a little bit scared about it.
I use to plan before programming to avoid errors. I use OnExecutionUpdate because I deal with partial fills. When I started developing for NT7 I read in a post that OnExecutionUpdate was more accurate and updated more frequently the order status
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Enkidu, Yesterday, 06:40 AM
|
9 responses
34 views
0 likes
|
Last Post
by Enkidu
Yesterday, 01:11 PM
|
||
Started by Mestor, 03-10-2023, 01:50 AM
|
12 responses
307 views
0 likes
|
Last Post
by z.franck
Today, 04:29 AM
|
||
Started by AgriTrdr, 07-16-2023, 12:54 PM
|
32 responses
267 views
0 likes
|
Last Post
by f.saeidi
Yesterday, 06:49 AM
|
||
Started by Mestor, Today, 03:15 AM
|
0 responses
2 views
0 likes
|
Last Post
by Mestor
Today, 03:15 AM
|
||
Started by Padan, Today, 02:02 AM
|
0 responses
6 views
0 likes
|
Last Post
by Padan
Today, 02:02 AM
|
Comment