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

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

# CheckBox.Indeterminate

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

## Indeterminate

Occurs when indeterminate.

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<CheckBoxEventArgs> Indeterminate;
```

Python:

```python
checkBox.Indeterminate += handler  # handler(obj: CheckBoxEventArgs)
```

### Returns

`Action<CheckBoxEventArgs>` — 

### Examples

C#:

```csharp
var checkBox = new CheckBox { Text = "Direction filter", IsThreeState = true };
checkBox.Indeterminate += args => Print("Direction filter is off, trading both sides");
Chart.AddControl(checkBox);
```

Python:

```python
def on_start(self):
    checkBox = CheckBox()
    checkBox.Text = "Direction filter"
    checkBox.IsThreeState = True
    checkBox.Indeterminate += self.on_check_box_indeterminate
    api.Chart.AddControl(checkBox)

def on_check_box_indeterminate(self, args):
    api.Print("Direction filter is off, trading both sides")
```

