You also have the option to use a fixed bar period (5) and optimize to an array of fixed time frames instead (4,5,6,8...)