RegressionPolynomial – trend indicator that calculates the values of polynomial regression on each bar. For the first and second power-optimized calculation methods used, is of special interest – QRMA described here . For the first degree, the well-known form of 3 * LWMA – 2 * SMA. Also, the code is a function computes QWMA – MA more sensitive than LWMA. The indicator uses library classes SmoothAlgorithms.mqh (to copy in katalog_dannyh_terminala \ MQL5 \ Include), detailed description of which was published in the article “Averaging price series without additional buffers for intermediate calculations” .