No, that's still not the reason of your problem. tock() has nothing to do with asset() or bar close, so continue testing. Of course, since tock() is time triggered, it depends on ticks, bar periods, and time settings when and how often it is triggered in the backtest.