#line 0 colored_hist function calc(){ line[0] = fmod(noCandle(), 5) + 1; if (noCandle() == 0) {return;} if (line[0] > line[0][-1]) { setHistColor(RGB(0, 255, 0)); } else { setHistColor(RGB(255, 0, 0)); }}