LR()

See Also  

Related Topics

 

 

Description

LR() returns a linear regression.

 

 

Syntax

LR(instrument , length, type)

 

 

Parameters

instrument

An instrument.

 

length

The number of points (bars).

 

type

One of four possible values: 0 is linear scaling; 1 is logarithmic scaling; 2 is continuous; 3 is quadratic.

 

 

Return Values

A linear regression value.

 

 

Examples

LR(CSCO,100,0)

 

Displays a 100 point Linear Regression on Cisco Systems scaled linearly.

 

LR(instrument , lrRange, lrScale)

 

Displays a Linear Regression on the instrument passed to the instrument variable. The length, or number of points, is defined by the lrRange variable, and the lrScale variable defines the regression type.

 

 

Comments

NA