How to fix the “M5 is needed” error?
This error means that you placed the EA that is optimized to trade on the M5 timeframe on the chart with another timeframe - for example, H1. So, the bars of your chart contains hourly data each, while the EA needs the chart with bars that contain 5-minute data. Just switch the chart timeframe, set the EA on it, and it should work.