EfficiencyRatio
EfficiencyRatio (ER, Perry Kaufman’s Efficiency Ratio) is the “efficiency” of a move: the net price change over the period divided by the distance traveled. The value lies from 0 — the price goes back and forth — to 1 — the price moves in a straight line. The indicator does not show the direction of the move.
The indicator is drawn in a separate area below the chart.
How to read it
- ER rising means the move is becoming directional.
- ER around 0 means noise.
The indicator has no levels on purpose: the distribution of ER depends on the period and the timeframe, so thresholds are better picked from the symbol’s history.
The same ratio sets the speed of the adaptive KAMA average — a moving average type in the MovingAverage indicator.
How it is calculated
ER = |price − price Period bars ago| / sum of |price changes| over the same bars. The price is taken from Source.
The first value appears on bar number “period + 1” — the 11th with the default settings. If the price did not change over the whole window, the value is 0.
Parameters
| Parameter | Description | Default |
|---|---|---|
| Period | How many last bars the ratio is calculated over. At least 1. | 10 |
| Source | The bar price used in the calculation: Close — the close, Median — (High + Low) / 2, Typical — (High + Low + Close) / 3. | Close |
Plots
| Parameter | Description | Default |
|---|---|---|
| ER | The efficiency ratio from 0 to 1. | Orange, solid, width 1 |
Style
The ER line has the Plot (show the line), Label (show the last value on the right scale), Color, Width (1–5) and Style (Solid, Dashes, Dots) fields.
How to add an indicator to the chart is described in Adding an indicator; parameters are changed in the indicator manager.