TradeWatchTab.Attach
method · TradeWatchTab · cAlgo.API
DesktopCLICloud
Attaches current tab back to trade watch.
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 Attach()
tradeWatchTab.Attach() -> bool
Returns bool
Examples
var tab = TradeWatch.AddTab("My Tab");
tab.Detach();
var isAttached = tab.Attach();
Print("Tab attached back: {0}", isAttached);
tab = api.TradeWatch.AddTab("My Tab")
tab.Detach()
isAttached = tab.Attach()
api.Print(f"Tab attached back: {isAttached}")