Median Price (MEDPRICE)

Overview

The Median Price indicator calculates the midpoint between the high and low of each period, creating a smooth line that represents the center of daily trading ranges. Rather than using a statistical median, it simply averages the period's extreme prices with the formula (High + Low) / 2, which filters out closing price volatility while maintaining responsiveness to significant moves. When price consistently trades above the median price line, it signals bullish momentum, whereas sustained trading below indicates bearish pressure. Traders value this indicator for its ability to reveal the underlying trend without the noise of minute to minute fluctuations, making it particularly effective for setting stop losses or identifying when price has moved too far from its natural equilibrium. Unlike moving averages that lag behind price action, the Median Price responds immediately to range expansion, providing a real time reference point for market balance.

Implementation Examples

Code examples will be available once the implementation is finalized.

Performance Analysis

Comparison:
View:

Across sizes, Rust CPU runs about 1.02× slower than Tulip C in this benchmark.

Loading chart...

AMD Ryzen 9 9950X (CPU) | NVIDIA RTX 4090 (GPU) | Benchmarks: 2026-01-05

Related Indicators