RegressionPolynomial is a trend indicator calculating values of polynomial regression on each bar.

Optimized methods of calculation are used for the first and the second degrees, QRMA, described here, is of special interest. Well known formula 3 * LWMA – 2 * SMA is used for the first degree. The code also has a function calculating QWMA of more sensitive moving than LWMA.

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”.

This indicator was first implemented in MQL4 and published in CodeBase on April 27, 2012.


MT5 Indicator – Download Instructions

RegressionPolynomial is a Metatrader 5 (MT5) indicator and the essence of the forex indicator is to transform the accumulated history data.

RegressionPolynomial provides for an opportunity to detect various peculiarities and patterns in price dynamics which are invisible to the naked eye.

Based on this information, traders can assume further price movement and adjust their strategy accordingly.

How to install RegressionPolynomial.mq5?

  • Download RegressionPolynomial.mq5
  • Copy RegressionPolynomial.mq5 to your Metatrader Directory / experts / indicators /
  • Start or restart your Metatrader 5 Client
  • Select Chart and Timeframe where you want to test your indicator
  • Search “Custom Indicators” in your Navigator mostly left in your Metatrader 5 Client
  • Right click on RegressionPolynomial.mq5
  • Attach to a chart
  • Modify settings or press ok
  • Indicator RegressionPolynomial.mq5 is available on your Chart

How to remove RegressionPolynomial.mq5 from your Metatrader 5 Chart?

  • Select the Chart where is the Indicator running in your Metatrader Client
  • Right click into the Chart
  • “Indicators list”
  • Select the Indicator and delete

Click below to download

RegressionPolynomial – indicator for MetaTrader 5

MT4 Forex Dashboard
Previous articleXVolume
Next articleBnB HTF