I you create a margin order for 5000, when you try to close it, it does not close and the message "You can't create an order for more than 5000 units" gets displayed. This is very big issue since people could lose a lot of money because of this bug and get stuck in a position.