Deductions & credits

A little late to this thread, but is there an IRS reference to this?  Seems unfair to me as I have a substantial amount of tax credits from prior years but sold the stock so I no longer have foreign income.  Can I file amended returns for prior years to recapture the credit?