This variant of the Moving Average indicator is calculated based on five moving averages.
All editable variables are implemented as indicator input parameters. However, keep in mind that these variables are interdependent to some extent, so you should adjust them more carefully!
FactorN input variables represent the unit weight of the Moving Average with number N in total indicator value.
The indicator uses the classes of SmoothAlgorithms.mqh library (copy it to <terminal_data_folder>\MQL5\Include). The use of the classes was thoroughly described in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers".
Fig.1. The ColorZerolagX10MA indicator
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/13347
The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.Average Directional Movement Index (ADX)
The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.