Skip to content

Frame.Detach

method · Frame · cAlgo.API

DesktopCLICloud

Detaches frame from it is chart container.

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

bool Detach()
frame.Detach() -> bool

Returns bool — True if successful otherwise false

Examples

var chartFrame = ChartManager.AddChartFrame("EURUSD", TimeFrame.Hour);
Print("Detached: {0}, is attached now: {1}", chartFrame.Detach(), chartFrame.IsAttached);
chartFrame = api.ChartManager.AddChartFrame("EURUSD", TimeFrame.Hour)
api.Print(f"Detached: {chartFrame.Detach()}, is attached now: {chartFrame.IsAttached}")