Skip to main content
An indicator reads its data from VAn, the chart API.

Bars

The totals in VolTotList[0] (InfoVolClass): Never read bars after VAn.BarIndex during the history: they are not there yet.

Prices as integer ticks

Volume data is indexed by the price as an integer number of ticks, called PinT. Convert with:

Volume by price

The volume traded at each price of a bar is built only for the indicators which ask for it, in OnSet:
Then, for each bar:
Check bar.PriceList and bar.VbpListAll for null: some symbols and data feeds have no volume by price.

Trades

With OnTickCall set, OnTick receives every trade of the bar still open:
where Feed is an alias: using Feed = VolumetricaAPI.Connection.Structure;. Ask for the trades in realtime only (CallHandler.RT) and take the history from the totals of the bars. The trades of the history are available only on the desktop, see Desktop only features.

The chart