Indicators: Unified Hull MA (4 Lines, Color-Coded, Ring Buffer)

 

Unified Hull MA (4 Lines, Color-Coded, Ring Buffer):

Hull Moving Average indicator displaying four periods on a single chart, colour-coded by direction (green for rising, red for falling, grey for flat). Implemented with a ring buffer and incremental running-sum math, so memory and CPU use remain constant regardless of chart history length. Buffer layout is documented and stable, making the indicator suitable for use with iCustom() from EAs. Supports 2, 3, or 4 Hull lines depending on configuration.

Unified Hull MA (4 Lines, Color-Coded, Ring Buffer)

Author: Chukwudi John Weekes