Skip to content

TradeWatchTab.Detach

method · TradeWatchTab · cAlgo.API

DesktopCLICloud

Detaches current tab to a separate window.

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()
tradeWatchTab.Detach() -> bool

Returns bool

Examples

var tab = TradeWatch.AddTab("My Tab");
var isDetached = tab.Detach();
Print("Tab detached: {0}", isDetached);
tab = api.TradeWatch.AddTab("My Tab")
isDetached = tab.Detach()
api.Print(f"Tab detached: {isDetached}")