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

نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الرمز في المنشور يخضع لقواعد‎‎قوانين الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟

إخلاء المسؤولية