Indicators

Rolling Median Indicator Explained

How the rolling Median gives an outlier-proof center line for robust baselines in Setup.Cash.

By Setup.Cash TeamLast updated 2026-07-031 min read197 words

Featured image placeholder

/og/setup-cash-og.svg

The Rolling Median takes the middle value of the window instead of the average. One flash-crash bar drags an SMA for its entire length; the median simply ignores it. It's the most robust 'where has price really been?' line available.

How It Works

  • The middle value of the sorted last N closes, each bar.
  • Outliers have zero pull until they become the majority.
  • Steps rather than glides, like other order-statistic lines.

How to Trade It

Use median as the baseline on flash-crash-prone symbols (price vs median crosses stay honest through bad ticks), or watch the SMA-median gap: when the average pulls far from the median, recent movement is outlier-driven — treat signals with suspicion.

Building It in Setup.Cash

Add Rolling Median in the strategy builder — the length input controls its sensitivity — and use its value in any entry, exit, or filter condition. You can also combine it with other tools in the Indicators Lab or via the AI indicator generator. The Rolling Quantile generalizes this to any percentile. For the full category overview, see the volatility & statistics library guide.

Volatility indicators qualify trades rather than generate them — backtest your system with and without this filter and compare the drawdowns.

Not financial advice. Trading involves risk. Use backtesting and paper trading before risking real capital.

Related Posts

View all

Indicators

Linear Regression Indicator Explained

How the Linear Regression indicator fits a least-squares line to price for statistical trend measurement in Setup.Cash.

2 min read · 215 words

Indicators

Slope Indicator Explained

How the Slope indicator quantifies trend steepness as a number your bot can threshold, and how to use it in Setup.Cash.

1 min read · 194 words

Start here

Build your trading bot workflow with structure

Use Setup.Cash to create, backtest, and paper trade rule-based strategies without relying on guesswork. Not financial advice. Trading involves risk.