FrameAttachedEventArgs
class cAlgo.API
DesktopCLICloud
Provides data for the frame attached 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 FrameAttachedEventArgs
Namespace: cAlgo.API · Group: EventArgs
Examples
protected override void OnStart()
{
var frame = ChartManager.AddChartFrame("EURUSD", TimeFrame.Hour);
frame.Attached += OnFrameAttached;
}
private void OnFrameAttached(FrameAttachedEventArgs args)
{
Print("Frame {0} attached to container {1}", args.Frame.Id, args.Frame.ChartContainer?.Id);
}
def on_start(self):
frame = api.ChartManager.AddChartFrame("EURUSD", TimeFrame.Hour)
frame.Attached += self.on_frame_attached
def on_frame_attached(self, args):
api.Print(f"Frame {args.Frame.Id} attached, is attached: {args.Frame.IsAttached}")
Properties
| Name | Description |
|---|---|
FrameDesktopCLICloudFrame | Returns the frame. |