BarInterval (Reserved Word)

image\trumpet2.gif Disclaimer

Reserved word that returns the bar interval value (number of ticks, minutes, days, etc.) for the type of data that an analysis technique is applied to.

See BarType for a list of bar types to which the BarInterval value applies..

Remarks

BarInterval is only valid when used on intraday, volume, and tick data.  Returns minutes or seconds for intraday time-based bars, shares/contracts for volume-based bars, or tick count for tick-based bars. (Some intervals may not be supported in a given data feed)

Examples

Condition1 = (BarInterval = 5 AND BarType = 1)

is a statement that will cause Condition1 to be true if the analysis technique is applied to a 5-minute chart.

CalcTime(Sess1StartTime, BarInterval)

will add the bar interval to the start time of the asset in an intraday time-based chart.

Additional Example

CalcTime(Sess1EndTime, -BarInterval) returns the time of the last bar before the close of the trading session for an intraday time-based chart.