IsChartOnly

View as Markdown

Definition

If true, any indicator will be only available for charting usage - indicators with this property enabled would for example not be expected to show if called in a SuperDOM or MarketAnalyzer window.

Property Value

This property returns true if the indicator can only be used on a chart; otherwise, false. Default set to false.

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

Syntax

IsChartOnly

Examples

1protected override void OnStateChange()
2{
3 if (State == State.SetDefaults)
4 {
5 IsChartOnly = true; // Allow the indicator to work in charting environment only
6 }
7}