TrendChannel

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Common > Drawing > Draw.TrendChannel() >

TrendChannel

Previous page Return to chapter overview Next page

Definition

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

 

Methods and Properties

TrendStartAnchor

An IDrawingTool's ChartAnchor representing the starting point of the drawing object

TrendEndAnchor

An IDrawingTool's ChartAnchor representing the end point of the drawing object

ParallelStartAnchor

An IDrawingTool's ChartAnchor representing the starting point of the second line used in the trend channel

ParallelEndAnchor

An IDrawingTool's ChartAnchor representing the ending point of the second line used in the trend channel

PriceLevels

A collection of prices calculated by the drawing object

 

 

 

Example

ns

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