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. On the desktop they are not there yet. On the server they can already be there: an indicator which reads them sees the future, and its history no longer matches what it calculates in realtime. The bars of another resolution of the symbol (the 30 minutes bars on a 5 minutes chart) are asked for with RequestResolution, see Other resolutions.

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