IIndicatorsAccessor.ElderRayIndex
method · IIndicatorsAccessor · cAlgo.API.Internals
DesktopCLICloud
Elder Ray Index shows the maximum bullish and bearish strengths during the time period.
Overloads
| Signature |
|---|
ElderRayIndex(int periods, MovingAverageType maType) |
ElderRayIndex(Bars bars, int periods, MovingAverageType maType) |
ElderRayIndex(int periods, MovingAverageType maType)
Elder Ray Index shows the maximum bullish and bearish strengths during the time period.
ElderRayIndex ElderRayIndex(int periods, MovingAverageType maType)
api.Indicators.ElderRayIndex(periods: int, maType: MovingAverageType) -> ElderRayIndex
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
periods | int | int | Moving Average Period |
maType | MovingAverageType | MovingAverageType | Moving Average Type |
Returns ElderRayIndex — ElderRayIndex
Examples
var elderRay = Indicators.ElderRayIndex(13, MovingAverageType.Exponential);
Print("Elder Ray bulls power: {0}, bears power: {1}", elderRay.BullsPower.Last(1), elderRay.BearsPower.Last(1));
elderRay = api.Indicators.ElderRayIndex(13, MovingAverageType.Exponential)
api.Print(f"Elder Ray bulls power: {elderRay.BullsPower.Last(1)}, bears power: {elderRay.BearsPower.Last(1)}")
ElderRayIndex(Bars bars, int periods, MovingAverageType maType)
Elder Ray Index shows the maximum bullish and bearish strengths during the time period.
ElderRayIndex ElderRayIndex(Bars bars, int periods, MovingAverageType maType)
api.Indicators.ElderRayIndex(bars: Bars, periods: int, maType: MovingAverageType) -> ElderRayIndex
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
bars | Bars | Bars | The Bars that will be used by indicator, you can pass another timeframe/symbol bars |
periods | int | int | Moving Average Period |
maType | MovingAverageType | MovingAverageType | Moving Average Type |
Returns ElderRayIndex — ElderRayIndex
Examples
var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var dailyElderRay = Indicators.ElderRayIndex(dailyBars, 13, MovingAverageType.Exponential);
Print("Daily Elder Ray bulls power: {0}, bears power: {1}", dailyElderRay.BullsPower.Last(1), dailyElderRay.BearsPower.Last(1));
dailyBars = api.MarketData.GetBars(TimeFrame.Daily)
dailyElderRay = api.Indicators.ElderRayIndex(dailyBars, 13, MovingAverageType.Exponential)
api.Print(f"Daily Elder Ray bulls power: {dailyElderRay.BullsPower.Last(1)}, bears power: {dailyElderRay.BearsPower.Last(1)}")