OpenMinute

Category: Date and time

Definition and Purpose:

The OpenMinute function in ProBuilder language is designed to retrieve the minute of the opening time of the current bar, according to the user’s local time zone. This function is particularly useful for traders and analysts who need to synchronize or analyze market behavior at the opening minute of trading periods.

Syntax:

OpenMinute

Example Usage:

To demonstrate how to use the OpenMinute function, consider a scenario where you want to check if the current bar opened in the first minute of an hour. You could use the following code:

IF OpenMinute = 0 THEN
    // Execute specific actions here
ENDIF

This code checks if the opening minute of the current bar is ‘0’, which corresponds to the top of the hour, and then executes specific actions if the condition is true.

Additional Information:

  • The OpenMinute function returns an integer value representing the minute the current bar opened, ranging from 0 to 59.
  • This function is timezone-aware, meaning it adjusts the result based on the user’s local time settings.
  • Understanding the opening minute can be crucial for strategies that are sensitive to the timing within the trading hour, such as breakout strategies or time-specific entry and exit rules.

Related Instructions:

  • CurrentMinute date and time
  • Minute date and time
  • Logo Logo
    Loading...