Mid price
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 | Type | Required | Description |
|---|---|---|---|
| midprice | value | Optional | color theme.series_c, style line, width 1 |
- Warm-up
- period - 1 bars (13 at the defaults)
- Repaints
- No
- Parity
- TA-Lib, within 1e-12
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.