AVGPRICE
Summary
Average Price: the arithmetic mean of each bar's open, high, low, and close. A price-transform overlap condensing OHLC into a single representative price.
Formula
outReal[i] = (High[i] + Low[i] + Close[i] + Open[i]) / 4
Inputs
inPriceOHLC— Open/High/Low/Close price series
Outputs
outReal— Per-bar average of the four OHLC prices
Implementation
TA-Lib Definition: avgprice.c · avgprice.yaml
| Native | File |
|---|---|
| C | ta_AVGPRICE.c |
| Rust | avgprice.rs |
| Java | Core.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Average Price