DisplayInDataBox

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Indicator >

DisplayInDataBox

Previous page Return to chapter overview Next page

Definition

Determines if plot(s) display in the chart data box.

 

Property Value

This property returns true if the indicator plot(s) values display in the chart data box; otherwise, false. Default set to true.

 

Warning:  This property should ONLY bet set from the OnStateChange() method during State.SetDefaults or State.Configure

 

 

Syntax

DisplayInDataBox

 

Examples

ns


protected override void OnStateChange()
{
    if (State == State.SetDefaults)
    {
        DisplayInDataBox = false;  
        AddPlot(Brushes.Orange, "SMA");
    }
}