I'm on (ancient) mobile at the moment, so I can't reference the link you posted above... but I would just like to comment that I think the biggest danger in optimizing BarPeriod could be overfitting.

It wasn't until Zorro came along that I even had the ability to do something like that, so it was an interesting thing to try.

My thought is that it could be helpful to "zone in" on a good frequency of bars, assuming you have a rudimentary logic and want to see which bar frequencies that it may be relevant in.

So far in my testing the optimizer tends to pick standard frequencies anyway (ie 15min, not 14min for example). Presumably this is because of the bigger tides.

Neat feature tho - I'm glad we have it at our disposal.