Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
More complicated syntax
Collapse
X
-
More complicated syntax
When developing a strategy with a purpose of entering and exiting trades and <EnterLong()>(as an example) and SetProfitTarget() are applicable, why would you find it necessary to involve <OnOrderUpdate> and/or <OnExecutionUpdate()>?Tags: None
-
Hello galsermil,
That really depends on what your goals are for your strategy. OnOrderUpdate observes updates of order statuses and OnExcutionUpdate is called for executions. If your strategy needed to know when an order filled to do something you would use OnExecutionUpdate. If you needed to work with order objects you can use either OnOrderUpdate or OnExecutionUpdate to collect orders.
You can see an example of using those overrides here: https://ninjatrader.com/support/help...and_onexec.htm
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
88 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
134 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
119 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
67 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment