Number of data bars to include in a scan or test
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.
This is a convenient way to run a daily scan for live trading candidates: