ChartIndicatorAddedEventArgs
class cAlgo.API
DesktopCLICloud
The class representing AddedEventArgs for a ChildIndicator.
Environment behaviour
Cloud — not supported. Never raised in the cloud: the events that pass it never fire there (ChartIndicators.IndicatorAdded).
Definition
public class ChartIndicatorAddedEventArgs : ChartIndicatorEventArgs
Namespace: cAlgo.API · Group: EventArgs · Inherits: ChartIndicatorEventArgs
Examples
protected override void OnStart()
{
Chart.Indicators.IndicatorAdded += OnChartIndicatorAdded;
}
private void OnChartIndicatorAdded(ChartIndicatorAddedEventArgs args)
{
Print("Indicator {0} added to the chart, panel index: {1}", args.Indicator.Name, args.Indicator.PanelIndex);
}
def on_start(self):
api.Chart.Indicators.IndicatorAdded += self.on_chart_indicator_added
def on_chart_indicator_added(self, args):
api.Print(f"Indicator {args.Indicator.Name} added to the chart, panel index: {args.Indicator.PanelIndex}")
Inherited members
From ChartIndicatorEventArgs: Indicator