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

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

# IIndicatorsAccessor.ChaikinMoneyFlow

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

## ChaikinMoneyFlow(int periods)

The Chaikin Money Flow indicator measures the money flow volume over a specific period.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
ChaikinMoneyFlow ChaikinMoneyFlow(int periods)
```

Python:

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

### Parameters

- `periods` (`int`, Python `int`): The period used for the calculation

### Returns

`ChaikinMoneyFlow` — Chaikin Money Flow indicator instance

### Examples

C#:

```csharp
var chaikinMoneyFlow = Indicators.ChaikinMoneyFlow(21);
var isBuyingPressure = chaikinMoneyFlow.Result.Last(1) > 0;
Print("Chaikin Money Flow: {0}, buying pressure: {1}", chaikinMoneyFlow.Result.Last(1), isBuyingPressure);
```

Python:

```python
chaikinMoneyFlow = api.Indicators.ChaikinMoneyFlow(21)
isBuyingPressure = chaikinMoneyFlow.Result.Last(1) > 0
api.Print(f"Chaikin Money Flow: {chaikinMoneyFlow.Result.Last(1)}, buying pressure: {isBuyingPressure}")
```

## ChaikinMoneyFlow(Bars bars, int periods)

The Chaikin Money Flow indicator measures the money flow volume over a specific period.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
ChaikinMoneyFlow ChaikinMoneyFlow(Bars bars, int periods)
```

Python:

```python
api.Indicators.ChaikinMoneyFlow(bars: Bars, periods: int) -> ChaikinMoneyFlow
```

### 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

### Returns

`ChaikinMoneyFlow` — Chaikin Money Flow indicator instance

### Examples

C#:

```csharp
var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var dailyChaikinMoneyFlow = Indicators.ChaikinMoneyFlow(dailyBars, 21);
Print("Daily Chaikin Money Flow: {0}", dailyChaikinMoneyFlow.Result.Last(1));
```

Python:

```python
dailyBars = api.MarketData.GetBars(TimeFrame.Daily)
dailyChaikinMoneyFlow = api.Indicators.ChaikinMoneyFlow(dailyBars, 21)
api.Print(f"Daily Chaikin Money Flow: {dailyChaikinMoneyFlow.Result.Last(1)}")
```

