LR_SLOPE

Top  Previous  Next

Keyword Description

Linear Regression Slope

Class

Function

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

l

l

l

 

 

 

Syntax

LR_SLOPE[v,n]

v is either the Open, High, Low, Close, or a column number.  n is the number of periods in the study.

Example

Sample code

COL2 = LR_SLOPE[COL1, 30]

 

ThumbTack white

Calculates the slope of the linear regression line for the number of days selected.  As the slope of the line gets steeper, the value of the slope increases, and as the slope of the line flattens, the value of slope decreases.