How can I change the number of days shown in the Trades window of TWS?

Click on Classic TWS tab at the bottom-left of your TWS window.

Click on menu Account and select Trade Log.

In the upper-left part of the Trade Log window you can select Show trades for: a specific number of days, up to the last 7 days.

This setting will be reflected in the Trades window as well.

Powered by IBot
How do I close a position in TWS?
How can I monitor my account values and margin requirements in TWS?
How can I see more than one day in the Trades tab of the Mosaic Activity Panel?
How do I show the full menu and toolbar on the TWS?