Navigation: Realtest Script Language > Syntax Element Details >







Bar Data Values


Date of this bar


Returns the current bar end date as a number in YYYYMMDD format.

If the bar has Weekly or Monthly BarSize, 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.





Copyright © 2020-2024 Systematic Solutions, LLC