Author |
Topic: Calculating bid/ask volume data and OnPriceTick (3 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
CWhite140 Posts: 9 Joined: Feb 28, 2013 |
I'd like to classify the volume if it occurs on the bid or the ask. Is the bid/ask data that arrives in PriceChanged event the bid/ask at the time the volume was executed or the bid/ask at the present?
If it is the "present" bid/ask, is there a more accurate way for us to get this data such as using OnPriceTick? And that leads me to another question, OnPriceTick doesn't have a fields flag for changed fields. As such, how do we know if a field value has changed? How do we know if it is a new trade with new volume or just a quote change? Curtis White |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
OnPriceTick is raising on quote changes. You need to consider to use tick subscription: every tick comes with bid/ask at the moment when we received the tick from exchange.
Victor Vins Lead Software Developer |
||||
CWhite140 Posts: 9 Joined: Feb 28, 2013 |
Right and that is my second part of question, we have a need to track those quote changes but there is no "flag" that tells us whats changed -- so how do we know?
We'd expect a flag that to raise to let us know okay ASK changed, or BID changes or TRADE Changed. My question is what sort of logic can we use to "know" that say we have a new trade? Curtis White |
||||