The intent is to provide a visualization of at multiple scales, without having to untangle those that my overlap each other.
It doesn't overlay a price-chart as written; it could, but IMHO that would be redundant. It's intended to augment oscillators and other kinds of indicators that don't necessarily scale with a price chart.
The script does not attempt to provide buy or sell triggers, but rather, to provide a visualization tool and a line-drawing tech-demo.
- Calculate deltas forwards, not backwards
Default to absolute values, overlay=true
Reverted to tip-first drawing order, which is simpler and actually draws the oldest visible lines.