# Highest value

`highest`

The highest value over a number of bars.

## Inputs

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

## Outputs

| Name | Kind |
| --- | --- |
| highest | value |

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

Repaints: No.

## Formula

The highest value of the last period bars, the current bar included. A window holding a missing value has no value. To compare a price with the highest of the bars before it, delay the result by one bar.
