NinjaScript > Language Reference > Indicator >

Overlay

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
If true, any indicator plot(s) are drawn on the chart panel over top of price.

 

Property Value

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

 

Syntax

Overlay

 

 

Examples

// Initialize method of a custom indicator
protected override void Initialize()
{
    Add(new Plot(Color.Orange, "SMA"));
    Overlay = true; // Indicator plots are drawn on the chart panel on top of price
}