when calculating the delta in NT8 it is usually checked whether the price is equal or bigger then the ask, then volume is counted as Ask volume. Or if the price is equal or smaller then the bid, then volume is counted as Bid Volume.
I have exported the historical data for a month and checked the first tick of each session.
It seems that the first tick of a session always has price = ask = bid.
Using this code in e.g. OnDataPoint is not correct as it would always count the first tick as bid volume:
if (close <= bid) barDelta -= volume; else if (close >= ask) barDelta += volume;
How can I find out whether the volume of the first tick of a session can be counted as bid volume or as ask volume?
Thank you!
Armin
Comment