EA Placing Duplicate Orders!

 
Can I ask for advice from you guys? Sometimes my EA has the issue of placing two consecutive duplicate orders. Initially, I thought it was an error in my code, but when I checked my trading logs, I found that the duplicated orders did not have any corresponding trade numbers, and were not recorded in the EA's trading log. What could be causing this situation?
 

If you are using MQL5 VPS and you have migrated your EA to it, you should have duplicate trades if you also have clicked the Auto/Algo Trading button in your local MT4/5 terminal.

When you use MQL5 VPS you shouldn't click the Auto/Algo Trading button again, after your migration, because you end up trading on the cloud and locally too.