Linear Regression indicator (LRI)


Namespace: OpenQuant.API.Indicators
Assembly: OpenQuant.API (in OpenQuant.API.dll)

Syntax

Visual Basic (Declaration)
Public Class LRI
    Inherits Indicator
C#
public class LRI : Indicator
C++
ref class LRI : Indicator
J#
public class LRI extends Indicator
JScript
public class LRI extends Indicator

Remarks

The interpretation of a Linear Regression indicator is similar to a moving average. However, the Linear Regression indicator has two advantages over moving averages. Unlike a moving average, a Linear Regression indicator does not exhibit as much "delay." Since the indicator is "fitting" a line to the data points rather than averaging them, the Linear Regression line is more responsive to price changes.

The indicator is actually a forecast of the next periods (tomorrow?s) price plotted today. The Forecast Oscillator plots the percentage difference between the forecast price and the actual price. Tushar Chande suggests that when prices are persistently above or below the forecast price, prices can be expected to snap back to more realistic levels. In other words the Linear Regression indicator shows where prices should be trading on a statistical basis. Any excessive deviation from the regression line should be short-lived.

Formula:

Inheritance Hierarchy

System.Object
   OpenQuant.API.Indicator
      OpenQuant.API.Indicators.LRI

Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also