midprice

forge.tafunctionSince Forge API 1
Functionpython
forge.ta.midprice(high: ArrayLike,low: ArrayLike,period: int = 14) -> np.ndarray

Halfway between the highest high and the lowest low of the last period bars.

Parameters

NameTypeDefault
highArrayLike
lowArrayLike
periodint14

Indicator: Mid price

This is not the median price of one bar, which is (high + low) / 2.

Classpython
forge.ta.MidPrice(**inputs: Any) -> None

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

Inputs

NameTypeDefaultRange
periodint141 to 5000

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