RegressionChannel

View as Markdown

Definition

Represents an interface that exposes information regarding a Regression Channel IDrawingTool.

Methods and Properties

  • Parameter

  • Description


  • StartAnchor

  • An IDrawingTool’s ChartAnchor representing the starting point of the drawing object


  • EndAnchor

  • An IDrawingTool’s ChartAnchor representing the starting point of the drawing object


  • RegressionStroke

  • The Stroke object used to draw the middle line of the object


  • LowerChannelStroke

  • The Stroke object used to draw the lower line of the object


  • UpperChannelStroke

  • The Stroke object used to draw the upper line of the object


  • PriceType

  • Possible values are:

    • PriceType.Close

    • PriceType.High

    • PriceType.Low

    • PriceType.Median

    • PriceType.Open

    • PriceType.Typical


  • ChannelType

  • An enum value representing if the object will use standard deviations calculations for the upper/lower lines. Possible values are:

RegressionChannelType.SegmentRegressionChannelType.StandardDeviation
ExtendLeftA bool value representing if the object will extend to the left
ExtendRightA bool value representing if the object will extend to the right
StandardDeviationLowerDistanceA double value representing the standard deviation distance to the lower line
StandardDeviationUpperDistanceA double value representing the standard deviation distance to the upper line

Examples

1// Instantiate a RegressionChannel object
2NinjaTrader.NinjaScript.DrawingTools.RegressionChannel myRegChan = Draw.RegressionChannel(this, "tag1", 10, 0, Brushes.Blue);
3
4// Change the object's PriceType
5myRegChan.PriceType = PriceType.Median;

To differentiate between DrawingTools.RegressionChannel and Indicators.RegressionChannel when assigning a RegressionChannel object, you will need to invoke the former path explicitly, as seen in the example above.