The image represents the order book data with columns having following attributes:
a0: Best ASK price (i.e. the lowest posted price at which someone is willing to sell an asset)
b0: Best BID price (i.e. the highest posted price at which someone is willing to buy an asset)
az0: Best ASK size (i.e. the number of lots being offered for selling at the lowest ask price)
bz0: Best BID size (i.e. the number of lots that people are trying to buy at the bid price)
What I want is to convert order book data into OHCL formate (Open, High, Low and Close). The other information that I have is the following:
Features:
atv: feature representing one fraction of trading volume ( in number of lots )
btv: feature representing another fraction of trading volume ( in number of lots )
(atv + btv = total number of trades in the day so far)
tbq: sum of all the BID ( buy ) sizes in the market
tsq: sum of all the ASK ( sell ) sizes in the market
All the above variables are for a derivative instrument 2.