View Full Version : OnMarketData() & CalculateOnBarClose
mrlogik
07-30-2008, 11:54 AM
Hi,
Can someone please validate the following;
When setting CalculateOnBarClose = false, the OnBarUpdate() is called on each new bid Tick, or for either a new Bid / Ask tick?
I know OnMarketData() is called for either.
Thanks
Anthony
NinjaTrader_Dierk
07-30-2008, 12:13 PM
Is called for each new tick. But not for bid/ask.
mrlogik
07-30-2008, 12:37 PM
Thanks Dierk,
To clarify, we're working on a bid chart; is each new tick defined as a bid tick? What constitutes a new tick?
Thanks again.
NinjaTrader_Dierk
07-30-2008, 12:39 PM
NT6.5 does not support bid charts.
mrlogik
07-30-2008, 01:19 PM
Dierk,
I'm confused.
You wrote some time ago that its hard coded (http://www.ninjatrader-support.com/vb/showthread.php?t=8612) to "bid".
Can you please clarify?
NinjaTrader_Dierk
07-30-2008, 01:22 PM
Charts are built off ticks. If a provider does not support "ticks" for currencies, then NT generates ticks from the bid. However, NT charts always are built from ticks.
mrlogik
07-30-2008, 01:35 PM
Okay.
How does a tick correlate to the a bid price change or an ask price change?
Also, does MB support "ticks" for currencies, or are you creating a chart based on the Bid price?
Thanks again.
NinjaTrader_Ray
07-30-2008, 01:54 PM
If an FX provider does not support a last traded price event --> As a bid price event comes in, NT throws this event and duplicates it as a last price event at the core level. Any object downstream using last price behaves as expected off of this last price event that was generated by the bid price event.
I believe we do get a last event from MBT but they tie it back to bid as well.
mrlogik
07-30-2008, 03:22 PM
Dierk,
Thanks for taking the time to provide such a helpful answer.
I under stand now.
Anthony