Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Regression Polynomial - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources - MetaTrader 5 Resources

author EAcpu | 2 reads | 0 comments |

RegressionPolynomial - indicator for MetaTrader 5

Regression Polynomial is a trend indicator that calculates the polynomial regression value on each bar.

The optimized computational method for first and second degrees, QRMA, described here , is of particular interest. The well known formula 3*LWMA - 2*SMA is used for level one. The code also has functionality to calculate moving QWMA, which is more sensitive than LWMA.

The indicator uses the SmoothAlgorithms.mqh library class (must be copied to the terminal data folder \MQL5\include). The use of the class "Average price series for intermediate calculations without using additional buffers" is described in detail in the article.

The indicator was first implemented in MQL4 and published in the code base on April 27, 2012.

RegressionPolynomial - indicator for MetaTrader 5

Figure 1. Regression polynomial indicator


Attachment download

📎 smoothalgorithms.mqh (134.03 KB)

📎RegressionPolynomial.mq5 (12.55 KB)

Source: MQL5 #11388

Verification code Refresh