A Moving Average Built from Rolling Median Closing Prices
Summary
This indicator first finds the median closing price within a rolling window, then averages successive median values using a simple moving-average calculation. The median is intended to represent the middle observation in a sample, while the later averaging step smooths the resulting price series. The included ProRealTime code uses configurable lookback and averaging periods, with example settings of five bars and twenty median observations.
The method is presented as an indicator construction drawn from a forum discussion, not as a tested trading strategy. The document explains the intended smoothing effect but provides no comparison with a conventional moving average, signal rules, backtest, or performance evidence. Its code also uses custom counting logic to average changing median values, so users would need to inspect and validate the implementation and its behavior on their data before relying on it.
Key ideas
- The indicator computes a rolling median from closing prices before applying a moving average to the median series.
- The median-based input is intended to smooth price information and make values easier to read.
- The example code exposes separate parameters for the median window and the averaging period.
- The document offers no trading rules or empirical evidence that the indicator improves results.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.