BarPeriod should be equal to your smallest bar size, never larger. You use TimeFrame to frame your bars into frames.

For example, if you want 5m, 15m, and 60m TimeFrames, you need 5m bars.