midprice
forge.tafunctionSince Forge API 1
Functionpython
forge.ta.midprice(high: ArrayLike,low: ArrayLike,period: int = 14) -> np.ndarrayHalfway between the highest high and the lowest low of the last period bars.
Parameters
| Name | Type | Default |
|---|---|---|
| high | ArrayLike | |
| low | ArrayLike | |
| period | int | 14 |
This is not the median price of one bar, which is (high + low) / 2.
Classpython
forge.ta.MidPrice(**inputs: Any) -> NoneHalfway between the highest high and the lowest low of a window.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| period | int | 14 | 1 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.