NinjaScript > Language Reference > Indicator >

HorizontalGridLines

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Plots horizontal grid lines on the indicator panel.

 

Property Value

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

 

Syntax

HorizontalGridLines

 

 

Examples

// Initialize method of a custom indicator
protected override void Initialize()
{
    Add(new Plot(Color.Orange, "SMA"));
    HorizontalGridLines = false; // Horizontal grid lines will not plot on the indicator panel
}

 

 

Tips

1.The indicator panel's parent chart has a similar property 'HorizontalGridLines' which if set to false, will override the indicator's local setting if true.