NinjaScript > Language Reference > Drawing >

DrawGannFan()

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Draws a Gann Fan.

 

Method Return Value

An IGannFan object that represents the draw object.

 

Syntax
DrawGannFan(string tag, bool autoScale, int barsAgo, double y)

DrawGannFan(string tag, bool autoScale, DateTime time, double y)

 

Parameters

tag

A user defined unique id used to reference the draw object. For example, if you pass in a value of "myTag", each time this tag is used, the same draw object is modified. If unique tags are used each time, a new draw object will be created each time.

autoScale

Determines if the draw object will be included in the y-axis scale

barsAgo

The bar the object will be drawn at. A value of 10 would be 10 bars ago.

time

The time the object will be drawn at.

y

The y value

 

 

Examples

// Draws a Gann Fan at the current bar low
DrawGannFan("tag1", true, 0, Low[0]);