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

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

# FavoriteTimeFramesRemovedEventArgs (class)

Provides data for the Favorite TimeFrames Removed 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 FavoriteTimeFramesRemovedEventArgs
```

Available since cAlgo.API 5.3.

## Examples

C#:

```csharp
protected override void OnStart()
{
    TimeFrameManager.Favorite.Removed += OnFavoriteTimeFramesRemoved;
}

private void OnFavoriteTimeFramesRemoved(FavoriteTimeFramesRemovedEventArgs args)
{
    Print("Removed from favorites: {0}", string.Join(", ", args.TimeFrames.Select(timeFrame => timeFrame.Name)));
}
```

Python:

```python
def on_start(self):
    api.TimeFrameManager.Favorite.Removed += self.on_favorite_time_frames_removed

def on_favorite_time_frames_removed(self, args):
    api.Print("Removed from favorites: " + ", ".join([str(timeFrame) for timeFrame in args.TimeFrames]))
```

## Properties

- `public TimeFrame[] TimeFrames {get;}` — Gets the removed time frames. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/FavoriteTimeFramesRemovedEventArgs/TimeFrames/index.md)

