Vortex
systemic:core-viIndicatorsInputs
| Name | Type | Description |
|---|---|---|
| Window | Whole number | The number of bars over which the Vortex Movements and the True Range are summed. |
| Price High | Number series | The highest price of each bar, used to calculate the **Positive Vortex Movement** ($VM^+$). |
| Price Low | Number series | The lowest price of each bar, used to calculate the **Negative Vortex Movement** ($VM^-$). |
| Price Close | Number series | The closing price of each bar, used to calculate the **True Range** (TR). |
Outputs
| Name | Type | Description |
|---|---|---|
| +VI | Number series | The Positive Vortex Indicator at each bar: the strength of upward price movement over the window. |
| -VI | Number series | The Negative Vortex Indicator at each bar: the strength of downward price movement over the window. |
| Difference | Number series | The +VI value minus the -VI value at each bar, a single line that shows trend direction and strength. |
Cost
0.217 + 0.0185·n credits for n bars, rounded up. The marks are each plan's limit of bars.
The Vortex Indicator detects the start of new trends and the continuation of existing ones. Etienne Botes and Douglas Siepman developed it (published January 2010 in Technical Analysis of Stocks & Commodities). They were inspired by the spiraling motion of water described by the Austrian naturalist Viktor Schauberger: water forms vortex patterns around obstacles, and prices move in a similar back-and-forth between buyers and sellers.
Two lines, (positive vortex) and (negative vortex), measure upward and downward pressure:
Where is the Window (commonly 14 bars).
The Mathematics: Why It Works
To see why the Vortex Indicator captures trend direction, look at each component:
Step 1: Vortex Movement (VM)
The vortex movement measures directional thrust. It connects the price extremes of two consecutive bars:
Why absolute values? — Only the size of the move matters, not its sign. A large shows strong upward thrust even if the price did not close higher.
The visual pattern: If you connect each bar's low to the next bar's high (and the reverse), you trace a spiral that looks like a vortex. This gives the indicator its name.
Step 2: True Range (TR)
True Range scales the vortex movement by overall volatility:
Why divide by TR? — Raw values cannot be compared across price levels. A $5 move means more for a $50 stock than for a $500 stock. Dividing by TR makes VI comparable across assets and over time.
Step 3: Summation and Ratio
Summing over bars smooths noise:
Both lines oscillate around 1.0, with values typically between 0.7 and 1.3. Each ratio compares one directional movement with the total range.
Calculation Pipeline
flowchart TD
subgraph Input["Price Inputs"]
H["High"]
L["Low"]
C["Close"]
end
subgraph VM["Vortex Movement"]
VMP["VM+ = |High - Prior Low|"]
VMM["VM- = |Low - Prior High|"]
end
subgraph TR["True Range"]
TRC["TR = max(H-L, |H-PC|, |L-PC|)"]
end
subgraph Sum["Sum over n bars"]
SVP["Σ VM+"]
SVM["Σ VM-"]
STR["Σ TR"]
end
subgraph Output["Final Indicators"]
VIP["VI+ = Σ VM+ / Σ TR"]
VIM["VI- = Σ VM- / Σ TR"]
DIFF["Difference = VI+ - VI-"]
end
H --> VMP & TRC
L --> VMM & TRC
C --> TRC
H --> VMM
L --> VMP
VMP --> SVP
VMM --> SVM
TRC --> STR
SVP --> VIP
SVM --> VIM
STR --> VIP & VIM
VIP --> DIFF
VIM --> DIFF
Inputs with Different Periods
The Vortex Indicator needs three price series that cover the same bars: Price High, Price Low and Price Close. When these inputs have different periods or start dates, Systemic aligns them before the calculation.
How Alignment Works
| Scenario | What Happens |
|---|---|
| Different periods (e.g., 1h High, 15m Low) | The slower series repeats its last value until its next bar |
| Different start dates | The result starts where all three inputs have data |
| Empty bars | Stay empty and are skipped (see Missing Data) |
Impact on VI Calculations
Repeated values: When the three inputs have different periods, and can look artificially stable while one series is repeated. This can:
- Delay crossover signals
- Understate volatility in the True Range
- Create false consolidation patterns
Best practice: Take Price High, Price Low and Price Close from the same data source and period whenever possible.
Missing Data
VI uses a bar only when it has a High, a Low and a Close. A bar that misses any of them (data
gap, weekend, holiday) is empty on all three outputs (+VI, -VI, Difference). It is never filled.
The Window counts only bars that have all three prices: across a market-closed gap, the sums
go straight from the last bar before the gap to the first bar after it. The first window such
bars are empty, because every Vortex Movement needs the bar before it. In a flat window (High,
Low and Close all constant) the True Range and both Vortex Movements are zero, so the ratio is
0 ÷ 0 and the outputs are empty.
Interpreting the Vortex Indicator
Crossover Signals
flowchart LR
subgraph Bullish["Bullish Signal"]
B1["VI+ crosses above VI-"]
B2["Uptrend beginning"]
end
subgraph Bearish["Bearish Signal"]
R1["VI- crosses above VI+"]
R2["Downtrend beginning"]
end
B1 --> B2
R1 --> R2
| Event | Interpretation | Action |
|---|---|---|
| VI+ crosses above VI- | Bullish momentum dominates | Consider long positions |
| VI- crosses above VI+ | Bearish momentum dominates | Consider short positions or exiting longs |
| Lines diverging | Trend strengthening | Hold the current position |
| Lines converging | Trend weakening | Prepare for a possible reversal |
Trend Strength via Spread
The Difference output (VI+ minus VI-) measures how strong the trend is:
| Spread (VI+ − VI-) | Interpretation |
|---|---|
| > +0.10 | Strong bullish trend |
| +0.05 to +0.10 | Moderate bullish trend |
| -0.05 to +0.05 | Neutral / consolidation |
| -0.10 to -0.05 | Moderate bearish trend |
| < -0.10 | Strong bearish trend |
Parameter Selection
| Window | Behavior | Best For |
|---|---|---|
| 7-10 | Sensitive, more signals, more noise | Short-term / day trading |
| 14 (standard) | Balanced sensitivity and reliability | Swing trading |
| 21-34 | Smoother, fewer false signals | Position trading, macro trends |
| 55+ | Very smooth, only major trend changes | Long-term investing |
The original authors recommend longer windows (21+) on shorter periods to filter noise. For example, a 34-bar VI on 5-minute bars.
Real-World Applications
1. Cryptocurrency Trend Regime Detection
Cryptocurrency markets trend strongly and reverse sharply. The Vortex Indicator works well in these conditions because:
- High volatility produces clear VI+/VI- separation during trends
- Momentum-driven moves create sustained crossovers (unlike mean-reverting assets)
- 24/7 trading means trends develop without overnight gaps distorting signals
Application: Use VI crossovers to find shifts between trending and consolidating phases. When |VI+ − VI-| > 0.15, the asset is likely in a strong trend. When the spread falls below 0.05, expect range-bound behavior.
Research opportunity: Compare VI crossover performance across different crypto market cap tiers. Do large-caps (BTC, ETH) produce cleaner signals than small-caps?
2. Sector Rotation Timing
Sector ETFs (Technology, Healthcare, Energy, Financials and others) move in and out of favor with economic cycles. The Vortex Indicator can help time these rotations:
Strategy concept:
- Monitor VI+ and VI- on major sector ETFs (e.g., XLK, XLV, XLE, XLF)
- When a sector's VI+ crosses above VI- while others show VI- dominance, capital may be rotating into that sector
- Confirm with relative strength against the broad market (SPY)
Why this works: Sector rotation is about trend changes: money flows from one sector to another. VI is built to find this turning point.
Caution: Sector moves can be slow (weeks to months). Use longer VI windows (21-34 bars) on daily bars to filter noise.
VI vs. Alternative Trend Indicators
| Aspect | Vortex Indicator | ADX/DMI | MACD |
|---|---|---|---|
| Lines | 2 (VI+, VI-) | 3 (ADX, DI+, DI-) | 3 (MACD, Signal, Histogram) |
| Crossover signals | Direct from VI+/VI- | Requires DI+/DI- crossover | MACD/Signal crossover |
| Trend strength | Implied by spread | Explicit ADX value (0-100) | Histogram height |
| Inspiration | Natural vortex motion | Directional movement | Price momentum |
| Complexity | Low | Medium | Medium |
| Best for | Trend identification | Trend strength filtering | Momentum divergences |
When to prefer VI: You want a simple two-line system with clear crossover signals.
When to prefer ADX: You need an explicit trend strength threshold (e.g., "only trade when ADX > 25").
When to prefer MACD: You look for momentum divergences or confirmation that a trend is ending.
When VI Works Well
- Trending markets — VI crossovers capture directional moves well
- High-volatility assets — Clear separation between VI+ and VI-
- Breakout identification — Crossover often occurs near breakout points
- Multi-asset screening — Normalized values allow comparison across assets
When VI Struggles
- Sideways/choppy markets — Frequent crossovers create whipsaws
- Low-volatility environments — VI+ and VI- cluster together, signals unclear
- Fast reversals — VI lags, so signals come late
- News-driven moves — Sudden gaps can cause erratic readings
Advantages
- Dual perspective — Tracks bullish and bearish pressure at the same time
- Clear signals — Crossovers are easy to read
- Works widely — Stocks, forex, crypto, commodities
- Grounded — Based on observable price ranges, not arbitrary smoothing
Limitations
- Lagging indicator — Signals confirm trends rather than predict them
- Whipsaw prone — False crossovers in consolidating markets
- No price targets — Indicates direction but not magnitude
- Window sensitive — Different windows give different results, so the window needs tuning
Further Reading
- Vortex Indicator - Wikipedia — Technical overview and history
- Vortex Indicator - Investopedia — Practical guide
- Original Paper (PDF) — Botes & Siepman's 2010 publication
- J. Welles Wilder - Directional Movement — The DMI concept that inspired VI's True Range usage
Indicator Assessment
%%{init: {'theme': 'base', 'themeVariables': { 'cScale0': '#2563eb', 'cScale1': '#7c3aed'}}}%%
quadrantChart
title Vortex Indicator Assessment
x-axis Low Complexity --> High Complexity
y-axis Low Reliability --> High Reliability
quadrant-1 Complex & Reliable
quadrant-2 Simple & Reliable
quadrant-3 Simple & Unreliable
quadrant-4 Complex & Unreliable
Stocks: [0.45, 0.70]
Crypto: [0.45, 0.65]
| Dimension | Stocks | Crypto | Notes |
|---|---|---|---|
| Popularity | 5/10 | 6/10 | Moderately known; less popular than ADX/DMI but gaining awareness |
| Reliability | 7/10 | 6/10 | Strong in trending markets; prone to whipsaws during consolidation |
| Complexity | 4/10 | 4/10 | Simple calculation; crossovers are easy to read |
| Versatility | 7/10 | 7/10 | Works across periods and asset classes; values are comparable across assets |
| Recent Interest | 6/10 | 7/10 | Growing interest in crypto trading communities; sector rotation applications emerging |