IsOverlay

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Common > Charts >

IsOverlay

Previous page Return to chapter overview Next page

Definition

Determines if indicator plot(s) are drawn on the chart panel over top of price.  Setting this value to true will also allow an Indicator to be used as a SuperDOM Indicator.

 

Property Value

This property returns true if any indicator plot(s) are drawn on the chart panel; otherwise, false. Default set to false.

 

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

 

Syntax

IsOverlay

 

Examples

ns

protected override void OnStateChange()
{
    if (State == State.SetDefaults)
    {
        IsOverlay = true; // Indicator plots are drawn on the chart panel on top of price    
        AddPlot(Brushes.Orange, "SMA");
    }
}