The market closed at 1,408.19 points, up 25.03 points or 1.81 per cent, on turnover of Bt36.75 billion.
The market lost 2.42 per cent yesterday, when foreign investors' net-sell reached Bt1.66 billion.
Asian stock markets were mixed today after political gridlock in Washington triggered the first US government shutdown in 17 years, while upbeat regional economic data provided some cheer.
Tokyo gained 0.20 per cent, or 28.92 points, to 14,484.72, Seoul added 0.10 per cent, or 1.91 points, to 1,998.87 but Sydney fell 0.23 per cent, or 12.1 points, to 5,206.8. Hong Kong and Shanghai were closed for a public holiday.
Shoring up the sentiment in Japan was Bank of Japan's quarterly Tankan business confidence survey, which was at the highest level in over five years.
The US government shut down at midnight Washington time as Republicans and Democrats refused to give ground to reach a budget deal. The US closure will see about 800,000 federal staff told to stay at home, leading to the closure of numerous agencies in the first shutdown since 1996 that President Barack Obama warned will hit a budding recovery in the world's biggest economy.