Traders are always looking for methods to apply to the financial markets to provide some element of a trading edge.
A trading edge is any strategy which you expect to make a profitable return if used repeatedly in the long term.
Such strategies seek to trade when the odds are skewed in your favour.
One area upon which analysts have focused is statistical methods proven in other fields...
...and whether they can beneficially inform trading decisions.
This article is going to discuss a statistical technique known as linear regression and see how it applies to trading.
As we know, some methods of trading apply only to certain instruments.
But here is one of the benefits of regression trading:
...it favours no single market over another.
This is precisely because it is based on general statistical concepts.
So what is the linear regression?
Linear regression attempts to model the relationship between two variables, given a collection of data values.
The technique tries to do so by finding a line of best fit between the two.
With Forex linear regression trading, the two variables we are interested in are time and price.
Existing data values between the two are plentiful, of course.
By observing the data in a given period:
...we theoretically gain insight into the future performance, given that we can find a satisfactory line of best fit.
This is because the line of best fit is effectively what traders normally call the trend.
Most trend regression indicators don't stop there, though.
They usually also provide channels that can help indicate support and resistance.
They do this by tying in probability theory:
...and assuming that price values will fall in a normal distribution around this median line.
If the prices move a sufficiently significant distance away from the median line, they can be thought of as statistical outliers.
At these levels, we might expect to find some form of support or resistance.
So, how do we work out where these price extremes occur?
One way is to utilise the statistical concept of a normal distribution and the accompanying measure of standard deviation.
To understand better this standard deviation Forex strategy, let's quickly have a run-through of what we mean by these terms.
A normal distribution is a probability distribution that follows a bell-shaped curve.
The highest probability density is centred around the mean.
This is also the median and is represented by the dotted line μ in the diagram above.
An important point to note is that all normal distributions are symmetrical.
This places both the mean and the median at the exact centre of the bell curve.
Standard deviation is another statistical measure and quantifies how scattered the values are in a data set.
The larger the standard deviation, the wider the bell curve.
Now, the mathematics that govern this curve are relatively complex.
But here's the good news:
...the concept it represents is actually fairly simple.
The further we get away from the middle of the bell, the smaller the chances are of those values of X occurring.
This means the majority of values for X occur one standard deviation either side of the mean.
In fact, in a normal distribution, we would expect around 68% of the data values to occur in this range.
Two standard deviations either side of the mean cover roughly 95% of all data values.
At the tails of the curve, we get the outliers.
These are extremely rare occurrences.
Now, why does this matter?
Well, if we see a data value that is an outlier…
...it seems a fair assumption that future values may regress toward the mean.
Trend channel trading takes these concepts and applies them to market prices.
It plots parallel regression lines either side of the line of best fit.
These lines give a rule of thumb as to where we might expect to find outlying prices.
Let's take a look at using a regression channel indicator in practice with MetaTrader 4.
Linear regression channel indicator MT4
Linear regression channel indicator comes as a standard tool with MetaTrader 4.
The image above shows how to select the indicator, via the MT4 Insert tab.
Standard Deviation is also available as an option, of which more later.
To add to your chart once you have selected MT4 Linear Regression channel:click on the chart where you wish to begin your analysis drag to the right until you reach the point you wish to end your analysis the linear regression channel automatically appears on the chart between the two points.
The image belows shows the regression trend channel, plotted as blue dotted lines, on a EUR/USD four-hour chart.
The median line is the line of best fit for the closing prices contained within the selected period.
The trend lines above and below are at equal distances from the median line.
They are parallel and represent one standard deviation from the median line.
The rules for trading the regression channel are fairly simple.
The strategy revolves around the expectation that once the price moves out to an outlying level…
...there is a good chance that it will revert to the median line.
Therefore:the upper line represents resistance the lower line represents support.
The best fit line suggests the trend.
So, a suggested method of using this indicator is to assume trend continuation and trade in the direction of the trend.
While that trend persists, we can think of the median line as being a kind of equilibrium point.
Obviously this kind of median line trading is susceptible to breakouts that result in a new trend forming.
Anytime the price breaks out beyond the channel should be treated with caution therefore.
An extended period beyond the channels suggests a new trend may be forming.
This is why you must be careful with trend analysis regression and ensure you are disciplined with your risk management.
Now it should also be pointed out that you are not limited to using only a single regression channel.
If we select standard deviation, we can add lines that are a multiple number of standard deviations away from the median.
To do this:
...we first draw our channels in exactly the same way as we did with the linear regression tool.
This plots the channels one standard deviation away, exactly as before.
We then need to edit the parameters of the tool.
We do this by selecting chart, objects and objects list.
In the objects list, select StdDev Channel and then Edit.
In the image above, the value of deviations equals 2.00.
Additionally, Ray is ticked, which causes the lines to extend infinitely to the right on the chart.
It now adds a second regression channel, with lines two standard deviations either side of the median line.
We can also draw smaller channels within a larger one in order to identify smaller trends within the overall larger trend.
If you're interested in exploring regression trading further, there are other, more complex versions with which you can experiment.
Moving average regression and polynomial regression forex analysis are just a couple of examples.
Correspondingly, moving linear regression indicator and polynomial regression channel are analysis tools that would involve the areas mentioned above.
You can download custom indicators in MetaTrader 4 that cover these more advanced versions.
For an even greater selection of cutting-edge tools, try out MetaTrader 4 Supreme Edition?
It's the ultimate plugin for MT4, with its own package of indicators and a wealth of trading aids.
Final thoughts on linear regression Forex trading
At its heart, linear regression is a method of estimating the undefined relationship between price and time.
If you want to try out linear regression trading without any risk, our demo trading account is a good place to experiment.
Regression channels are just one type of trend channel trading system.
There are many other popular types of trend channel analysis that you can use, such as Keltner channels and Donchian channels..
As a final rule of thumb:
...it's always sensible with technical analysis to try and confirm your thinking with a second-look method.
For example, the image below contains the commodity channel index as a confirming indicator.
Another way of confirming your technical analysis linear regression signals is by looking at multiple time frames.
Looking at the same channels on a longer timeframe may reveal aspects you hadn't noticed before.
We hope you found this article interesting and we wish you success with forex linear regression method of trading.