Frame.IsAttached
property · Frame · cAlgo.API
DesktopCLICloud
Returns true if frame is attached otherwise false.
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 IsAttached {get;}
frame.IsAttached: bool
Returns bool
Examples
var chartFrame = ChartManager.AddChartFrame("EURUSD", TimeFrame.Hour);
if (chartFrame.IsAttached)
chartFrame.Detach();
chartFrame = api.ChartManager.AddChartFrame("EURUSD", TimeFrame.Hour)
if chartFrame.IsAttached:
chartFrame.Detach()