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

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

# TradeWatchTabAttachedEventArgs.TradeWatchTab

Member of [TradeWatchTabAttachedEventArgs](https://help.ctrader.com/ctrader-algo/references/EventArgs/TradeWatchTabAttachedEventArgs/index.md).

## TradeWatchTab

Attached 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
public TradeWatchTab TradeWatchTab {get;}
```

Python:

```python
tradeWatchTabAttachedEventArgs.TradeWatchTab: TradeWatchTab
```

### Returns

`TradeWatchTab` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    var tab = TradeWatch.AddTab("My Tab");
    tab.Attached += OnTradeWatchTabAttached;
}

private void OnTradeWatchTabAttached(TradeWatchTabAttachedEventArgs args)
{
    Print("Tab {0} attached at index {1}", args.TradeWatchTab.Id, args.TradeWatchTab.Index);
}
```

Python:

```python
def on_start(self):
    tab = api.TradeWatch.AddTab("My Tab")
    tab.Attached += self.on_trade_watch_tab_attached

def on_trade_watch_tab_attached(self, args):
    api.Print(f"Tab {args.TradeWatchTab.Id} attached at index {args.TradeWatchTab.Index}")
```

