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

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

# IIndicatorsAccessor.AccumulativeSwingIndex

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

## AccumulativeSwingIndex(int limitMoveValue)

Initializes the Accumulative Swing Index indicator

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
AccumulativeSwingIndex AccumulativeSwingIndex(int limitMoveValue)
```

Python:

```python
api.Indicators.AccumulativeSwingIndex(limitMoveValue: int) -> AccumulativeSwingIndex
```

### Parameters

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

### Returns

`AccumulativeSwingIndex` — Accumulative Swing Index indicator instance

### Examples

C#:

```csharp
var accumulativeSwingIndex = Indicators.AccumulativeSwingIndex(12);
Print("Accumulative Swing Index: {0}", accumulativeSwingIndex.Result.Last(1));
```

Python:

```python
accumulativeSwingIndex = api.Indicators.AccumulativeSwingIndex(12)
api.Print(f"Accumulative Swing Index: {accumulativeSwingIndex.Result.Last(1)}")
```

## AccumulativeSwingIndex(Bars bars, int limitMoveValue)

Initializes the Accumulative Swing Index indicator

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
AccumulativeSwingIndex AccumulativeSwingIndex(Bars bars, int limitMoveValue)
```

Python:

```python
api.Indicators.AccumulativeSwingIndex(bars: Bars, limitMoveValue: int) -> AccumulativeSwingIndex
```

### Parameters

- `bars` (`Bars`, Python `Bars`): The Bars that will be used by indicator, you can pass another timeframe/symbol bars
- `limitMoveValue` (`int`, Python `int`): The value of the Limit Move used for calculation.

### Returns

`AccumulativeSwingIndex` — Accumulative Swing Index indicator instance

### Examples

C#:

```csharp
var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var dailyAsi = Indicators.AccumulativeSwingIndex(dailyBars, 12);
Print("Daily Accumulative Swing Index: {0}", dailyAsi.Result.Last(1));
```

Python:

```python
dailyBars = api.MarketData.GetBars(TimeFrame.Daily)
dailyAsi = api.Indicators.AccumulativeSwingIndex(dailyBars, 12)
api.Print(f"Daily Accumulative Swing Index: {dailyAsi.Result.Last(1)}")
```

