IsYAxisDisplayedOverlay

View as Markdown

Definition

Indicates any objects configured in the panel are using the Overlay scale justification.

Property Value

A bool indicating any objects use the Overlay scale justification.

Syntax

ChartPanel.IsYAxisDisplayedOverlay

Examples

Based on the image below, IsYAxisDisplayedOverlay is set to True, since the SMA indicator is using the Overlay scale justification.

ChartPanel_IsYAxisDisplayedOverlay

1protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
2{
3 base.OnRender(chartControl, chartScale);
4
5 // Trigger an alert when the Overlay scale justification is used
6 if (ChartPanel.IsYAxisDisplayedOverlay)
7 Alert("overlayAlert", Priority.Low, "It is not recommended to use 'Overlay' with this indicator", "", 300, Brushes.Yellow, Brushes.Black);
8}