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.
OpenMinute
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.