IsOverlay

Description

The overlay property defines whether the indicator outputs are displayed in the price chart above the bars or whether a separate chart window is opened below the charting area.

IsOverlay = true

The indicator is drawn above the price (for example an SMA)

IsOverlay = false (default)

A separate chart window is opened (RSI)

This property can be queried within the script and outputs a value of the type Boolean (true or false).

Usage

IsOverlay

Example

protected override void OnInit()
{
       AddOutput(new OutputDescriptor(Color.FromKnownColor(KnownColor.Black), "MyPlot1"));
//The indicator should be displayed within a separate window
IsOverlay = false;
}

Last updated