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
- Median priceThe midpoint of a single candle — halfway between its high and its low.
- MidpointThe middle of the recent CLOSING range — halfway between the highest and lowest close.
- MidpriceThe middle of the recent FULL range — halfway between the highest high and the lowest low, wicks included.
- -DMThe down-side half of the directional movement that ADX is built from — how hard the lows have been pushing lower.
Or browse all 158 indicators in the full library.