Using the function "PrintFullOrder(orderID)" to display Full Orders returns "Buy to Cover" (in the action field) when closing out a short position using Trade.closeAndCancelAll() as it should, however when closing out a long position, it only returns "Sell" in the "action" field, rather than "Sell to Cover", although it does close the position and cancels any stop orders. I suspect that the field is simply not being populated appropriately as the functionality is there.
Returning "Sell to Cover" would be great.
Cheers
Returning "Sell to Cover" would be great.
Cheers
Comment