For the US stock markets, I obtained the historical data from http://www.pitrading.com/.