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

Or browse all 158 indicators in the full library.

Build a bot that trades on Vertical horiz filter — the first backtest is free.

Run a free backtest