Skip to content
All library documents

Flexible-Speed Quadratic Weighted Moving Average Indicator

Article MQL5 code base

Summary

This indicator generalizes the quadratic weighted moving average by letting users choose a continuous speed parameter while keeping the calculation period fixed. The stated reference settings reproduce a simple moving average at speed zero, a linear weighted moving average at one, and the original quadratic weighting at two; intermediate or larger values create other weight profiles.

Users can optionally add floating levels and choose whether colors and alerts respond to slope changes, a middle-level cross, or an outer-level cross. With levels disabled, coloring follows the slope. The indicator also supports multiple time frames and a range of price inputs and alert types. The document describes features and parameter behavior, but provides no performance evidence or guidance for selecting speed, periods, or levels, so it does not establish that any configuration improves trading results.

Key ideas

  • The speed parameter changes the weighting profile without changing the calculation period.
  • Speed values of zero, one, and two correspond to simple, linear weighted, and quadratic weighted averages.
  • Users can select slope changes or level crossings to drive indicator colors and alerts.
  • Floating levels can be disabled, in which case the coloring follows the average’s slope.
  • The description gives no evidence that a particular setting produces better trading outcomes.

Tags

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