is there a penalty for withdrawing from stocks?
Withdrawals are subject to ordinary income taxes, which can be higher than preferential tax rates on long-term capital gains from sale of assets in taxable accounts, and, if taken prior to age 59½, may be subject to a 10% federal tax penalty (barring certain exceptions).