TrendChannel

View as Markdown

Definition

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

Methods and Properties

ParameterDescription
TrendStartAnchorAn IDrawingTool’s ChartAnchor representing the starting point of the drawing object
TrendEndAnchorAn IDrawingTool’s ChartAnchor representing the end point of the drawing object
ParallelStartAnchorAn IDrawingTool’s ChartAnchor representing the starting point of the second line used in the trend channel
PriceLevelsA collection of prices calculated by the drawing object

Example

1// Instantiate a TrendChannel object
2TrendChannel myTC = Draw.TrendChannel(this, "tag1", true, 10, Low[10], 0, High[0], 10, High[10] + 5 * TickSize);
3
4// Increase the y-axis position of the object's TrendEndAnchor
5myTC.TrendEndAnchor.Price += 15;