Skip to content

TradeWatchTab.Index

property · TradeWatchTab · cAlgo.API

DesktopCLICloud

Get / set the index of the 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

int Index {get; set;}
tradeWatchTab.Index: int

Returns int

Examples

var tab = TradeWatch.AddTab("My Tab");
tab.Index = 0;
Print("Tab index: {0}", tab.Index);
tab = api.TradeWatch.AddTab("My Tab")
tab.Index = 0
api.Print(f"Tab index: {tab.Index}")