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