TradeWatchTabIsSelectedChangedEventArgs
class cAlgo.API
DesktopCLICloud
Provides data for plugin trade watch tab IsSelectedChanged 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 TradeWatchTabIsSelectedChangedEventArgs
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.IsSelectedChanged += OnTradeWatchTabIsSelectedChanged;
}
private void OnTradeWatchTabIsSelectedChanged(TradeWatchTabIsSelectedChangedEventArgs args)
{
Print("Tab {0} is selected: {1}", args.TradeWatchTab.Title, args.TradeWatchTab.IsSelected);
}
def on_start(self):
tab = api.TradeWatch.AddTab("My Tab")
text_block = TextBlock()
text_block.Text = "Hello from plugin"
tab.Child = text_block
tab.IsSelectedChanged += self.on_trade_watch_tab_is_selected_changed
def on_trade_watch_tab_is_selected_changed(self, args):
api.Print(f"Tab {args.TradeWatchTab.Title} is selected: {args.TradeWatchTab.IsSelected}")
Properties
| Name | Description |
|---|---|
TradeWatchTabDesktopCLICloudTradeWatchTab | Trade watch tab. |