---
id: "E:cAlgo.API.RadioButton.Unchecked"
kind: "event"
type: "T:cAlgo.API.RadioButton"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/RadioButton/Unchecked/"
---

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

# RadioButton.Unchecked

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

## Unchecked

Occurs when unchecked.

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

- CLI: Accepted without error but never displayed, so control events such as Click are never raised.
- Cloud: Accepted without error but never displayed, so control events such as Click are never raised.

C#:

```csharp
public event Action<RadioButtonEventArgs> Unchecked;
```

Python:

```python
radioButton.Unchecked += handler  # handler(obj: RadioButtonEventArgs)
```

### Returns

`Action<RadioButtonEventArgs>` — 

### Examples

C#:

```csharp
var buyRadioButton = new RadioButton { Text = "Buy", GroupName = "Direction", IsChecked = true };
buyRadioButton.Unchecked += args => Print("{0} is no longer selected", args.RadioButton.Text);
Chart.AddControl(buyRadioButton);
```

Python:

```python
def on_start(self):
    buyRadioButton = RadioButton()
    buyRadioButton.Text = "Buy"
    buyRadioButton.GroupName = "Direction"
    buyRadioButton.IsChecked = True
    buyRadioButton.Unchecked += self.on_radio_button_unchecked
    api.Chart.AddControl(buyRadioButton)

def on_radio_button_unchecked(self, args):
    api.Print(f"{args.RadioButton.Text} is no longer selected")
```

