Skip to content

TradeWatchTabDetachedEventArgs

class cAlgo.API

DesktopCLICloud

Provides data for plugin trade watch tab 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 TradeWatchTabDetachedEventArgs

Namespace: cAlgo.API · Group: EventArgs

Examples

protected override void OnStart()
{
    var tab = TradeWatch.AddTab("My Tab");
    tab.Child = new TextBlock { Text = "Hello from plugin" };
    tab.Detached += OnTradeWatchTabDetached;
}

private void OnTradeWatchTabDetached(TradeWatchTabDetachedEventArgs args)
{
    Print("Tab {0} detached from the trade watch", args.TradeWatchTab.Title);
}
def on_start(self):
    tab = api.TradeWatch.AddTab("My Tab")
    text_block = TextBlock()
    text_block.Text = "Hello from plugin"
    tab.Child = text_block
    tab.Detached += self.on_trade_watch_tab_detached

def on_trade_watch_tab_detached(self, args):
    api.Print(f"Tab {args.TradeWatchTab.Title} detached from the trade watch")

Properties

Name Description
TradeWatchTabDesktopCLICloudTradeWatchTab Detached tab.

See also