DOpen

Category: Constants

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.

Syntax:

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.

Example:

myOpenPrice = DOpen(1)

This example assigns the opening price of the previous day’s daily bar to the variable myOpenPrice.

  • The function is useful for strategies that require comparison between different days’ opening prices.
  • It is important to ensure that the value of N does not exceed the available historical data in your chart’s dataset.

Understanding the DOpen function can help in creating more dynamic and historically aware trading strategies without manually tracking past daily open prices.

Related Instructions:

  • DClose constants
  • DHigh constants
  • DLow constants
  • Logo Logo
    Loading...