This may come across as shocking to many, but the Internal Revenue Code states that certain nonresidents are subject to the capital gains tax on the sale of securities on a worldwide basis!