Skip to content

ChartFrameLinkedChartGroupChangedEventArgs

class cAlgo.API

DesktopCLICloud

Provides data for the chart frame LinkedChartGroup changed event.

Environment behaviour

CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.

Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.

Definition

public class ChartFrameLinkedChartGroupChangedEventArgs

Namespace: cAlgo.API · Group: EventArgs

Examples

protected override void OnStart()
{
    var chartFrame = ChartManager.AddChartFrame("EURUSD", TimeFrame.Hour);
    chartFrame.LinkedChartGroupChanged += OnLinkedChartGroupChanged;
}

private void OnLinkedChartGroupChanged(ChartFrameLinkedChartGroupChangedEventArgs args)
{
    Print("Chart frame {0} linked chart group changed to {1}", args.ChartFrame.Id, args.ChartFrame.LinkedChartGroup);
}
def on_start(self):
    chart_frame = api.ChartManager.AddChartFrame("EURUSD", TimeFrame.Hour)
    chart_frame.LinkedChartGroupChanged += self.on_linked_chart_group_changed

def on_linked_chart_group_changed(self, args):
    api.Print(f"Chart frame {args.ChartFrame.Id} linked chart group changed to {args.ChartFrame.LinkedChartGroup}")

Properties

Name Description
ChartFrameDesktopCLICloudChartFrame Returns the chart frame.

See also