RealTest User Guide
RealTest User Guide

 

 

Navigation: RealTest Script Language > Syntax Element Details >

BarSize

 

 

 

 

Category

Settings or Strategy Elements or Data Section

Description

Specifies a bar size (periodicity). Its scope depends on where it appears — in the Settings section, in a Strategy, or in the Data section.

Notes

In Settings — sets the default bar size for the whole script, used for scans as well as tests. If a Settings bar size is not specified, the value from the Settings Panel is used.

In a Strategy — a Strategy can run at its own bar size, different from the Settings bar size, enabling mixed-timeframe tests.

In the Data section — sets the bar size for a group of data items, or for an individual item via a bar-size name prefix; Data arrays are independent of strategy bar sizes. See Bar-Size-Specific Items for the two ways to do this.

Valid values are Daily, Weekly, Monthly, Quarterly, Yearly.

A strategy's bar size cannot be smaller than the Settings bar size. With a Weekly or larger Settings bar size, every strategy must use that bar size. If a strategy does not specify BarSize, it uses the Settings bar size.

See Bar Sizes and Multiple Timeframes for how mixed bar sizes work across these contexts.

 

 

 

Copyright © 2020-2026 Systematic Solutions, LLC