Elder Ray

How far the high and low reach beyond an exponential average: buying and selling power.

Elder ray: bull power = high − EMA(x, period), bear power = low − EMA(x, period), in price. Ready at period candles. Mirror: bull and bear power swap and the comparison flips (bull > 0 becomes bear < 0).

Settings

SettingDefaultRangeWhat it does
period131 to 500EMA period.

What it gives

OutputWhat it is
Bull powerBull power: high − EMA.
Bear powerBear power: low − EMA.

What it reads

It reads open, high, low, close, hl2, hlc3, ohlc4, hlcc4, close by default.

Warm-up

With its default settings, Elder Ray needs 52 closed candles before its first value. A backtest loads them before its start date, so the first trade can already use it.

Test it

Copy this sentence into the Algonney chat to backtest it:

Backtest a strategy on BTC that uses Elder Ray with its default settings