R2(d,p)
Previous Topic  Next Topic 


Name

Comment

Name

Description

Parameter 1

Parameter 2

Returns

Comment

Example


Interpretation

R2-koefficient for linear regression

Returns the deviation for a straight line through dataseries d for p periods back

Dataseries, reference back in dataseries or return value from other function returning dataseries

Periods

Dataseries with deviation 0.0-1.0 for calculated line

Function LinReg() is used to obtain the lines last point

MULT(R2(C,10),100) gives the deviation between 0-100 for the points of dataseries 10 periods of Close

A way to measure the quality of a trend. 1=high coherence of price trend and line.

Tips for graphics


Placement

Scaling

Show as flag

Price bars if stand alone function. Otherwise any.

0-100 if multiplied by 100 as shown in example above

No