Navigation: Realtest Script Language > Syntax Element Details >

BarDate

 

 

 

 

Category

Bar Data Values

Description

Date of this bar

Notes

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-2022 Systematic Solutions, LLC