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 andrewtrades, Today, 04:57 PM
|
1 response
8 views
0 likes
|
Last Post Today, 05:02 PM | ||
Started by chbruno, Today, 04:10 PM
|
0 responses
6 views
0 likes
|
Last Post
by chbruno
Today, 04:10 PM
|
||
Started by josh18955, 03-25-2023, 11:16 AM
|
6 responses
436 views
0 likes
|
Last Post
by Delerium
Today, 03:42 PM
|
||
Started by FAQtrader, Today, 03:35 PM
|
0 responses
7 views
0 likes
|
Last Post
by FAQtrader
Today, 03:35 PM
|
||
Started by rocketman7, Today, 09:41 AM
|
5 responses
19 views
0 likes
|
Last Post Today, 03:33 PM |
Comment