Lowest

Category: Indicators

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.

Syntax:

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

Example:

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.

  • The Lowest function can be applied to any price type, allowing flexibility depending on the analysis requirement.
  • It is essential to ensure that the number of bars N does not exceed the available data range to avoid errors.

This function is a fundamental tool in creating trading strategies or indicators that require the identification of minimum price levels over a specified period.

Related Instructions:

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