IsTradingHoursBreakLineVisible

View as Markdown

Definition

Plots trading hours break lines on the indicator panel.

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.

Property Value

This property returns true if trading hours break 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

IsTradingHoursBreakLineVisible

Examples

1protected override void OnStateChange()
2{
3 if (State == State.SetDefaults)
4 {
5 IsTradingHoursBreakLineVisible = true;
6 AddPlot(Brushes.Orange, "SMA");
7 }
8}