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 NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
79 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
148 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
79 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
52 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
58 views
0 likes
|
Last Post
|

Comment