You can hide closed trades, also known as "zero position rows", through the Portfolio Filter. In the top right corner, you will see a "funnel" icon that says Filter. Click on this icon and uncheck the box that says "Show zero position rows". This will hide any closed trades in your Portfolio.
Additional Information
- Portfolio window in the TWS Users' Guide.