title: OrderClose not working in MQL4 without proper error feedback
body: <p>So I have this EA that should close 2 trades together under certain conditions. Sometimes it closes only 1/2, sometimes it closes both smoothly. I cannot really pinpoint the times it closes only one and detect a pattern so I can spot the logical error.</p>
  <p>P.S.: Obviously the trades are from different pairs running from an EA within 1 chart/pair.</p>
  <p>The error message is this:
  invalid ticket for OrderClose function</p>
  <p>But the trade clearly exists, and i make sure I have it within the int as every time I restart the EA, if trade is already open (detected by comment) it has a message like that:
  &quot;Buy trade: [ticket number], recognised.&quot;
  So I know for fact that it is recognised and within the proper int to be used. Any ideas about the error's source?</p>
  <pre><code>OrderClose(TicketA,LotSize,iClose(NULL,0,0),Slippage,clrGray);
  OrderClose(TicketB,LotSize,iClose(SymbolB,0,0),Slippage,clrGray);
  </code></pre>
  <p>Will this fix this? I mean... it will be errored out 2/4 close orders... but I don't really care about how beautiful it looks.</p>
  <pre><code>OrderClose(TicketA,LotSize,Ask,Slippage,clrGray);
  OrderClose(TicketB,LotSize,Bid,Slippage,clrGray);
  OrderClose(TicketA,LotSize,Ask,Slippage,clrGray);
  OrderClose(TicketB,LotSize,Ask,Slippage,clrGray);
  </code></pre>