---
id: "T:cAlgo.API.TradeWatchIsVisibleChangedEventArgs"
kind: "class"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/TradeWatchIsVisibleChangedEventArgs/"
---

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

# TradeWatchIsVisibleChangedEventArgs (class)

Provides data for plugin trade watch IsVisibleChanged event.

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.

## Definition

```csharp
public class TradeWatchIsVisibleChangedEventArgs
```

## Examples

C#:

```csharp
protected override void OnStart()
{
    TradeWatch.IsVisibleChanged += OnTradeWatchIsVisibleChanged;
}

private void OnTradeWatchIsVisibleChanged(TradeWatchIsVisibleChangedEventArgs args)
{
    Print("Trade watch is visible: {0}", args.TradeWatch.IsVisible);
}
```

Python:

```python
def on_start(self):
    api.TradeWatch.IsVisibleChanged += self.on_trade_watch_is_visible_changed

def on_trade_watch_is_visible_changed(self, args):
    api.Print(f"Trade watch is visible: {args.TradeWatch.IsVisible}")
```

## Properties

- `public TradeWatch TradeWatch {get;}` — Trade watch. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/TradeWatchIsVisibleChangedEventArgs/TradeWatch/index.md)

