I have created this HMA indicator with 3 time frames conditions 1440-240-15 minutes but don´t paint correctly the histogram, just paint last bar. (1Minute) I need to press f5 for it to update all lastCandle(15min) (I work in chart 1Minute).
Problem is here: int limit = rates_total - prev_calculated, because when I change Value to "Bars-1" works good, but consume too much CPU ;(