In my experience bots do the same on backtest as they do live, the only way this changes is when your broker is committing the action diffract to backtest. So to fix this you will need to investigate where the discrepancy lies.