Calculates average stock purchase price in a foreign currency. I built this to be able to do my 2010 taxes. WARNING: terribly crappy code ahead.