All timeframes used in the strategy must be multiple of (and equal or greater than) the default timeframe, the one on the chart from where the strategy is run.
So, in your case, since you are using the 5-minute TF, you can launch your strategy from a chart whose TF is less than or equal to 5 minutes.
So you can launch it from a 1-second, 15-second, 1-minute TF, but NOT from a 40-second nor 2-minute, nor 3-minute TF, nor from any TF greater than 5-minutes.
The TF on your chart must the lowest or equal to the lowest TF used in the strategy. It’s the TF that sets the pace at which the strategy is executed.