I have built an indicator which sums up the values of the ADX ad Aroon indicator and writes it into an array called "sum". Now i want to colorize the bars in the chart depending on the indicator value. Is the indicator value above a certain limit (double ext trendlimit) the bars in the chart should a certain colour, if the value is above "minus trendlimit" the bars should have another color. I tried to implement it into my code from the attached indicator "rsi bar chart" but idk why it doesnt work with my code. I guess it has something to do with the array but can someone explain me the mistake ?
Thanks in advance