DOpen is a function in ProBuilder language that retrieves the opening price of a daily bar for a specified number of bars back from the current bar. This function is particularly useful for analyzing historical opening prices on a daily timeframe, allowing traders and analysts to observe past market behavior.
DOpen(N)
Where N is the number of bars back from the current bar. N must be a non-negative integer, where 0 refers to the current day’s open price.
myOpenPrice = DOpen(1)
This example assigns the opening price of the previous day’s daily bar to the variable myOpenPrice.
Understanding the DOpen function can help in creating more dynamic and historically aware trading strategies without manually tracking past daily open prices.