OPEN-SOURCE SCRIPT

Vortex Pro with Moving average [point algo]

125
Vortex Pro with MA Dropdown is an enhanced version of the classic Vortex Indicator (VI), designed to help visualize directional strength by comparing positive and negative trend movement.
This version includes a smoothed “Vortex Pro” line, adjustable moving-average filtering, and dynamic zone coloring for improved readability.

How It Works:
The script calculates VI+ and VI− using directional movement and true range.
“Vortex Pro” is derived from the difference between VI+ and VI−, scaled for clarity.
A customizable moving average (EMA, SMA, HMA, WMA) is applied to help smooth volatility and highlight shifts in momentum.

Features :

• Vortex Pro Line
A scaled trend-strength line showing when positive movement is dominating or weakening.
• MA Type Dropdown
Choose between EMA, SMA, HMA, or WMA to smooth the Vortex Pro line.
• Zero-Line Structure
A plotted zero line is used to compare positive vs. negative strength visually.
• Dynamic Fill Zones
Green shading when the Vortex Pro line is above zero, red when below.

Usage:
This tool is designed for visual analysis of trend direction and momentum strength.
It does not generate buy/sell signals and should be used as part of a broader analysis approach.
Suitable for all timeframes and markets.

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.