ChartIndicators.IndicatorRemoved
event · ChartIndicators · cAlgo.API
DesktopCLICloud
Occurs when an indicator is removed from a chart.
Environment behaviour
Cloud — not supported. Always empty: Count is 0, Add returns null, Remove returns false, and the events never fire.
Definition
event Action<ChartIndicatorRemovedEventArgs> IndicatorRemoved;
api.ChartIndicators.IndicatorRemoved += handler # handler(obj: ChartIndicatorRemovedEventArgs)
Examples
protected override void OnStart()
{
ChartIndicators.IndicatorRemoved += OnIndicatorRemoved;
}
private void OnIndicatorRemoved(ChartIndicatorRemovedEventArgs args)
{
Print("Indicator removed: {0}", args.Indicator.Name);
}
def on_start(self):
api.ChartIndicators.IndicatorRemoved += self.on_indicator_removed
def on_indicator_removed(self, args):
api.Print(f"Indicator removed: {args.Indicator.Name}")