> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# GannFan

## Definition

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

## Methods and Properties

| Parameter                                                                   | Description                                                                                                                                                |
| --------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Anchor                                                                      | An **IDrawingTool's ChartAnchor** representing the starting point of the drawing object                                                                    |
| [PriceLevels](/developer/desktop-sdk/references/common/drawing/pricelevels) | A collection of prices calculated by the drawing object                                                                                                    |
| GannFanDirection                                                            | Possible values:<br />**GannFanDirection.DownLeft**<br />**GannFanDirection.DownRight**<br />**GannFanDirection.UpLeft**<br />**GannFanDirection.UpRight** |
| PointsPerBar                                                                | A **double** value representing the number of points per bar                                                                                               |
| IsTextDisplayed                                                             | A bool value representing if text will be drawn along with the draw object                                                                                 |

## Examples

```csharp
// Instantiate a GannFan object
GannFan myFan = Draw.GannFan(this, "tag1", true, 0, Low[0]);

// Instantiate a new PriceLevel to be used in the step below
PriceLevel myLevel = new PriceLevel(99, Brushes.Black);

// Change the object's price level at index 3
myFan.PriceLevels[3] = myLevel;
```