Skip to content
All library documents

An Adaptive Trend Indicator That Tracks Price Changes

Article MQL5 code base

Summary

This document describes an indicator whose value is updated according to the deviation between its prior value and the observed price. Its starting point is the first historical price value. The indicator is characterized as responsive to market volatility because sharp price changes affect how quickly its line approaches price.

A period setting controls the approximation speed. An optional limit mode can cap the maximum change in the indicator value, with a separate parameter specifying the limit amount. The text provides no entry or exit rules, performance results, or comparison with other trend measures, so it offers a description of indicator behavior rather than evidence of a profitable strategy. Its practical interpretation depends on parameter choices and is not elaborated further.

Key ideas

  • The indicator updates based on the difference between its prior value and price.
  • Its initial value is anchored to the first price in the available history.
  • The period parameter controls how quickly the indicator line approaches price.
  • An optional limit mode caps changes in the indicator value.
  • The description provides no trading rules or performance evidence.

Tags

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