Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Last Trade Type
Collapse
X
-
One quick glance at the example in given link - It is evaluating the trade in OnBarUpdate(), this is something i am already struggling to get rid of. I guess i want it to do in OnExecution(), would it be possible and will it give me correct result in Historeical data Backtesting process ?Originally posted by NinjaTrader_Bertrand View Post
-
spaceTrader, yes you can access it in this context as well, and it would also be called in historical processing. However the updated trade would be guaranteed to be included only is the position update is fully processed, that is on the next OnBarUpdate call then.
Generally this sequence would be seen as orders / execution / positions are processed -
OnOrderUpdate() > OnExecution() > OnPositionUpdate()
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
673 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
379 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
111 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
577 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
582 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment