The C_BarType represents the various bar types that are supported by the platform.


Name

Description

BID_ASK

The bid ask bar type is a bar whose open/low is the latest bid value and whose close/high is the latest ask value.

CUSTOM

The custom bar type is a bar that is built by a bar type script.

DAY

The day bar type is a bar that represents the price movements during a fixed number of days.

HEIKIN_ASHI

The heikin ashi bar type is a bar that combines open-close data from the previous period and open-high-low-close data from the current period to one bar.

KAGI

The kagi bar type is a bar that is independent of time and is used to determine the general levels of supply and demand for certain asset.

LINE_BREAK

The line break bar type is a bar that is independent of time and only changes when prices move a certain amount.

MINUTE

The minute bar type is a bar that represents the price movements during a fixed number of minutes.

MOMENTUM

The momentum bar type is a bar who's low to high range has a fixed number of ticks. Each bar opens one tick above or below the close of the previous bar and closes at its high or low once it exceeds the fixed range. Note that any price gaps are closed using virtual bars, which can be identified as missing bars by the API Bar functions.

MONTH

The month bar type is a bar that represents the price movements during a fixed number of months.

POINT_AND_FIGURE_CLOSE

The point and figure bar type is a bar that is independent of time and uses the bar closing price to build columns that represent raising and falling prices.

POINT_AND_FIGURE_HIGH_LOW

The point and figure bar type is a bar that is independent of time and uses the bar high and low prices to build columns that represent raising and falling prices.

RANGE

The range bar type is a bar whose low to high range has a fixed number of ticks. Each bar opens at the close of the previous bar and closes at its high or low once it reaches the fixed range. Note that any price gaps are closed using virtual bars, which can be identified as missing bars by the API Bar functions.

RENKO

The renko bar type is a box shaped bar that moves either up or down a fixed number of tick when the price change from the previous bar's close reaches a fixed number of ticks.

SECOND

The second bar type is a bar that represents the price movements during a fixed number of seconds.

TICK

The tick bar type structure is based on its size: (*) If the bar size is 1, the bar can either be a bid tick, an ask tick or a last trade tick, depending on the bar source (*) If the bar size is greater than 1, the bar will represent the fixed number of ticks in the OHCLV structure.

VOLUME

The volume bar type is a bar whose volume is fixed.

WEEK

The week bar type is a bar that represents the price movements during a fixed number of weeks.

YEAR

The year bar type is a bar that represents the price movements during a fixed number of years.