# MEDPRICE

## Summary

Median Price: the midpoint of each bar's high and low. A price-transform overlay.

## Formula

$MEDPRICE_i = (High_i + Low_i) / 2$

## Inputs

- `inPriceHL` — High and low price series

## Outputs

- `outReal` — Midpoint of each bar's high and low

## Implementation

TA-Lib Definition: [`medprice.c`](https://github.com/TA-Lib/ta-lib/blob/main/ta_codegen/input/medprice/medprice.c) · [`medprice.yaml`](https://github.com/TA-Lib/ta-lib/blob/main/ta_codegen/input/medprice/medprice.yaml)

| Native | File |
|--------|------|
| C | [`ta_MEDPRICE.c`](https://github.com/TA-Lib/ta-lib/blob/main/src/ta_func/ta_MEDPRICE.c) |
| Rust | [`medprice.rs`](https://github.com/TA-Lib/ta-lib/blob/main/ta_codegen/output/rust/src/ta_func/medprice.rs) |
| Java | [`Core.java`](https://github.com/TA-Lib/ta-lib/blob/main/java/src/com/tictactec/ta/lib/Core.java) |

TA-Lib is also available for Python, R and more using a [wrapper](https://ta-lib.org/wrappers/).

## Aliases

Median Price

## See Also

MIDPRICE · AVGPRICE · TYPPRICE · WCLPRICE
