capam

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/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.
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?