Plugin.TradeWatch
property · Plugin · cAlgo.API
DesktopCLICloud
Gets the Trade Watch panel.
Environment behaviour
CLI — not supported. Plugins cannot run in the CLI: ctrader-cli runs cBots only.
Cloud — not supported. Plugins cannot run in the cloud: it runs cBots only.
Definition
public TradeWatch TradeWatch {get;}
api.TradeWatch: TradeWatch
Returns TradeWatch
Examples
var tab = TradeWatch.AddTab("My Tab");
tab.Child = new TextBlock { Text = "Hello from my plugin" };
tab.IsSelected = true;
Print("Trade watch is visible: {0}", TradeWatch.IsVisible);
tab = api.TradeWatch.AddTab("My Tab")
textBlock = TextBlock()
textBlock.Text = "Hello from my plugin"
tab.Child = textBlock
tab.IsSelected = True
api.Print(f"Trade watch is visible: {api.TradeWatch.IsVisible}")