OPEN-SOURCE SCRIPT

Ehlers Trend Vigor

This approach is from Dr. John Ehlers:
The trend vigor indicator is not the same as the Relative Vigor Index (RVI). Trend Vigor measures the strength of the trend relative to the cycle. The larger the value of the Trend Vigor, the more powerful the trend is relative to the cycle.

The trend vigor is the slope of the close (or any other price input) over one full dominant cycle divided by the amplitude of the dominant cycle.
Typical Approach:
offset = measured dominant cycle

close - close[offset]/amplitude

The amplitude is more complicated. It is defined as:
sqrt( (InPhase * Inphase) + (Quadrature * Quadrature) )

The Inphase and Quadrature are components derived when calculating the dominant cycle. Detailed discussion of the InPhase and Quadrature components can be found in Ehler's book, "Rocket Science for Traders" in the chapter discussing the Homodyne Discriminator dominant cycle calculation.
Centered OscillatorsehlersOscillatorsTrend Analysis

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明