priceClose() is different in tick() vs. in run().

In your context, you can use M1 data and use TICKS mode, which will be close enough for your purposes. Using actual tick data would work too, but it would be overkill for a daily bar system.