BarInfo Object
Description
This object is used for identifying and selecting bar tables. For example, if you need to compress tick data into minute bars, you would call Connection.CompressTicks. After creating a bar table you would then want to request records from it using Connection.ReadByRecord or Connection.ReadByDate. These functions require a BarInfo object in order to identify the minute bar table.
Remarks
If an invalid Interval is passed to this object, the following error is thrown: 1001 (Invalid time interval).
BarInfo Object are used only by Selection
Objects. If a Selection Object's
DataType property is dtTick,
the BarInfo Object is ignored since tick
tables do not have intervals or date range selections (tick tables contain
simply ticks, not bars). The Connection.CompressTicks
function is used to create bar tables.
Public Properties
![]() |
Interval of bars (1 minute, 2 minute, etc.) |
![]() |
Starting date and time for bar selection. |
![]() |
Ending date and time for bar selection. |
See Also