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.htmlBertrandNinjaTrader Customer Service
-
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
-
Hi junkone, tick is whatever update your datasource gives you, so for example if you run it on CalculateOnBarClose = false you could have an idle time because no fresh tick has come in that would have triggerd your OnBarUpdate(). Have you debugged your strategy with Print() statements?BertrandNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by usazencort, Today, 01:16 AM
|
0 responses
1 view
0 likes
|
Last Post
by usazencort
Today, 01:16 AM
|
||
Started by kaywai, 09-01-2023, 08:44 PM
|
5 responses
603 views
0 likes
|
Last Post Today, 12:32 AM | ||
Started by xiinteractive, 04-09-2024, 08:08 AM
|
6 responses
22 views
0 likes
|
Last Post Today, 12:31 AM | ||
Started by Pattontje, Yesterday, 02:10 PM
|
2 responses
21 views
0 likes
|
Last Post
by Pattontje
Yesterday, 11:49 PM
|
||
Started by flybuzz, 04-21-2024, 04:07 PM
|
17 responses
230 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:45 PM
|
Comment