Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal


i-Regression Channel - indicator for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

Published by:
Nikolay Kositsin
votes: 18
2011.11.09 16:59
2016.11.22 07:32

Real author:


i-Regression Channel generates regression channel.

Linear regression channel consists of two parallel lines located at the equal distance from the linear regression trend line. The distance between the channel borders and the regression line is equal to the value of the highest close price deviation from the regression line.

The indicator is implemented in two versions:

  • i-Regr_Channel_Time.mq5 - this indicator calculates the channel from the date fixed in the input parameters;
  • i-Regr_Channel_Bars.mq5 - this indicator calculates the channel from the number of bars fixed in the input parameters.
Indicators input parameters:
  • degree - degree of regression, changes from 1 to 61;
  • kstd - regression channel width;
  • data - channel calculation start date;
  • CountBars - the number of bars for the channel calculation;
  • Applied_price - applied price;
  • shift - the channel horizontal shift in bars.

This indicator was first implemented in MQL4 and published in Code Base at 27.02.2009.

Linear Regression Channel (degree = 1):

Regression Linear Channel (degree = 1)

Square (Parabolic) Regression Channel (degree = 2):

Square (Parabolic) Regression Channel (degree = 2)

Cubic Regression Channel (degree = 3):

Cubic Regression Channel (degree = 3)

Translated from Russian by MetaQuotes Software Corp.
Original code:

Hull Moving Average (HMA) Hull Moving Average (HMA)

Hull Moving Average (HMA) that can change its color.

CyberCycle CyberCycle

Cyber Cycle high-frequency filter.

Mikahekin Mikahekin

Mikahekin can be called a complete analytical block rather than just an indicator. The color of bars shows a trend direction and their height indicates a trend power. Blue and magenta dots show trailing-stop levels for long and short positions, respectively.

CG Oscillator CG Oscillator

CG Oscillator basic and signal lines crossing generates buy and sell signals.