---
id: "P:cAlgo.API.TradeWatchTab.Index"
kind: "property"
type: "T:cAlgo.API.TradeWatchTab"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/TradeWatch/TradeWatchTab/Index/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# TradeWatchTab.Index

Member of [TradeWatchTab](https://help.ctrader.com/ctrader-algo/references/Plugin/TradeWatch/TradeWatchTab/index.md).

## Index

Get / set the index of the tab.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Available to plugins only, and plugins cannot run in the CLI.
- Cloud: Available to plugins only, and plugins cannot run in the cloud.

C#:

```csharp
int Index {get; set;}
```

Python:

```python
tradeWatchTab.Index: int
```

### Returns

`int` — 

### Examples

C#:

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

Python:

```python
tab = api.TradeWatch.AddTab("My Tab")
tab.Index = 0
api.Print(f"Tab index: {tab.Index}")
```

