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

# HorizontalLine

## Definition

Represents an interface that exposes information regarding a Horizontal Line **IDrawingTool**.

## Methods and Properties

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

## Examples

```csharp
// Instantiate a HorizontalLine object
HorizontalLine myLine = Draw.HorizontalLine(this, "tag1", 1000, Brushes.Black);

// Set a new Stroke for the object
myLine.Stroke = new Stroke(Brushes.Green, DashStyleHelper.Dash, 5);
```