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

# Triangle

## Definition

Represents an interface that exposes information regarding a Triangle [IDrawingTool](/developer/desktop-sdk/references/common/drawing/idrawingtool).

## Methods and Properties

| Parameter     | Description                                                                                                                                         |
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| StartAnchor   | An [IDrawingTool's ChartAnchor](/developer/desktop-sdk/references/drawing-tools/chartanchor) representing the starting point of the drawing object  |
| MiddleAnchor  | An [IDrawingTool's ChartAnchor](/developer/desktop-sdk/references/drawing-tools/chartanchor) representing the middle point of the drawing object    |
| EndAnchor     | An [IDrawingTool's ChartAnchor](/developer/desktop-sdk/references/drawing-tools/chartanchor) representing the end point of the drawing object       |
| AreaBrush     | A [Brush](http://msdn.microsoft.com/en-us/library/system.windows.media.brush\(v=vs.110\).aspx) class representing the fill color of the draw object |
| AreaOpacity   | An int value representing the opacity of the area color                                                                                             |
| OutlineStroke | The [Stroke](/developer/desktop-sdk/references/common/charts/stroke-class) object used to draw the object's outline                                 |

## Example

```csharp
// Instantiate a Triangle object  
Triangle myTri = Draw.Triangle(this, "tag1", 4, Low[4], 3, High[3], 1, Low[1], Brushes.Blue);              
   
// Change the object's AreaOpacity  
myTri.AreaOpacity = 100;
```