In the trade window in 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.

