This indicator was first implemented in MQL4 and published in Code Base on 05.05.2008.
The indicator uses SmoothAlgorithms.mqh library classes (must be copied to the 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".
Figure 1. The Cronex_Impulse_CD_Color indicator
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/1730
A trailing stop module based on the WPR indicator with short and long Stop Losslinreg
A typical MA using the linear regression algorithm