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.
How to estimate Linear Regression Slope for an indicator
Re: How to estimate Linear Regression Slope for an indicator
Take a look at this: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.
http://christoph.ruegg.name/blog/linear ... erics.html
Re: How to estimate Linear Regression Slope for an indicator
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
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