Skip to content

MIDPOINT

Summary

Midpoint over a period: the average of the highest and lowest input values within the lookback window. A single-series overlap smoother (use MIDPRICE for separate high/low price bars).

Formula

MIDPOINT = (Highest(inReal, period) + Lowest(inReal, period)) / 2

Inputs

  • inReal — Series to compute the midpoint over

Outputs

  • outReal — Midpoint of the period's high/low range

Parameters

  • optInTimePeriod — Lookback window length

Implementation

TA-Lib Definition: midpoint.c · midpoint.yaml

Native File
C ta_MIDPOINT.c
Rust midpoint.rs
Java Core.java

TA-Lib is also available for Python, R and more using a wrapper.

See Also

MIDPRICE · MAX · MIN