IsOverlay

View as Markdown

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.

This property should ONLY be set from the OnStateChange() method during State.SetDefaults

Syntax

IsOverlay

Examples

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