OpenDay is a function in the ProBuilder language that returns the day of the month on which the current bar opened. This function is useful for strategies that require analysis based on the day of the month, such as identifying trading patterns that occur on specific days.
OpenDay
iDay = OpenDay
if iDay = 1 then
// Actions to perform if the current bar opens on the first day of the month
endif
This example demonstrates how to use the OpenDay function to check if the current bar opens on the first day of the month. If it does, specific actions can be performed, which are defined within the if statement.
Understanding the use of OpenDay can help in creating more time-specific trading strategies, especially when combined with other time-based functions in ProBuilder.