Skip to content

ElderRayIndex

interface cAlgo.API.Indicators

DesktopCLICloud

The calculation of the Elder Ray Index.

Definition

public interface ElderRayIndex

Namespace: cAlgo.API.Indicators · Group: Indicators · Implements: StandardIndicator

Examples

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));
}
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

Name Description
BearsPowerDesktopCLICloudIndicatorDataSeries The histogram (bar graph). It shows the maximum bearish strength during the time period.
BullsPowerDesktopCLICloudIndicatorDataSeries The histogram (bar graph). It shows the maximum bullish strength during the time period.

Inherited members

From StandardIndicator: AddToChart, Symbol, TimeFrame, Bars