Highest

Category: Indicators

The Highest function in ProBuilder language is used to determine the maximum value of a specified price over a given number of bars. This function is particularly useful in technical analysis to identify price extremes over a specific period, which can be crucial for setting resistance levels or for trend confirmation.

Syntax:

highest[N](price)

Where N represents the number of bars to look back and price specifies the price type (e.g., close, open, high, low).

Example:

if(High > Highest[10](close)) THEN
    bandH = High
ELSE
    bandH = Highest[10](close)
ENDIF
RETURN bandH

In this example, the script checks if the current high price is greater than the highest closing price of the last 10 bars. If true, it assigns the current high price to bandH; otherwise, it assigns the highest close price of the last 10 bars to bandH. Finally, it returns the value of bandH.

Additional Information:

  • The Highest function can be applied to any price component of a bar, allowing flexibility depending on the analysis requirement.
  • It is essential to ensure that the number of bars N does not exceed the available data in the chart to avoid errors.
  • This function is often used in conjunction with other technical indicators to enhance trading strategies.

Understanding how to use the Highest function can help in developing more effective technical analysis tools and strategies, by identifying significant price levels over a specified period.

Related Instructions:

  • HighestBars instructions
  • Lowest indicators
  • LowestBars instructions
  • Logo Logo
    Loading...