All indicators

Mean Error (ME)

The average signed gap between price and its own EMA over a rolling window, showing whether price has been sitting above or below it.

BTCUSD1h
Fixed data to Oct 6, 2026, UTC
Loading the chart

Mean Error scores an exponential moving average as a forecast of price, keeping the sign of every miss. The average is taken over Period bars and seeded with the simple average of its first Period values. On every bar the study subtracts the average from the source, so the gap is positive when price is above the average and negative when it is below.

Those signed gaps are averaged over the last Period bars, at most 4000, counting only the bars that carry a gap. The reading starts on the first bar where the average exists and widens its window until it is full. Because positive and negative gaps cancel, the result is a measure of bias rather than of size.

The error is plotted as a shaded area in its own pane, and the reference average is drawn on the price chart.

How to read Mean Error (ME)

A reading above zero means price has, on balance, been above its average over the window, which is what an uptrend looks like. A reading below zero means price has been below it. A reading near zero means the misses have balanced out: either price has been hugging the average, or it has swung evenly on both sides.

Because cancellation hides size, a near-zero reading is not proof that price has been close to the average. Pair it with MAE to see how large the misses were. The value is in price units.

Settings

Source
The price series measured against its own average. The close by default.
Period
The length of the reference EMA and of the averaging window, which is held to at most 4000 bars.

Frequently asked questions

What does a positive value mean?

Price has been above its EMA more, or by more, than it has been below it over the window. It is a sign of upward bias.

Why can the reading be close to zero in a volatile market?

Positive and negative gaps cancel. A market that swings widely around its average can still average out near zero.

How is this different from MPE?

Mean Error is in price units. MPE divides each gap by price first, so it is in percent and comparable across instruments.

Write your own in OpenScript

Every study here is plain OpenScript. Change a setting, combine two, or turn one into a strategy, then backtest it in /trading and run it in sandbox trading (analyzer mode in OpenAlgo) before going further.