TREND, MOVING AVERAGES & STRUCTURE
Vertical horiz filter
A trend-versus-range filter.
spec id: vhflength (default 28)
What does Vertical horiz filter measure?
A trend-versus-range filter. Rising values mean a trend is developing; falling values mean the market is going nowhere in particular.
How is Vertical horiz filter calculated?
Take the distance from the highest close to the lowest close of the last 28 candles, and divide it by the total of every candle-to-candle move in that window. Straight-line progress scores high; zig-zagging scores low.
Written by reading the engine’s real computation, not a textbook — where the two differ, the page describes what actually runs.
How do I use Vertical horiz filter in a bot?
In the builder, add an indicator of type vhf (parameters: length, default 28). Its value becomes an operand you can compare in any entry or exit rule. The engine grades the whole rule honestly: real fills, no look-ahead, half the history held back.
Related indicators
- VIDYAAn exponential average with an automatic gearbox: it speeds up when momentum is strong and coasts when the market is quiet.
- VortexTwo lines that cross when a trend changes hands.
- Volume-weighted MAA moving average that lets heavy-volume candles speak louder.
- Weighted closeA single price for the candle that leans toward where it finished, since the close is usually the most meaningful point of the session.
Or browse all 158 indicators in the full library.