Skip to content
All library documents

Corrected Moving Averages and Trend Signals with Floating Levels

Article MQL5 code base

Summary

This indicator calculates four types of averages and can display a corrected version alongside the original average. Its correction period controls how that adjustment is applied: a negative setting disables correction, a setting from zero to one uses the average’s own period, and a value above one specifies a fixed correction period. The description says the correction is intended to preserve the original value more closely when correction is inactive, making the approach potentially applicable to values beyond averages, though it discusses averages as the primary use.

Floating levels provide another way to interpret the indicator as an oscillator and identify trend states. The state or color can respond to slope changes, crossings of outer or middle levels, crossings of the original average, or crosses between the corrected and original values. The author cautions that short average periods can produce noise and suggests balancing responsiveness with filtering. No quantitative comparison, backtest results, or precise performance evidence is supplied, so claims about false signals remain qualitative.

Key ideas

  • The indicator displays corrected and original versions of several types of averages.
  • A negative correction period disables the correction; other settings determine its period.
  • Floating levels and crossings offer several possible ways to identify trend changes.
  • Short average periods may generate noisy signals, so the period involves a responsiveness tradeoff.
  • The document offers qualitative guidance but no numerical testing evidence.

Tags

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