Skip to content
All library documents

Variable-Period Moving Average Reset at Price Crossings

Article MQL5 code base

Summary

This indicator uses a simple moving average whose calculation period increases over time. When price crosses the moving average, the period resets and a new calculation begins. A chart label marks each new period, and the indicator has no user-configurable settings.

The description explains the indicator's basic behavior but provides no trading rules, performance results, or guidance for choosing entries and exits. It also gives no detail about how the period grows or how the indicator behaves across different markets and time frames. Traders would need to inspect or test an implementation before judging whether its changing lookback offers a useful signal.

Key ideas

  • The moving average's calculation period increases until price intersects it.
  • A price and moving-average intersection starts a fresh calculation period.
  • The indicator places a chart label when a new period begins.
  • The description provides no configurable parameters or performance evidence.

Tags

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