# Bars since the lowest

`lowest_bars`

How many bars ago the lowest value of the window was.

## Inputs

| Name | Type | Default | Range |
| --- | --- | --- | --- |
| source | source | close |  |
| period | int | 30 | 1 to 5000 |

## Outputs

| Name | Kind |
| --- | --- |
| lowest_bars | value |

Warm-up: period - 1 bars (29 at the defaults).

Repaints: No.

## Formula

How many bars ago the lowest value of the last period bars was, 0 when it is the current bar. When two bars share the lowest value, the more recent one counts.
