You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Check out the new article: Bloch's Relative Moving Average (RMA) Framework Implementation In MQL5.
We port Daniel Bloch's Relative Moving Average framework into a complete MetaTrader 5 system. Instead of smoothing price, the RMA measures where price sits inside its own recent distribution on a [0,1] fractile scale, and drives four cross-strategies with a regime-adaptive exit. Includes the engine, indicators, and a backtested Expert Advisor.
Classical moving averages summarize recent price with a single smoothed value, but they do not describe where the current price sits relative to its own recent distribution. A high close can mean different things: it may be unusually far from everything around it, or it may be high and yet still common within the session, matched a dozen times already. A single smoothed number cannot tell these cases apart.
The Relative Moving Average (RMA), introduced by Daniel Alexandre Bloch in his work A Course on Systematic Trading with RMA, addresses that gap. Instead of reducing a window of prices to one average, it treats the window as a small distribution, ranks the current price inside it, and expresses that rank on a clean [0, 1] scale that means the same thing on any instrument. The result is not a smoother line but a positional reading: where price sits in the local structure of the market rather than what the average happens to be
In this article, we faithfully port that framework into a working MetaTrader 5 system. It includes an indicator engine that computes the RMA curves and their fractiles, a regime detector that classifies the market as expanding, contracting, or in transition, and an Expert Advisor that implements all four of the paper's cross-strategies. We keep close to the source throughout, quoting the paper where its definitions are precise, and we finish with an honest look at how the completed system behaves in the Strategy Tester.
Author: Muhammad Minhas Qamar