The X2MA indicator with additional trend strength indication using colored dots based on the standard deviation algorithm.
If the standard deviation of the X2MA indicator is higher than the dK input parameter value, then a colored dot appears on the moving average. Its color corresponds to the current trend direction.
input double dK=2.0; // Square-law filter coefficient
The indicator uses SmoothAlgorithms.mqh library classes (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 X2MA_StDev indicator
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/12780
The Exp_AFL_WinnerSign Expert Advisor is based on signals generated by the AFL_WinnerSign semaphore arrow signal indicator.AFL_Winner_HTF_Signal
The AFL_Winner_HTF_Signal indicator shows the trend direction and the signal based on the AFL_WinnerSign indicator.