NinjaScript > Language Reference > Indicator >

SessionBreakLines

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Plots session break lines on the indicator panel.

 

Property Value

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

 

Syntax

SessionBreakLines

 

 

Examples

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

 

 

Tips

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