Lowest (Function)
The Lowest function returns the lowest price over a range of bars.
Syntax
Lowest(Price, Length)
Returns (Double)
The lowest Price found over the past Length bars.
Parameters
Name |
Type |
Description |
Price |
Numeric |
Specifies which bar value (price, function, or formula) to evaluate. |
Length |
Numeric |
Sets the number of bars to consider. |
Remarks
The input parameter Price can be a bar value such as Close, High, Low, Open, or Volume. It can also be any mathematical calculation such as: ( High + Low) / 2, or a numeric function such as RSI, Stochastic, or ADX.
Example
The following assigns the lowest Close value for the last 20 bars to Value1:
Value1 = Lowest(Close, 20);