Vertical Horizontal Filter
The Vertical Horizontal Filter (VHF) is a trend-versus-range gauge built on a simple geometric idea: in a trend, price movement is mostly vertical (net progress), while in a range it is mostly horizontal (back-and-forth travel with little progress). It is a Trend concept. The Library holds 1 implementation, ready to run on Vela.
VHF
Top Vertical Horizontal Filter indicator
The top custom implementation, built on the original standard Vertical Horizontal Filter formula.
1 total
From studying Vertical Horizontal Filter to trading it: open the implementation below on Vela, then build a strategy on it with Quant and backtest it.
What is the Vertical Horizontal Filter?
The Vertical Horizontal Filter (VHF) is a trend-versus-range gauge built on a simple geometric idea: in a trend, price movement is mostly vertical (net progress), while in a range it is mostly horizontal (back-and-forth travel with little progress). The VHF captures this as a ratio, dividing the distance between the highest and lowest close over a window by the total distance price actually traveled bar to bar. A market that walks in a straight line scores near 1; a market that churns scores near 0.
The indicator is attributed to Adam White, who presented it in the early 1990s as a way to decide which category of tool to trust: trend-following indicators when the VHF is high and rising, and oscillators when it is low or falling. That routing role, rather than signal generation, remains its main job.
The same efficiency intuition appears elsewhere in technical analysis, most directly in the Kaufman efficiency ratio, which uses net close-to-close change instead of the extreme-to-extreme range. Traders keep the VHF around because it is transparent, cheap to compute, and answers the single most consequential question in system design: is this market currently trending at all?
How it's calculated
Net range over the window is divided by the summed absolute bar-to-bar changes over the same window.
Some implementations use highest high and lowest low instead of closes in the numerator; the reading is slightly noisier but the interpretation is unchanged.
The VHF has no fixed trend threshold; it is usually read relative to its own recent history.
How traders use it
- As an indicator selector: a high or rising VHF argues for acting on moving average and breakout signals, while a low or falling VHF argues for fading extremes with oscillators. This routing decision is its designed purpose.
- As a filter inside a single system: trend entries are only taken when the VHF exceeds a level such as its own moving average or a percentile of recent readings, which tends to cut whipsaw trades at the cost of later entries.
- As a slope signal: because absolute levels vary by market, many practitioners watch the direction of the VHF rather than its value, treating a rising line as trend development regardless of where it starts.
- Its limitations are direction-blindness and lag: the VHF cannot distinguish an uptrend from a downtrend, and by the time a 28-bar ratio confirms trending conditions, a meaningful part of the move has often passed. Pairing it with a directional tool such as the ADX/DMI system or a moving average is standard practice.
VHF vs neighboring efficiency and strength measures
Kaufman efficiency ratio: The efficiency ratio uses the absolute net close-to-close change in its numerator, so a round trip that ends where it started scores near zero. The VHF uses the highest-minus-lowest close, so the same round trip can still score moderately high because the range was wide.
Choppiness Index: The Choppiness Index measures the same congestion idea but inverts and log-scales it, so high readings mean chop rather than trend. The VHF is the plain ratio: high means directional.
Random Walk Index: The RWI benchmarks displacement against a volatility-scaled random walk and produces separate up and down readings. The VHF makes no statistical claim and no directional distinction; it is the simpler, faster-to-read gauge.
Vertical Horizontal Filter FAQ
Turn Vertical Horizontal Filter into a trading strategy.
Open the implementation from this page in Vela. Quant, our coding agent, builds the strategy with you and backtests it on real data.
Browse this familyTrend104 concepts mapped · 104 in the Library
- Adaptive-lookback MA
- ADX / DMI System
- Alligator
- ALMA
- Anchored MA
- Andrews' Pitchfork
- Aroon
- ATR Trailing Regime
- Bessel Filter
- Breakout
- Butterworth Filter
- Chande Kroll Stop
- Chandelier Stop
- Chebyshev Filters
- Climactic Moves
- Continuation
- Coral Trend
- Correlation Trend Indicator
- Death Cross
- DEMA
- Displaced MA
- Donchian Trend Rules
- Dynamic S/R Via MA
- Ehlers Instantaneous Trendline
- Ehlers SuperSmoother
- Elastic Volume-weighted MA
- Elliptic Filter
- EMA
- Fan Principle
- FRAMA
- Gann Box
- Gann Fan & Angles
- Gann HiLo Activator
- Gann Method
- Gann Square of 9
- Gaussian Filter
- Geometric MA
- Golden Cross
- Guppy GMMA
- Halftrend
- Harmonic MA
- Higher-timeframe Trend Filter
- HMA
- Ichimoku Signals
- Ichimoku System
- Ichimoku Theories
- JMA
- KAMA
- Kaufman Efficiency Ratio
- Laguerre Filter
- Linear-regression Channel
- LSMA
- MA Envelope
- MA of MA
- MA Ribbon
- MA Slope Filter
- MAMA/FAMA
- McGinley Dynamic
- MLMA
- Moving Average Crossovers
- NRTR
- Order-statistic Filters
- Parabolic SAR
- Parallel Channel
- Polynomial Regression Band
- Pullback
- R-squared Trend Fit
- Rainbow MA Stack
- Random Walk Index
- Range Filter
- Retest
- Reversal
- RMA
- Savitzky-Golay Filter
- Sine-weighted MA
- SMA
- Speed Resistance Lines
- Standard-error Channel
- Supertrend
- Swiss Army Knife Filter
- SWMA
- T3
- TEMA
- TRAMA
- Trend Acceleration/inflection
- Trend Exhaustion
- Trend Intensity Index
- Trend Magic
- Trend Regime Label
- Trend-quality Composites
- Trendline
- Triangular MA
- UHL Adaptive MA
- Ultimate Smoother
- Vertical Horizontal Filter
- VIDYA
- Volume-adjusted MA
- Vortex
- VWMA
- Weinstein Stage Analysis
- Whittaker–Henderson Smoother
- Windowed FIR Smoothing
- WMA
- ZLEMA
