Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
diff between onbarupdate and onmarket update
Collapse
X
-
Hi junkone,
The OnBarUpdate() is called for every bar's update - http://www.ninjatrader-support.com/H...dateEvent.html
This takes into account the CalculateOnBarClose setting - http://www.ninjatrader-support.com/H...BarClose1.html
When set to false, the OnBarUpdate() is called for every incoming tick.
The OnMarketData() is called for every change in Level1 data, for example Bid/Ask/Last/Volume - http://www.ninjatrader-support.com/H...arketData.html
OnMarketDepth would be used for Level2 data changes - http://www.ninjatrader-support.com/H...rketDepth.html
-
what defines tick in terms of IB as datasoruce. is it every bid/ask or is it the 5 sec update that IB sends.
the reason, i am very curious is that, my strategy subscribes to custom events. i can trace the processing to the event handler and it seems to process it. however further processing is not happening and the only bottle neck that i can see is that the strategy did not get a new barupdate tick and was waiting for it to come. i have seen it wait for the tick for as much as 20 seconds.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
144 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
71 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
125 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
79 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment