Unlock stock picks and a broker-level newsfeed that powers Wall Street.
For one of Asia's top stock markets, valuations a bigger worry than bombings
For one of Asia's top stock markets, valuations a bigger worry than bombings · CNBC

One of Asia's best-performing stock markets doesn't care about bomb blasts and an infringement of democratic rights.

In a year that has seen stocks around the world waver amid volatility, Thailand's SET index (The Stock Exchange of Thailand: .SETI) has rallied 19.32 percent so far this year, trailing only behind the Karachi 100 index in Pakistan.

The gains compare with a 9.78 percent year-to-date rally in the MSCI International All country Asia Pacific ex Japan index.

To some outside observers, the lofty heights of the stock market may appear to be in contrast with the situation on the ground.

Thailand 's last democratically-elected government was ousted two years ago and a series of recent attacks in popular tourist spots revived concerns over the presence of extremist elements in the country.

Exactly a year ago, a bombing at a popular tourist destination in capital Bangkok left 22 dead and 123 injured .

So why are investors flocking to buy Thai stocks?

Analysts say a confluence of domestic and external factors has underpinned demand.

For one, the economy has held up well. The growth rate in the three months through June was the fastest in 13 quarters . The sharp decline in oil prices has also bolstered the current account surplus and supported the baht.

"I think [the] Thai market is considered one of [the] safe havens by foreign investors," Kasem Prunatanamala, head of equity research in Thailand at CIMB, told CNBC by email. "Our economy is less exposed to the external environment and political situation is relatively stable."

Earlier this year, the Thai government approved constructions of several new rail lines in traffic-clogged Bangkok, reported Reuters.

Prunatanamala said these initiatives could spur private investments from property developers who are "likely to develop residential, commercial and office buildings along the mass rapid transit systems," boosting demand for building materials and creating jobs. This would, in turn, create a positive feedback loop for the economy.

On the currency front, Prunatanamala said the Thai baht has also been stable due to the "huge current account surplus of $25 billion in first half 2016 [which] is equivalent to about 4.5 percent of GDP."

The political uncertainty that has bedeviled Thailand for most of the last two decades has also abated somewhat, with the military junta winning support for constitutional amendments that it says will curb corruption.

Analysts said that the outcome to the referendum earlier this month pointed to political stability in Thailand , which would allow the government to pursue policies in Thailand's economic interest, including the continuation of its infrastructure investments.