title: How to open multiple OrderSend() in MQL4 Metatrader 4?
body: <p>I am trying to simultaneously open multiple trades in MQL4 with an ExpertAdvisor or Script. However when I drag the EA to a chart, it only opens one Order, not the the second (or third, fouth, etc)</p>
  
  <pre><code>extern double lots = 0.01;
  extern int takeprofit = 40;
  extern int stoploss = 40;
  
  void OnStart(){
  
  double profitlvl_buy;
  double losslvl_buy;
  
  profitlvl_buy = Ask+takeprofit*Point;
  losslvl_buy = Ask-stoploss*Point;
  
  int ticket1;
  int ticket2;
  
  ticket1 = OrderSend("EURUSD", OP_BUY, lots, MarketInfo("EURUSD", MODE_ASK), 10, losslvl_buy, profitlvl_buy, NULL);
  ticket2 = OrderSend("GBPUSD", OP_BUY, lots, MarketInfo("GBPUSD", MODE_ASK), 10, losslvl_buy, profitlvl_buy, NULL);
  
  }
  </code></pre>
  
  <p>What do I need to do to make it execute those multiple <code>OrderSend()</code> calls?</p>