OpenDate is a function in ProBuilder language that returns the date on which the current bar on the chart opened. The date is provided in the format YYYYMMDD, which stands for Year, Month, and Day. This function is particularly useful for traders and analysts who need to track the exact opening date of a price bar for historical data analysis or back-testing trading strategies.
OpenDate
myOpenDate = OpenDate
RETURN myOpenDate
This example defines a variable myOpenDate that stores the opening date of the current bar. It then returns this date to the indicator output window, allowing the user to see the date formatted as YYYYMMDD.
Understanding the OpenDate function is essential for creating time-sensitive trading strategies and performing detailed market analysis.