Skip to content
All library documents

Midpoint Oscillator: Price Position Within Its Recent Range

Article MQL5 code base

Summary

The Midpoint Oscillator (MPO) is a two-line indicator intended to show price movement relative to the center of its recent high-low range. Its main line compares the latest close with the midpoint of the highest and lowest prices over a configurable lookback period, then scales that displacement. The zero level represents the range midpoint: readings above or below it indicate that the close is on one side or the other.

A second line smooths the oscillator using a configurable period and moving-average method. The document specifies the parameters and calculation, but does not provide entry or exit rules, market examples, or evidence that the indicator predicts returns. It also gives no guidance for choosing the lookback or smoothing settings. The MPO therefore serves as a technical measure of price location within a rolling range; any trading interpretation or use in a strategy requires separate testing.

Key ideas

  • The MPO measures the close’s position relative to the midpoint of the recent high-low range.
  • The lookback period determines which highs and lows define that range.
  • A smoothed signal line is calculated from the oscillator using a chosen smoothing method.
  • The oscillator’s zero level corresponds to the range midpoint.
  • The document defines the calculation but does not establish trading rules or predictive performance.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.