The Lowest function in ProBuilder language is used to determine the minimum value of a specified price over a given number of bars. This function is particularly useful in technical analysis for identifying support levels or the lowest price points within a specified timeframe.
lowest[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(Low < Lowest[30](close)) THEN
bandL = Low
ELSE
bandL = Lowest[30](close)
ENDIF
RETURN bandL
In this example, the script checks if the current low price is less than the lowest closing price of the last 30 bars. If true, it assigns the current low price to bandL; otherwise, it assigns the lowest close price of the last 30 bars to bandL. Finally, it returns the value of bandL.
This function is a fundamental tool in creating trading strategies or indicators that require the identification of minimum price levels over a specified period.