Filing as J-1 doesn't save you from capital gain tax. You have to pay capital gains (stock, real estate) even if you're filing as Non Resident. 1040NR has the same Schedule D for Capital Gain/Loss.