Skip to content

TradeWatchTab

interface cAlgo.API

DesktopCLICloud

Represents a trade watch panel tab.

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 interface TradeWatchTab

Namespace: cAlgo.API · Group: TradeWatch

Examples

var tab = TradeWatch.AddTab("My Tab");
tab.Child = new TextBlock { Text = "Hello from my plugin" };
tab.IsBalanceBarVisible = false;
tab.IsSelected = true;
Print("Trade watch tab {0} added at index {1}", tab.Title, tab.Index);
tab = api.TradeWatch.AddTab("My Tab")
textBlock = TextBlock()
textBlock.Text = "Hello from my plugin"
tab.Child = textBlock
tab.IsBalanceBarVisible = False
tab.IsSelected = True
api.Print(f"Trade watch tab {tab.Title} added at index {tab.Index}")

Methods

Name Description
AttachDesktopCLICloudbool Attaches current tab back to trade watch.
DetachDesktopCLICloudbool Detaches current tab to a separate window.

Properties

Name Description
ChildDesktopCLICloudControlBase Get / set content of current tab.
DetachedWindowDesktopCLICloudDetachedWindow Returns detached window properties.
HeightDesktopCLIClouddouble Returns current height of tab.
IdDesktopCLICloudstring Returns unique ID of the current tab.
IndexDesktopCLICloudint Get / set the index of the tab.
IsBalanceBarVisibleDesktopCLICloudbool Get / set the visibility of balance bar for the tab.
IsSelectedDesktopCLICloudbool Get / set selected state of current tab.
TitleDesktopCLICloudstring Returns title of the current tab.
WidthDesktopCLIClouddouble Returns current width of tab.

Events

Name Description
AttachedDesktopCLICloudAction<TradeWatchTabAttachedEventArgs> Occurs when tab attached.
DetachedDesktopCLICloudAction<TradeWatchTabDetachedEventArgs> Occurs when tab detached.
IsSelectedChangedDesktopCLICloudAction<TradeWatchTabIsSelectedChangedEventArgs> Occurs after tab IsSelected value change.
SizeChangedDesktopCLICloudAction<TradeWatchTabSizeChangedEventArgs> Occurs after tab size (height / width) value change.

See also