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

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

# ElderRayIndex (interface)

The calculation of the Elder Ray Index.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public interface ElderRayIndex
```

## Examples

C#:

```csharp
private ElderRayIndex _elderRayIndex;

protected override void OnStart()
{
    _elderRayIndex = Indicators.ElderRayIndex(13, MovingAverageType.Exponential);
}

protected override void OnBar()
{
    Print("Bulls Power: {0}, Bears Power: {1}", _elderRayIndex.BullsPower.Last(1), _elderRayIndex.BearsPower.Last(1));
}
```

Python:

```python
def on_start(self):
    self.elderRayIndex = api.Indicators.ElderRayIndex(13, MovingAverageType.Exponential)

def on_bar(self):
    api.Print(f"Bulls Power: {self.elderRayIndex.BullsPower.Last(1)}, Bears Power: {self.elderRayIndex.BearsPower.Last(1)}")
```

## Properties

- `IndicatorDataSeries BearsPower {get;}` — The histogram (bar graph). It shows the maximum bearish strength during the time period. [details](https://help.ctrader.com/ctrader-algo/references/Indicators/ElderRayIndex/BearsPower/index.md)
- `IndicatorDataSeries BullsPower {get;}` — The histogram (bar graph). It shows the maximum bullish strength during the time period. [details](https://help.ctrader.com/ctrader-algo/references/Indicators/ElderRayIndex/BullsPower/index.md)

## Inherited members

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

