Open Trades Faster

 

Hello everyone!

Please is there a more efficient way to open 100 orders at once? I use this for loop but it takes 20seconds to open a trade.

What do you think? 

  for(int i = 0; i < 100; i++)
        {
         trade.Sell(0.01, NULL);
        }
 
You can try to use OrderSendAsync().
Documentation on MQL5: Trade Functions / OrderSendAsync
Documentation on MQL5: Trade Functions / OrderSendAsync
  • www.mql5.com
OrderSendAsync - Trade Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Carl Schreiber #: You ca try to use OrderSendAsync().

thanks! You saved the day