Its no good idea to skip bars, because you get gaps in all plotted curves and your indicators are wrong. No surprise that your graph looks bad. Historical data has anyway only bars where prices change, better don't miss them in the backtest.

For realistic backtests with M1 bars you normally need tick data, M1 data is not precise enough.