A model is proposed to study optimal trading strategies in a limit order book, as typically arise when a trader has a block of shares to liquidate and she submits limit orders. The execution of limit orders is uncertain, which leads to a stochastic control problem. In contrast to previous literature, we allow the trader to choose both the quotes and the sizes of her submitted orders. Great atte...