---
id: "P:cAlgo.API.Plugin.Indicators"
kind: "property"
type: "T:cAlgo.API.Plugin"
url: "https://help.ctrader.com/ctrader-algo/references/General/Plugin/Indicators/"
---

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

# Plugin.Indicators

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

## Indicators

Access to the built-in Indicators.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Plugins cannot run in the CLI: ctrader-cli runs cBots only.
- Cloud: Plugins cannot run in the cloud: it runs cBots only.

C#:

```csharp
public IIndicatorsAccessor Indicators {get;}
```

Python:

```python
api.Indicators: IIndicatorsAccessor
```

### Returns

`IIndicatorsAccessor` — 

### Examples

C#:

```csharp
var bars = MarketData.GetBars(TimeFrame.Hour, "EURUSD");
var sma = Indicators.SimpleMovingAverage(bars.ClosePrices, 20);
Print("EURUSD H1 SMA(20): {0}", sma.Result.LastValue);
```

Python:

```python
bars = api.MarketData.GetBars(TimeFrame.Hour, "EURUSD")
sma = api.Indicators.SimpleMovingAverage(bars.ClosePrices, 20)
api.Print(f"EURUSD H1 SMA(20): {sma.Result.LastValue}")
```

