---
id: "M:cAlgo.API.Internals.IIndicatorsAccessor.ChandeMomentumOscillator(cAlgo.API.DataSeries,System.Int32)"
kind: "method"
type: "T:cAlgo.API.Internals.IIndicatorsAccessor"
url: "https://help.ctrader.com/ctrader-algo/references/Indicators/IIndicatorsAccessor/ChandeMomentumOscillator/"
---

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

# IIndicatorsAccessor.ChandeMomentumOscillator

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

## ChandeMomentumOscillator(DataSeries source, int periods)

The Chande Momentum Oscillator (CMO) is a technical indicator designed to measure the momentum of a financial instrument.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
ChandeMomentumOscillator ChandeMomentumOscillator(DataSeries source, int periods)
```

Python:

```python
api.Indicators.ChandeMomentumOscillator(source: DataSeries, periods: int) -> ChandeMomentumOscillator
```

### Parameters

- `source` (`DataSeries`, Python `DataSeries`): The source data used for calculation.
- `periods` (`int`, Python `int`): The value of the periods used for calculation.

### Returns

`ChandeMomentumOscillator` — Chande Momentum Oscillator indicator instance

### Examples

C#:

```csharp
var cmo = Indicators.ChandeMomentumOscillator(Bars.ClosePrices, 9);
if (cmo.Result.LastValue > 50)
    Print("Chande Momentum Oscillator is overbought: {0}", cmo.Result.LastValue);
```

Python:

```python
cmo = api.Indicators.ChandeMomentumOscillator(api.Bars.ClosePrices, 9)
if cmo.Result.LastValue > 50:
    api.Print(f"Chande Momentum Oscillator is overbought: {cmo.Result.LastValue}")
```

## ChandeMomentumOscillator(int periods)

The Chande Momentum Oscillator (CMO) is a technical indicator designed to measure the momentum of a financial instrument.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
ChandeMomentumOscillator ChandeMomentumOscillator(int periods)
```

Python:

```python
api.Indicators.ChandeMomentumOscillator(periods: int) -> ChandeMomentumOscillator
```

### Parameters

- `periods` (`int`, Python `int`): The value of the periods used for calculation.

### Returns

`ChandeMomentumOscillator` — Chande Momentum Oscillator indicator instance

### Examples

C#:

```csharp
var cmo = Indicators.ChandeMomentumOscillator(9);
Print("Chande Momentum Oscillator(9): {0}", cmo.Result.LastValue);
```

Python:

```python
cmo = api.Indicators.ChandeMomentumOscillator(9)
api.Print(f"Chande Momentum Oscillator(9): {cmo.Result.LastValue}")
```

