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 SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
52 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
24 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
16 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
23 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
24 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment