ScanSettings or TestSettings
The last date to include in a scan
m/d/y - literal end-date constant (or d/m/y if that date format option is selected)
Latest - always use the most recent available date
See Date Constants for date formatting options.
If a date range is not specified in a script then the dates from the Settings Panel will be used.
To get the most recent N bars, use EndDate: Latest with NumBars but no StartDate.