Indicators

Price Indicators

AVGPRICE, TYPPRICE, WCLPRICE, MEDPRICE, MIDPOINT, MIDPRICE -- building-block price transforms used by other indicators.

What are Price Indicators?

Price indicators take the four values that define each candle -- Open, High, Low, Close -- and combine them into a single representative price. Each indicator uses a different formula to weight these values, producing a slightly different "average" price for the candle.

Most traders never use these indicators directly as chart overlays or trading signals. Their primary purpose is as building blocks for other indicators. For example, CCI uses Typical Price internally, and many volume-weighted calculations rely on one of these price transforms. Understanding what they are helps you understand the indicators built on top of them.

Single-Candle Price Transforms

These four indicators compute a value from a single candle's OHLC data. They require no lookback period and produce one output value per candle.

AVGPRICE (Average Price)

AVGPRICE
(Open + High + Low + Close) / 4

The simple average of all four prices. Every value gets equal weight. This gives you the "center of mass" of the candle, accounting for where it opened, how far it stretched in each direction, and where it closed.

MEDPRICE (Median Price)

MEDPRICE
(High + Low) / 2

The midpoint of the candle's range. Ignores the open and close entirely -- only cares about the extremes. This tells you the center of the candle's territory without any bias toward where it opened or closed.

TYPPRICE (Typical Price)

TYPPRICE
(High + Low + Close) / 3

The average of the high, low, and close. Compared to MEDPRICE, it gives some weight to the closing price. Compared to AVGPRICE, it excludes the open. Typical Price is the most commonly referenced price transform because it is used internally by CCI and several volume indicators.

WCLPRICE (Weighted Close Price)

WCLPRICE
(High + Low + 2 * Close) / 4

Similar to AVGPRICE but replaces the open with a second copy of the close. This gives the closing price twice the weight of the high and low, reflecting the idea that the close is the most important price of the candle (it is where the market settled and where the next candle opens in continuous markets).

Worked example
For a candle with Open = 48.50, High = 51.20, Low = 47.80, Close = 50.40:

AVGPRICE = (48.50 + 51.20 + 47.80 + 50.40) / 4 = 49.48
MEDPRICE = (51.20 + 47.80) / 2 = 49.50
TYPPRICE = (51.20 + 47.80 + 50.40) / 3 = 49.80
WCLPRICE = (51.20 + 47.80 + 2 * 50.40) / 4 = 49.95

All four give slightly different values. WCLPRICE is highest because this candle closed near its high, and WCLPRICE double-weights the close.

Multi-Candle Midpoint Indicators

These two indicators look across multiple candles to find the midpoint of a range. They require a lookback period parameter.

MIDPOINT

MIDPOINT
(highest close + lowest close) / 2 over N candles

Finds the highest and lowest closing prices over the last N candles and returns their midpoint. This is a measure of the center of the closing price range -- not the same as a moving average, which averages all closing prices. MIDPOINT only uses the two extreme values.

MIDPRICE

MIDPRICE
(highest high + lowest low) / 2 over N candles

Similar to MIDPOINT but uses the highest high and lowest low instead of closing prices. This gives the center of the full price range over N candles, including wicks and shadows. MIDPRICE is based on the full high-low span, which is always at least as wide as the close-only span MIDPOINT uses, because highs are always >= closes and lows are always <= closes.

Worked example (5 candles)
Closes: [50.40, 51.30, 48.20, 52.50, 48.90]
Highs: [51.20, 52.00, 50.50, 53.10, 49.80]
Lows: [47.80, 48.50, 46.90, 49.20, 47.00]

MIDPOINT = (52.50 + 48.20) / 2 = 50.35
MIDPRICE = (53.10 + 46.90) / 2 = 50.00

MIDPRICE is slightly different because it uses the full high-low range rather than just closing prices.

Reference Table

IndicatorFormulaInputsParameters
AVGPRICE(O + H + L + C) / 4Single candlenone
MEDPRICE(H + L) / 2Single candlenone
TYPPRICE(H + L + C) / 3Single candlenone
WCLPRICE(H + L + 2C) / 4Single candlenone
MIDPOINT(max close + min close) / 2N candlesperiod (14)
MIDPRICE(max high + min low) / 2N candlesperiod (14)

When to Use These

In most cases, you will not add these to your chart as standalone indicators. Their value is primarily as components of other indicators. If you see "Typical Price" mentioned in the documentation for CCI or a volume indicator, this page tells you exactly what that means.

That said, MIDPOINT and MIDPRICE can serve as simple support/resistance references -- they show the center of the recent price range, which some traders use as a rough equilibrium level. If the price is above the MIDPRICE, it is in the upper half of its recent range. If below, it is in the lower half.

What is the difference between MEDPRICE and MIDPOINT?
MEDPRICE uses a single candle's high and low to find the midpoint of that candle's range. MIDPOINT uses multiple candles' closing prices to find the midpoint of the closing price range over a lookback period. They measure different things at different time scales.

Where to Go Next

CCI (Commodity Channel Index) -- uses Typical Price as its input.

Moving Averages -- a different approach to smoothing price data over time.

Volatility Indicators -- Bollinger Bands and ATR, which also transform OHLC data but measure dispersion rather than central tendency.