Returns the current bar end date as a number in YYYYMMDD format.
If the bar is ofnon-dailyBarSize, then this will be the closing date of the bar.
Use BarStart to get the opening date of the current bar.
Negative offsets, e.g. BarDate[-5], can be legitimately used to obtain the date of a future bar. This works even if the offset goes beyond the range of the currently loaded data file. For best results when future dates are required, a HolidayList should also be provided.