From this URL I can use draw the Linear-Regression on a stock. But I wonder how to calculate its ‘correlation coefficient’? My purpose is to scan stocks with higher ‘correlation coefficient’ or smaller valatility.
It seems there is no function called Correlation by ProRealCode?
You can try to use the R-squared instruction, it measures the error rate of the linear regression on selected price.
Hi Nicolas,
Many thanks. But as I use the LinearRegression-Indicator posted in your URL above, I failt to see the lines for stock EHC. Why?
I don’t know. Do you have sufficient data for the chosen period of the channel? Did you change the percentage to test different settings?
Ok, I change the length from 100 to 20, then I can see it.