R – Squared indicato
Name: 


Author:  
Downloaded:  5653  
Download: 


rsquared shows the correlation with its linear regression line
values close to 1.0 show perfect relation See Metastock Help 

Great, I was just going to code a linear regression myself.
However, I found to mistakes in the code, but they’ll only become obvious when looking at the slope. I changed the regression iteration to: for (i=0; i<=per1; i++) { This first line was modified to get display rSquare at the correct bar 