TREND, MOVING AVERAGES & STRUCTURE

Midprice

The middle of the recent FULL range — halfway between the highest high and the lowest low, wicks included.

spec id: midpricelength (default 14)

What does Midprice measure?

The middle of the recent FULL range — halfway between the highest high and the lowest low, wicks included.

How is Midprice calculated?

Take the highest high and the lowest low of the last 14 candles, and average them.

Written by reading the engine’s real computation, not a textbook — where the two differ, the page describes what actually runs.

How do I use Midprice in a bot?

In the builder, add an indicator of type midprice (parameters: length, default 14). Its value becomes an operand you can compare in any entry or exit rule. The engine grades the whole rule honestly: real fills, no look-ahead, half the history held back.

Related indicators

Or browse all 158 indicators in the full library.

Build a bot that trades on Midprice — the first backtest is free.

Run a free backtest