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

2011.11.09 16:59

i-Regression Channel - indicator for MetaTrader 5

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

Published by:
Nikolay Kositsin
votes: 17

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:

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

TP-SL_Removing TP-SL_Removing

Immediately deletes the SL/TP of all positions.

Closed_TOTAL Closed_TOTAL

Total closure of all positions (winners/losers). You can also select which are of a single instrument.