ChartObject.IsInteractive
property · ChartObject · cAlgo.API
DesktopCLICloud
Defines whether the instance is interactive. The non-interactive chart objects cannot be selected, have no hover effect and cannot be searched. Available only for the current cBot or Indicator and will be removed when the cBot/Indicator stops.
Environment behaviour
CLI — works differently. Created and kept with all its properties, but never drawn: the CLI displays no chart.
Cloud — works differently. Created and kept with all its properties, but never drawn: the cloud displays no chart.
Definition
bool IsInteractive {get; set;}
chartObject.IsInteractive: bool
Returns bool
Examples
var line = Chart.DrawHorizontalLine("support", Bars.LowPrices.LastValue, Color.Green);
line.IsInteractive = true;
Print("User can select and move the line: {0}", line.IsInteractive);
line = api.Chart.DrawHorizontalLine("support", api.Bars.LowPrices.LastValue, Color.Green)
line.IsInteractive = True
api.Print(f"User can select and move the line: {line.IsInteractive}")