Skip to main content

Slope of a Linear Regression Line for Metastock

star123 over 15 years ago Metastock

  • Rating:
    5 / 5 (Votes 1)
  • Tags:
    oscillator, metastock, slope

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.