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

# DrawHorizontalGridLines

## Definition

Plots horizontal grid lines on the indicator panel.

The indicator panel's parent chart has a similar option 'Grid line - horizontal' which if Visible property set to false, will override the indicator's local setting if true.

## Property Value

This property returns true if horizontal grid lines are plotted on the indicator panel; otherwise, false. Default set to true.

This property should ONLY be set from the **OnStateChange()** method during State.SetDefaults or State.Configure.

## Syntax

`DrawHorizontalGridLines`

## Examples

```csharp
protected override void OnStateChange()
{
     if (State == State.SetDefaults)
     {
         DrawHorizontalGridLines = false; // Horizontal grid lines will not plot on the indicator panel     
         AddPlot(Brushes.Orange, "SMA");
     }
}
```