Can I Run an EA Multiple Times per Second with MQ4?

 
I use a custom expert adviser to close trades that are already open.  The problem is that it only seems to close one trade each second.  Is the expert adviser only being run once per second? Is there any way to make it run 10 times a second?   
 
hknight:
I use a custom expert adviser to close trades that are already open.  The problem is that it only seems to close one trade each second.  Is the expert adviser only being run once per second? Is there any way to make it run 10 times a second?   
Trades take some time to close,  it is not an instant thing.  You may be able to modify your script to run faster/more efficiently,  do you have the source code for it ?  mq4 file ?  or just an ex4 file ? 
 

https://www.mql5.com/en/forum/127997

https://www.mql5.com/en/forum/140505 

There is only 1 trading_thread. You can only close orders as fast as the broker allows. There's no such thing as simultaneous closing of orders.

 
  1. Make sure you are counting DOWN so it can close all trades in a single tick. Loops and Closing or Deleting Orders - MQL4 forum and use refreshRates() between each server call.
  2. You can only close as fast as the time broker takes plus the communications round trip time. Can't change the first. The second, high bandwidth VPS and/or colocation with broker.
  3. If you know at what price you want to close. Move your stops there. No communication delay at all.
Note: https://www.mql5.com/en/forum/127997 You can't try the OrderCloseBy in the US as hedging is not allowed.
Reason: