FrameDetachedEventArgs
class cAlgo.API
DesktopCLICloud
Provides data for the frame detached 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 FrameDetachedEventArgs
Namespace: cAlgo.API · Group: EventArgs
Examples
protected override void OnStart()
{
var frame = ChartManager.AddChartFrame("EURUSD", TimeFrame.Hour);
frame.Detached += OnFrameDetached;
}
private void OnFrameDetached(FrameDetachedEventArgs args)
{
Print("Frame {0} detached into its own window", args.Frame.Id);
}
def on_start(self):
frame = api.ChartManager.AddChartFrame("EURUSD", TimeFrame.Hour)
frame.Detached += self.on_frame_detached
def on_frame_detached(self, args):
api.Print(f"Frame {args.Frame.Id} detached into its own window")
Properties
| Name | Description |
|---|---|
FrameDesktopCLICloudFrame | Returns the frame. |