Navigation: Realtest Script Language > Syntax Element Details > NumBars Category Settings Description Number of data bars to include in a scan or test Notes Use in conjunction with either StartDate or EndDate to specify a bar count anchored to a date. (If all three of these date settings are specified then NumBars will count back from EndDate and StartDate will be ignored.) If a date range is not specified in a script then the dates from the Settings Panel will be used. When BarSize is Daily, NumBars is a count of market days. Otherwise it is a count of weeks or months, depending on BarSize. Example This is a convenient way to run a daily scan for live trading candidates: Copyright © 2020-2025 Systematic Solutions, LLC