How do I get delta for a bar (ask volume - bid volume)

Joined
Dec 6, 2024
Posts
20
Likes
7
I'm trying to figure out how to get delta or ask volume / bid volume so I can calculate it myself. Looking through the docs I can only see a way to delineate ask/bid volume using DataSeries.Tick since it has a "isAskTick()" to show whether the tick (trade) happened at ask or at bid. Is there anyway to easily pull this data for a specific bar?
 
I can get trades from Tick and isAskTick() but still don't know what do use to get a bars delta (ask volume - bid volume). I tried messing around with .getBidClose / open and getAskClose / open but they all return 0 so I don't know where I can get the ask volume or bid volume per bar still.
 
My initial inkling was correct. There's no way to get delta per bar without using "onTick()" so you essentially have to add every trade to ask and bid volume variables using that and the "isAskTick()" method to delineate between the two
 
Top