bars_since_lowest
Syntax Format
The syntax format can be of two types:
bars_since_lowest(series, n)
bars_since_lowest(n)
Overview
The bars_since_lowest function provides the number of bars since the lowest value of the given series type was reached within a specified period. This function can be used in scripts, when checking the data after a certain event has occurred.
Parameters
| Parameter | Type | Purpose | 
|---|---|---|
| series | series | Input series, taken into calculation | 
| n | integer | Period to look back into the history | 
Returns: series[integer].
Example
bars_since_lowest_value = bars_since_lowest(close, 14)
In case the series type is not specified, the low series is used:
bars_since_lowest(low, 14)