I would not optimize the time frame. Better optimize time frame dependent parameters directly, such as the time period of indicators.