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 argusthome, Yesterday, 10:06 AM
|
0 responses
14 views
0 likes
|
Last Post
by argusthome
Yesterday, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
11 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
9 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
4 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
31 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment