An Open Linear Regression channel.

Namespace: RightEdge.Common.ChartObjects
Assembly: Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)

Syntax

C#
[SerializableAttribute]
public class ChartOpenLRegression : ChartRegressionBase
Visual Basic
<SerializableAttribute>
Public Class ChartOpenLRegression
	Inherits ChartRegressionBase
Visual C++
[SerializableAttribute]
public ref class ChartOpenLRegression : public ChartRegressionBase
F#
[<SerializableAttribute>]
type ChartOpenLRegression =  
    class
        inherit ChartRegressionBase
    end

Remarks

A classic statistical problem is to try to determine the relationship between two random variables. The Linear Regression channel displays the statistically predicted price value.

Examples

Create an open linear regression channel programmatically (C#)
 Copy imageCopy
// Setup our X coordinates.
DateTime leftPoint = DateTime.Now.AddDays(-21);
DateTime rightPoint = DateTime.Now;

// Create the open linear regression channel object with the default color.
// Note, the price (Y) portion of the ChartPoint is not used.
ChartOpenLRegression lrOpenChannel = new ChartOpenLRegression(new ChartPoint(leftPoint, 20.00), new ChartPoint(rightPoint, 20.00));

// Add this object to the chart.  "symbol" would equal the current symbol object in the system.
ChartObjects.Add(symbol, lrOpenChannel);

Inheritance Hierarchy

See Also