I did not understand the question about the single trades, but for optimizing bar periods use a 1 minute bar period and optimize TimeFrame instead.