> 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.

# Polygon

## Definition

Represents an interface that exposes information regarding a **Polygon** **IDrawingTool**.

## Methods and Properties

| Parameter   | Description                                                                             |
| ----------- | --------------------------------------------------------------------------------------- |
| StartAnchor | An **IDrawingTool's ChartAnchor** representing the starting point of the drawing object |
| EndAnchor   | An **IDrawingTool's ChartAnchor** representing the end point of the drawing object      |
| Stroke      | A **Stroke** object used to draw the object                                             |

## Examples

```csharp
// Instantiate a Polygon object
Polygon myPolygon = Draw.Polygon(this, "tag1", false, 20, 194, 10, 184, 13, 176, 25, 182);

// Set a new area brush for the object
myPolygon.AreaBrush = Brushes.Green;
```