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


LinearRegression - indicator for MetaTrader 5

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

Published by:
Nikolay Kositsin
votes: 18
2012.02.09 12:30
2016.11.22 07:32

Real author:


When applied to financial markets this method is usually used to determine the moments of prices extreme deviation from a "standard" level.

Creation of a trend line using linear regression is based on the least squares method. This method assumes that a straight line is created that pass through the price points so that the distance between the prices points to the line is as short as possible. In an attempt to predict tomorrow prices, it is logical to assume that they will be located close to the values of today's prices. If there is an uptrend, the best guess would be that the price value will be close to the current one with a certain upward deviation. Regression analysis provides statistical confirmation of these assumptions.

This indicator was first implemented in MQL4 and published in CodeBase at 09.10.2007.

Linear Regression indicator

Translated from Russian by MetaQuotes Software Corp.
Original code:


Normalized oscillator displayed as a histogram.

DailyRange DailyRange

The indicator calculates forecast prices of the daily price range. It shows resistance and support levels of current day using the prices of the previous day.

JBrainTrendSig1 JBrainTrendSig1

Signal indicator of the popular BrainTrend1 trading system with preliminary price timeseries smoothing.

3X_ParabolicRegression 3X_ParabolicRegression

Two rectilinear channels of standard deviations + curvelinear channel of the parabolic regression with interpolation of a price chart future values.