Yes, the history of some ETFs goes back only a few years, so they can not be used for backtests. The lookback period for portfolio rebalancing is normally 6..12 months. If I remember right, Z8 uses 200 days.
The annual function was in the script:
var annual(var daily) { return pow(daily+1.,252)-1.; }