OPEN-SOURCE SCRIPT

Efficiency Ratio (Kaufman)

By nemozny
Updated
or "Generalized fractal efficiency"

Measures price trend effectiveness. Where 1.00 is trending and 0.00 not.

Calculation:
ER = Change / Sum of absolute changes

where "Change" is a price change over specified period and "Sum of Changes" sum of absolute price movements within that period

As an example, to calculate 5-day ER you have to calculate 5-day change and then calculate absolute sum of each day movements:

5-day ER = 5-day change / (|day 1 change| + |day 2 change| + |day 3 change| + |day 4 change| + |day 5 change|)
Source: marketvolume.com/technicalanalysis/efficiencyratio.asp
Release Notes
version=2 to version=4
Release Notes
correct chart now
Release Notes
Bumped to V5
OscillatorsTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer