For Gomi's CDHA indicator I'm trying to color the background to better highlight the up and down of the indicator. I've uploaded a picture of the indicator for what I have been able to do.
The code as I have implemented it has two problems:
1. It only works in real time. It will not color historical bars when loaded.
2. There are gaps in the background color. ie - when the HA bars are trending red or blue, the background is intermittent.