Skip to content

ChartIndicator.PanelIndex

property · ChartIndicator · cAlgo.API

DesktopCLICloud

Gets or sets the index of the panel on which an indicator is displayed.

Definition

int PanelIndex {get; set;}
chartIndicator.PanelIndex: int

Returns int

Examples

var rsi = ChartIndicators.Add("Relative Strength Index", Bars.ClosePrices, 14);
Print("RSI panel index: {0}", rsi.PanelIndex);
rsi.PanelIndex = 0;
rsi = api.ChartIndicators.Add("Relative Strength Index", api.Bars.ClosePrices, 14)
api.Print(f"RSI panel index: {rsi.PanelIndex}")
rsi.PanelIndex = 0