How to estimate Linear Regression Slope for an indicator

Questions about MultiCharts .NET and user contributed studies.
sleonov1
Posts: 3
Joined: 17 Jun 2014
Has thanked: 1 time

How to estimate Linear Regression Slope for an indicator

Postby sleonov1 » 30 Dec 2014

Hi,

Can anybody help me out with a code sample how to calculate the slope of an indicator using Linear regression function.

I want to estimate the slopes of the last 5 data points of the upper and lower bollinger bands.

Thank you.

davewolfs
Posts: 89
Joined: 06 Feb 2013
Has thanked: 2 times
Been thanked: 11 times

Re: How to estimate Linear Regression Slope for an indicator

Postby davewolfs » 06 Jan 2015

Hi,

Can anybody help me out with a code sample how to calculate the slope of an indicator using Linear regression function.

I want to estimate the slopes of the last 5 data points of the upper and lower bollinger bands.

Thank you.
Take a look at this:

http://christoph.ruegg.name/blog/linear ... erics.html

sleonov1
Posts: 3
Joined: 17 Jun 2014
Has thanked: 1 time

Re: How to estimate Linear Regression Slope for an indicator

Postby sleonov1 » 27 Jan 2015

There seems to be a few built-in functions for estimating regression slope.

Can anybody show explicitly with the code how this can be applied to a data series? my coding skills are fairly modest, any help is highly appreciated folks.

Serge


Return to “MultiCharts .NET”