---
title: "Midprice: Formula, Meaning & Signals"
description: "Midprice is the average of the highest high and the lowest low over the last N bars. It marks the center of the full high-to-low range of the window."
canonical: https://www.getswoopr.com/indicators/price-and-structure/midprice/
source: "Swoopr Investment: https://www.getswoopr.com"
---

## Direct Answer



> Midprice is the average of the highest high and the lowest low over the last N bars. It marks the center of the full high-to-low range of the window. It is the middle line of a Donchian-style channel.





      


# Midprice: Formula, Meaning, Signals, Examples and How to Use It



## How Is Midprice Calculated?

Midprice is the average of the highest high and the lowest low over the last N bars. It marks the center of the full high-to-low range of the window.

**Formula:** `Midprice(N) = (highest high over N bars + lowest low over N bars) / 2`

**Inputs:**

- High and low of each bar
- Lookback length N

**Worked example.** A window with a highest high of 112 and a lowest low of 96 has a midprice of 104.00. The inputs are illustrative numbers, not market data.

**Reading it.** It is the middle line of a Donchian-style channel. Price above it is in the upper half of the window's range. It differs from midpoint, which takes the extremes of one series such as the close.

**Limits.** It depends only on two extreme prints, so it can jump when either leaves the window. It is not an average and not a fair-value estimate.


      

## What is Midprice?



Midprice is the average of the highest high and the lowest low over the last N bars. It marks the center of the full high-to-low range of the window.




## How to use Midprice



It is the middle line of a Donchian-style channel. Price above it is in the upper half of the window's range. It differs from midpoint, which takes the extremes of one series such as the close. A reading alone is never a buy or sell signal; it needs context from price structure, volume, volatility and the broader market regime.




## Strengths



- It uses highs and lows rather than closes, so the range it centers covers everything that actually traded in the window.
- Alongside the highest high and lowest low it gives a three-line view of a window: ceiling, floor and the center between them.
- Reproducible when the formula and data convention are fixed.




## Weaknesses and limitations



- Wide-range bars from news events enter at full extent, so one volatile session can move the center for the whole window length.
- Equal weight on the high and the low means the center ignores whether trading spent more time near the top or the bottom.
- Correlated indicators can create false confidence by repeating the same underlying information.




## Editorial and risk note



This page is educational content, not individualized investment advice. It should not imply guaranteed prediction, accuracy or outperformance.







## Frequently Asked Questions


        



Is Midprice a buy or sell signal?




No. It is the middle line of a Donchian-style channel. It depends only on two extreme prints, so it can jump when either leaves the window. A trade built on it still needs a trigger, an invalidation rule, a position size and realistic execution assumptions.










What is the best setting for Midprice?




Midprice takes these inputs: high and low of each bar; lookback length N. There is no universal best setting for the tunable ones, so test them across instruments, regimes and out-of-sample periods and favor stable parameter regions over one historical winner.










Can Midprice be used by itself?




It depends only on two extreme prints, so it can jump when either leaves the window. It is not an average and not a fair-value estimate. For that reason it is read next to measures of direction, participation, valuation, liquidity and risk, not alone.










Does Midprice work on every timeframe?




The calculation (Midprice(N) = (highest high over N bars + lowest low over N bars) / 2) can be run on any bar size, but behavior is not portable: a reading on a five-minute chart describes a very different market window from the same reading on a daily chart. Validate the exact timeframe before relying on it.










Why does Midprice give false signals?




Wide-range bars from news events enter at full extent, so one volatile session can move the center for the whole window length. Equal weight on the high and the low means the center ignores whether trading spent more time near the top or the bottom. Lag, noise and regime changes add to this, because market participants react to new information after the reading is calculated.










How should Midprice be backtested?




Rebuild Midprice from high and low of each bar using point-in-time data, write the rules before testing, include delisted securities where relevant, model realistic fills and costs, reserve a validation sample and compare with a simpler baseline.












S




Swoopr Editorial Team



The Swoopr Editorial Team produces independent investment education, research, and tools for understanding markets, evaluating opportunities, and managing risk. All content is educational only and does not constitute personalized investment advice.



See our [editorial policy](https://www.getswoopr.com/legal/editorial-policy/) and [corrections policy](https://www.getswoopr.com/legal/corrections-policy/).
