run() is invoked once every bar, regardless of the TICKS flag.