---
id: "E:cAlgo.API.ChartRobots.RobotModified"
kind: "event"
type: "T:cAlgo.API.ChartRobots"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/Robots/ChartRobots/RobotModified/"
---

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

# ChartRobots.RobotModified

Member of [ChartRobots](https://help.ctrader.com/ctrader-algo/references/Chart/Robots/ChartRobots/index.md).

## RobotModified

Occurs when a chart Robot instance is modified.

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

- Cloud: Always empty: Count is 0, Add returns null, Remove returns false, and the events never fire.

C#:

```csharp
event Action<ChartRobotModifiedEventArgs> RobotModified;
```

Python:

```python
api.ChartRobots.RobotModified += handler  # handler(obj: ChartRobotModifiedEventArgs)
```

### Returns

`Action<ChartRobotModifiedEventArgs>` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    ChartRobots.RobotModified += OnRobotModified;
}

private void OnRobotModified(ChartRobotModifiedEventArgs args)
{
    Print("cBot modified: {0}", args.Robot.Name);
}
```

Python:

```python
def on_start(self):
    api.ChartRobots.RobotModified += self.on_robot_modified

def on_robot_modified(self, args):
    api.Print(f"cBot modified: {args.Robot.Name}")
```

