NinjaScript > Language Reference > Drawing >
IGannFan
Definition Represents an interface that exposes information regarding a Gann Fan IDrawObject.
Methods and Properties
BarsAgo
An int value representing the number of bars ago of the draw object
Time
A DateTime structure representing the time of the draw object
Y
An int value representing the y value of the draw object
GannFanDirection
Possible values:
GannFanDirection.DownLeft
GannFanDirection.DownRight
GannFanDirection.UpLeft
GannFanDirection.UpRight
PointsPerBar
A double value representing the number of points per bar
ShowText
A bool value representing if text will be drawn along with the draw object
Examples
protected override void OnBarUpdate() {
// Draws an Gann Fan IGannFan gann = DrawGannFan("tag1", true, 0, Low[0]);
// Print the number of bars ago of the draw object
Print(gann.BarsAgo); }