The first number line (e.g. price or a fast moving average).
bBuffer (time series)
The second number line to measure against the first (e.g. a slow moving average or a level).
Outputs
Buffer (time series)
A non-negative line: the absolute gap between the two inputs each bar. It shrinks to zero where the lines meet and grows as they pull apart.
Absolute Distance reports the size of the gap between two number lines on each bar, ignoring which one is higher. It is simply the absolute value of a minus b, so the result is never negative.
How it works
On every bar it subtracts input `b` from input `a` and drops the sign, giving |a − b|. There are no settings — the node just outputs how far apart the two series are, which you can then threshold or feed into other logic.
Connects to
Reads from
Feeds into
Examples
Spread gate: take the distance between price and a moving average and fire only when it exceeds a threshold, signalling price has stretched far from the mean.
Convergence check: feed the distance between a fast and slow EMA into a threshold to detect when the two lines are about to meet.
Common mistakes
Expecting direction from the output — because the sign is dropped, distance tells you how far apart, never which line is on top; pair it with another node if direction matters.
Comparing the raw distance across symbols of different price scale; a 0.5 gap on one instrument is not the same as 0.5 on another.