Charles Schwab Scott Eells | Bloomberg | Getty Images

Charles Schwab's decision to give investors zero-commission online trades turned his industry upside down but looks like it could work out well for the firm that bears his name. The move was a shrewd manuever. Schwab's action pressured his rivals to quickly match no-fee commissions, their stocks fell, and now a source tells CNBC that Charles Schwab is close to announcing a deal to buy key rival TD Ameritrade. The combined firm would have $5 trillion in assets, and the Financial Times says the deal could value Ameritrade at $25 billion. "The pricing cut to zero is absolutely the catalyst here for consolidation. If you're Schwab, and you're thinking about consolidation, you wouldn't pay for revenues that you knew were going to decline, if you were going to lead that decline," said Devin Ryan, financial analyst at JMP Securities.

Ryan said the combined Schwab and Ameritrade would have strong synergies. They both have a similar client base, but Schwab clients also are larger, but trade less frequently and are more "advice-centric." Ameritrade has a strong active trader business and a superior options business. The combined firm would also have about a third of the assets in the growing custodial business for registered investment advisors. "For RIA financial advisers that are fee based, fiduciary advisers, Schwab and Ameritrade provide the custodial platfroms for those advisers. They hold the assets. They custody the accounts. ... It's where the puck is going," said Ryan. He said Schwab is No. 1 in the business with about 25% of the assets, followed by Fidelity, Ameritrade and Pershing.

Free trading fallout

Schwab founded low-cost broker Charles Schwab in 1971, and as the father of low-cost brokers, he said he led the charge to end commissions as a final solution for removing costs for investors. When his firm first announced on Oct. 1 that commissions would go from $4.95 for online trading of stocks and ETFs to zero, the company said it was taking the action in conjunction with the release of Schwab's book, "Invested." The low-cost brokerage industry, which was basically founded by Schwab, morphed as electronic trading came into vogue and it continued to eat away at the high cost structures of the bigger, more traditional Wall Street rivals. It also faced new competition as more players came into the field including upstart Robinhood, which has its own no-fee trading. The stocks of Schwab and its rivals were hit hard after Schwab and the others chopped commissions. In the days that followed, Schwab stock was down as much as 17.3% but recovered by Nov. 4 and has since risen by 38%. Its rivals Ameritrade and E-Trade were hit harder. Ameritrade fell as much as 30% to $32.69 and only recovered those losses Thursday, as news of the possible takeover surfaced. Ameritrade was up 19% at $48.86. E-Trade fell about 20% and its stock, which has been surrounded by takeover speculation, recovered its losses by Nov. 15. On Thursday, it lost 8.4% on disappointment that it was not the company being acquired. "There was a lot of smoke over the industry even before the Schwab thing. You could tell in the summer these companies were acting very weird," said Don Bilson, head of events driven research at Gordon Haskett. "Interest rates were falling and these are interest rate sensitive companies."

'Wounded ducks'

Bilson said it was unusual that just after Ameritrade CEO Tim Hockey said in July that he would be leaving, E-Trade replaced its CEO. Then not long after, Schwab unveiled its no-fee structure. Schwab took aim at the industry and is about to carry off one of the "wounded ducks," he said. "You basically pulled the rug out from under your competitors and then swooped in to pick up your healthiest competitor. It's bigger than ETrade. They were looking for a CEO so this solves the issue. There was a succession issue at Ameritrade," Bilson said. Schwab CEO Walter Bettinger has been designated to run the combined company, sources said.