OpenDay

Category: Date and time

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.

Syntax:

OpenDay

Example:

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.

Additional Information:

  • The OpenDay function does not require any parameters.
  • It returns an integer between 1 and 31, corresponding to the day of the month.
  • This function can be particularly useful in monthly data analysis or in generating monthly reports based on trading activity.

Understanding the use of OpenDay can help in creating more time-specific trading strategies, especially when combined with other time-based functions in ProBuilder.

Related Instructions:

  • Day date and time
  • Logo Logo
    Loading...