ArePlotsConfigurable

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Indicator > AddPlot() >

ArePlotsConfigurable

Previous page Return to chapter overview Next page

Definition

Determines if the plot(s) used in an indicator are configurable within the indicator dialog window.

 

Property Value

A bool which returns true if any indicator plot(s) are configurable; otherwise, false. Default set to true.

 

Syntax

ArePlotsConfigurable

 

Examples

ns


protected override void OnStateChange()
{
    if (State == State.SetDefaults)
    {
        AddPlot(Brushes.Orange, "SMA");
        ArePlotsConfigurable = false; // Plots are not configurable in the indicator dialog
    }
}