ScanSettings or TestSettings
Number of market days (bars) to include in a scan or test
Use in conjunction with either StartDate or EndDate (but not both) to specify a bar count anchored to a date.
If a date range is not specified in a script then the dates from the Settings Panel will be used.
This is a convenient way to run a daily scan for live trading candidates: