# Mid price

`midprice`

Halfway between the highest high and the lowest low of a window.

## Inputs

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

## Outputs

| Name | Kind |
| --- | --- |
| midprice | value |

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

Repaints: No.

## Formula

(highest high + lowest low) / 2 over the last period bars. This is not the median price of one bar, which is (high + low) / 2.
