Divergence Indicators - page 34

 

Building a Divergence System: Creating the MPO4 Custom Indicator

Building a Divergence System: Creating the MPO4 Custom Indicator

Most traders are familiar with oscillators like the Relative Strength Index (RSI) or the Stochastic. They answer the question: Where is the price compared to its recent range? They are effective but can be reactive, often lagging at the exact moment you need them most. Furthermore, they treat all price bars as equal, whether it is a tiny doji or a massive volatile candle. This is where the MPO4 diverges, not just in its signals, but in its foundational philosophy.
Building a Divergence System: Creating the MPO4 Custom Indicator
Building a Divergence System: Creating the MPO4 Custom Indicator
  • 2026.06.19
  • www.mql5.com
We introduce MPO4, a pressure-based oscillator that emphasizes the body and direction of candles in the context of current volatility. The article details its mathematics, normalization into a bounded range, and the EMA smoothing, then builds a pivot-driven divergence module designed not to repaint. You get complete MQL5 implementation and practical guidance for interpreting signals, including a comparison with RSI as an alternative source.
 

Building a Divergence System (Part II): Adaptive SuperTrend Custom Indicator

Building a Divergence System (Part II): Adaptive SuperTrend Custom Indicator

In the previous article, we introduced MPO4, a pressure-based oscillator that measures the directional effort behind price movements by weighting candlestick bodies against recent volatility. Combined with a non-repainting pivot-detection engine, it enabled us to identify bullish and bearish divergences, revealing moments when underlying buying or selling pressure begins to weaken before a potential market reversal.

This presents a mechanical challenge for systematic traders: once a divergence warns us that a trend is dying, how should we mechanically adjust our trade management to capitalize on it?

Building a Divergence System: Creating the MPO4 Custom Indicator
Building a Divergence System: Creating the MPO4 Custom Indicator
  • 2026.06.19
  • www.mql5.com
We introduce MPO4, a pressure-based oscillator that emphasizes the body and direction of candles in the context of current volatility. The article details its mathematics, normalization into a bounded range, and the EMA smoothing, then builds a pivot-driven divergence module designed not to repaint. You get complete MQL5 implementation and practical guidance for interpreting signals, including a comparison with RSI as an alternative source.