I want to close a position entirely. It does not matter what its lot size, slippage or whether it is long or short. What parameters should I put in? Would 0 work?
I was hoping the default settings of 0 could just ignore the parameter and close off completely.
Lot sizes are determined in relation to account size (which obviously changes) so I guess I will have to record the lot size at the time the order opened, and then write a separate OrderClose for longs and shorts.
Erm . . . as I said,
Select the Order then you can use OrderLots(), OrderClosePrice() and OrderTicket()