# Midpoint

`midpoint`

Halfway between the highest and lowest value of a window.

## Inputs

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

## Outputs

| Name | Kind |
| --- | --- |
| midpoint | value |

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

Repaints: No.

## Formula

(highest + lowest) / 2 of the source over the last period bars.
