How to cancel pending orders by EA MT5

Hi guys!

One of my EAs has opened about 1000 pending orders…

Is there an EA on MT5 to cancel all pending orders at once by any chance…?

Thanks a lot…

Hi, if you have problem with open too many orders, you need to “repair” this EA. Using other EA to cancel other orders will not work in a longer period of time. Regards

A simple search in codebase may be useful.

Here are 2 that I found very quickly

There are free scripts for this and anything else you can think of in “Scripts”

But actually you also need to find out how this happened. Were you running a cheap malfunctioning grid EA for example? … Have you check all the settings for you grid and look for a Max Orders setting?