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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
72 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
39 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
63 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
63 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment