What happens to your money in a brokerage account if the broker goes bankrupt?

power_house911 asked: With all of the big financial leaders either going bankrupt or being bought out, what exactly happens to your money if your broker goes bankrupt, since the money is not FDIC insured? And also if you know your broker is headed that direction, do you sell all your assets and move your [...]