Early Zorro versions could indeed optimize the bar period. This was later removed because it had unwanted side effects. The bar period is fundamental to a trading system, so changing the bar period produces a very different system.

But you can optimize anything derived from the bar period, like time frames or time periods.