Slope of a Linear Regression Line for Metastock
The following custom formula will return the slope of a Linear Regression Line.
Indicator / Formula
Copy & Paste Friendly
tp:=Input("Time Periods",1,200,21);
((tp*(Sum(Cum(1)*C,tp)))-(Sum(Cum(1),tp)*(Sum(C,tp))))/((tp*Sum(Pwr(Cum(1),2),tp))-Pwr(Sum(Cum(1),tp),2))0 comments
Leave Comment
Please login here to leave a comment.