Lowest ( IDataHolder data , int length );    
Default values:
length: 12
    
    
Description
Returns the lowest value of data for the last length bars.
Input parameters
| Parameter | Default value | Description | 
|---|---|---|
| data | - | Defines data for which the lowest value is found. | 
| length | 12 | Defines period on which the lowest value is found. | 
Example
declare lower;
input length = 10;
def HH = Highest(high, length);
def LL = Lowest(low, length);
plot "Williams %R" = if HH == LL then -100 else (HH - close) / (HH - LL) * (-100);
The example shows the Williams %R calculation. In particular, it is required to define the minimum low for the last length bars including the current bar. Therefore, to define the minimum, the example uses the Lowest function.