GannFan

View as Markdown

Definition

Represents an interface that exposes information regarding a Gann Fan IDrawingTool.

Methods and Properties

ParameterDescription
AnchorAn IDrawingTool’s ChartAnchor representing the starting point of the drawing object
PriceLevelsA collection of prices calculated by the drawing object
GannFanDirectionPossible values:
GannFanDirection.DownLeft
GannFanDirection.DownRight
GannFanDirection.UpLeft
GannFanDirection.UpRight
PointsPerBarA double value representing the number of points per bar
IsTextDisplayedA bool value representing if text will be drawn along with the draw object

Examples

1// Instantiate a GannFan object
2GannFan myFan = Draw.GannFan(this, "tag1", true, 0, Low[0]);
3
4// Instantiate a new PriceLevel to be used in the step below
5PriceLevel myLevel = new PriceLevel(99, Brushes.Black);
6
7// Change the object's price level at index 3
8myFan.PriceLevels[3] = myLevel;