There are several options when optimizing. There is one that is only opening prices and another that is every tick. I have been optimizing and backtesting both and the results are similar. The difference is that the only opening prices option is much faster than every tick.