Hi, I updated the code to be able to use Tim West's TW_UB indicator, which helps a lot with seeing price waves, coloring bars that form new highs green, new lows red and inside and outside bars red.
The indicator now only plots range expansion bars, with a triangle shape above or below each bar to make it visually clear.
Hope you find this of use.
Cheers,
Ivan.