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

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

# IIndicatorsAccessor.EaseOfMovement

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

## EaseOfMovement(int periods, MovingAverageType maType)

The Ease Of Movement indicator relates the price change to the volume.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
EaseOfMovement EaseOfMovement(int periods, MovingAverageType maType)
```

Python:

```python
api.Indicators.EaseOfMovement(periods: int, maType: MovingAverageType) -> EaseOfMovement
```

### Parameters

- `periods` (`int`, Python `int`): The period used for the calculation
- `maType` (`MovingAverageType`, Python `MovingAverageType`): The moving average type used for the calculation

### Returns

`EaseOfMovement` — Ease Of Movement indicator instance

### Examples

C#:

```csharp
var easeOfMovement = Indicators.EaseOfMovement(14, MovingAverageType.Simple);
Print("Ease Of Movement: {0}", easeOfMovement.Result.Last(1));
```

Python:

```python
easeOfMovement = api.Indicators.EaseOfMovement(14, MovingAverageType.Simple)
api.Print(f"Ease Of Movement: {easeOfMovement.Result.Last(1)}")
```

## EaseOfMovement(Bars bars, int periods, MovingAverageType maType)

The Ease Of Movement indicator relates the price change to the volume.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
EaseOfMovement EaseOfMovement(Bars bars, int periods, MovingAverageType maType)
```

Python:

```python
api.Indicators.EaseOfMovement(bars: Bars, periods: int, maType: MovingAverageType) -> EaseOfMovement
```

### Parameters

- `bars` (`Bars`, Python `Bars`): The Bars that will be used by indicator, you can pass another timeframe/symbol bars
- `periods` (`int`, Python `int`): The period used for the calculation
- `maType` (`MovingAverageType`, Python `MovingAverageType`): The moving average type used for the calculation

### Returns

`EaseOfMovement` — Ease Of Movement indicator instance

### Examples

C#:

```csharp
var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var dailyEaseOfMovement = Indicators.EaseOfMovement(dailyBars, 14, MovingAverageType.Simple);
Print("Daily Ease Of Movement: {0}", dailyEaseOfMovement.Result.Last(1));
```

Python:

```python
dailyBars = api.MarketData.GetBars(TimeFrame.Daily)
dailyEaseOfMovement = api.Indicators.EaseOfMovement(dailyBars, 14, MovingAverageType.Simple)
api.Print(f"Daily Ease Of Movement: {dailyEaseOfMovement.Result.Last(1)}")
```

