In the trade window in the terminal, go to the order you want to modify or delete. You can either double-click or right-click and then choose "Modify or Delete".
In the next window, you can delete the pending order or modify the parameters you set before.
