---
id: "T:cAlgo.API.StandardIndicator"
kind: "interface"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/General/StandardIndicator/"
---

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

# StandardIndicator (interface)

Base type for standard indicators.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public interface StandardIndicator
```

## Examples

C#:

```csharp
var rsi = Indicators.RelativeStrengthIndex(Bars.ClosePrices, 14);
Print("RSI on {0} {1}: {2}", rsi.Symbol.Name, rsi.TimeFrame, rsi.Result.LastValue);
```

Python:

```python
rsi = api.Indicators.RelativeStrengthIndex(api.Bars.ClosePrices, 14)
api.Print(f"RSI on {rsi.Symbol.Name} {rsi.TimeFrame}: {rsi.Result.LastValue}")
```

## Methods

- `ChartIndicator AddToChart()` — Adds current indicator to chart if not added yet. [details](https://help.ctrader.com/ctrader-algo/references/General/StandardIndicator/AddToChart/index.md)

## Properties

- `Bars Bars {get;}` — Gets indicator Bars. [details](https://help.ctrader.com/ctrader-algo/references/General/StandardIndicator/Bars/index.md)
- `Symbol Symbol {get;}` — Gets indicator Symbol. [details](https://help.ctrader.com/ctrader-algo/references/General/StandardIndicator/Symbol/index.md)
- `TimeFrame TimeFrame {get;}` — Gets indicator TimeFrame. [details](https://help.ctrader.com/ctrader-algo/references/General/StandardIndicator/TimeFrame/index.md)

