If we are short then we should at minimum be able to place buy orders for *2x* the amount we are short. Say I'm short 20 BTC: I would then like to be able to cover my short and turn long, i.e buy 40 BTC. This is specially useful in volatile times.
+1
2x sounds like a reasonable compromise.
'+1. The engine should never deny placing and executing an order that would decrease the absolute size of the overall position. I've had my (admittedly lousy) bots fail to get out because im trying to turn a -10.8 position into a +0.2, having to make sure to first execute to something like -0.0001 and then adding longs if I wish. Combine this with the fact that the API call to place multiple orders will not process the rest of the orders when that happens it makes for increasingly complicated order placing logic.
It would be very nice if this area could be improved on, meanwhile I'll get back to actually putting some error processing into my scripts