OrderLots() after partially closing a trade?

 

Ok, let's say I have a ticket 1000011 which is long 2 contracts. I use OrderClose() to close 1 of those contracts leaving a position open of just one.

Two questions -

1) Will the new position have the same ticket number?

2) Will calling OrderLots() on the original ticket show 2 or 1 lots in the scenario above?

Also, I notice that the MetaEditor has a F9 option to add a breakpoint. I take it we can't use these for debugging/stepping through EAs?

 
  1. no
  2. invalid question, you must reselect the order.
 
Many thanks. So it sounds like a new order is created. If I did call OrderSelect() on the original ticket then OrderLots(), will it show 2 or 1?
Reason: