TREND, MOVING AVERAGES & STRUCTURE

Rolling median

The middle closing price of the recent window.

spec id: medianlength (default 20)

What does Rolling median measure?

The middle closing price of the recent window. Unlike an average, one crazy spike barely moves it.

How is Rolling median calculated?

Take the last 20 closing prices, sort them, and pick the one in the middle.

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 Rolling median in a bot?

In the builder, add an indicator of type median (parameters: length, default 20). 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 Rolling median — the first backtest is free.

Run a free backtest