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

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

# WatchlistSymbolRemovedEventArgs (class)

Occurs when the symbol is removed from the watchlist.

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

- Cloud: Never raised in the cloud: the events that pass it never fire there (Watchlists.WatchlistSymbolRemoved).

## Definition

```csharp
public class WatchlistSymbolRemovedEventArgs
```

## Examples

C#:

```csharp
using cAlgo.API;

namespace cAlgo
{
    // This sample shows how to use WatchlistSymbolRemovedEventArgs
    public partial class WatchlistSymbolRemovedEventArgsSample : Indicator
    {
        protected override void Initialize()
        {
            Watchlists.WatchlistSymbolRemoved += OnWatchlistSymbolRemoved;
        }

        private void OnWatchlistSymbolRemoved(WatchlistSymbolRemovedEventArgs obj)
        {
            Print("Symbol {0} removed from watchlist {1}", obj.SymbolName, obj.Watchlist.Name);
        }

        public override void Calculate(int index)
        {
        }
    }
}
```

Python:

```python
import clr
clr.AddReference("cAlgo.API")

from cAlgo.API import *

class Test():
    def initialize(self):
        api.Watchlists.WatchlistSymbolRemoved += self.on_watchlist_symbol_removed

    def on_watchlist_symbol_removed(self, args):
        print(f"Symbol {args.SymbolName} removed from watchlist {args.Watchlist.Name}")
```

config.json:

```json
{
  "AccessRights": "None",
  "TimeZone": "UTC",
  "IsOverlay": true
}
```

## Properties

- `public string SymbolName {get;}` — Gets the symbol name. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/WatchlistSymbolRemovedEventArgs/SymbolName/index.md)
- `public Watchlist Watchlist {get;}` — Gets the watchlist. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/WatchlistSymbolRemovedEventArgs/Watchlist/index.md)

