This error occurs when the EA, which is optimized for the M5 timeframe, is placed on a chart with a different timeframe, such as H1. In this case, the chart bars display hourly data, while the EA requires bars with 5-minute data to function correctly.
To resolve this, simply switch the chart to the M5 timeframe, reapply the EA, and it should start working as expected.