OPEN-SOURCE SCRIPT

Efficiency Ratio

The efficiency ratio (ER) is described by Perry Kaufman in his book, Trading Systems and Methods.

It works by measuring the momentum of the market, that is, the absolute change from the current price to a past price, and divides it by the volatility, which is the sum of the absolute changes of each bar. That makes this a bounded indicator, going from 0 to 100, like an oscillator. Higher values mean less noise, while lower values mean more.

Eg.: if the market moves from 10.0 to 15.0 in a directional manner, with every bar up, the ER is going to be at 100. However, if it moves up and down, and goes all over the place until finally reaching 15.0, the ER is going to be at around 20. It is very difficult for the ER to be at zero, because that would require 0 volatility, which is almost impossible to occur.

This indicator is useful when planning for trades. If you notice the ER being higher than average, you may choose to increase the position size, because that would mean that the market is directional and has less chance of a whipsaw.
efficiencyratioKaufman's Adaptive Moving Average (KAMA)noiseOscillatorsVolatility

Script de código abierto

Siguiendo fielmente el espíritu de TradingView, el autor de este script lo ha publicado en código abierto, permitiendo que otros traders puedan entenderlo y verificarlo. ¡Olé por el autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la reutilización de este código en la publicación se rige por las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

¿Quiere utilizar este script en un gráfico?

Exención de responsabilidad