Foreign portfolio inflows into stocks in the world's second largest economy have slowed dramatically. Stocks exposed to overseas markets and a weaker yuan have seen sustained selling while companies in the consumer and technology sectors have seen share prices rise as Beijing boosts domestic consumption and seeks technological independence.

For a graphic on Foreign inflows decreased significantly amid trade tensions, click https://fingfx.thomsonreuters.com/gfx/buzzifr/14/5101/5101/Foreign%20inflows%20decreased%20significantly%20amid%20trade%20tensions.png

Inflows in January-August via the Stock Connect scheme with Hong Kong were about 120 billion yuan (13.78 billion pounds). That topped the year-earlier number, but was a fraction of the 600 billion yuan of 2019 inflows the China Securities Regulatory Commission (CSRC) expressed hope for at beginning of the year.

Global index provider MSCI is quadrupling the weighting of Chinese mainland shares in its global benchmarks this year, while FTSE Russell began adding China A-shares to its main emerging markets index in June.

But industrial profits have slowed since 2018's second half as economic growth slipped to a near 30-year low.

For a graphic on China's industrial profits under pressure as economy cools, click https://fingfx.thomsonreuters.com/gfx/buzzifr/14/5397/5397/China's%20industrial%20profits%20under%20pressure%20as%20economy%20cools.png

Shares in machinery, electronics and home appliances firms, seen as vulnerable to trade tensions given their reliance on overseas markets, have been under selling pressure.

BOE Technology is an example. The OLED display panel maker, which saw first-half profits plunge 44%, said it faced extremely severe challenges due to trade frictions and an industry downturn.

As the trade war pushed the yuan to an 11-year low, it hurt companies sensitive to currency moves, including real estate firms and airlines. The CSI300 real estate index <.CSI000952> dropped 7.1% in August as a weakening yuan made the property market less desirable for foreign investors.

For a graphic on China's yuan weakens past 7 per dollar, click https://fingfx.thomsonreuters.com/gfx/buzzifr/14/5107/5107/China's%20yuan%20weakens%20past%207%20per%20dollar.png

Major airlines posted losses in the first half, as a softer yuan ate into their profits, given their large amounts of dollar-denominated debt.

For a graphic on Airlines, developers and machinery firms underperform amid trade tensions, click https://fingfx.thomsonreuters.com/gfx/buzzifr/14/5116/5116/Airlines,%20developers%20and%20machinery%20firms%20underperform%20amid%20trade%20tensions.png

Consumer firms were among China's better performing sectors as Beijing rolled out measures to stimulate China’s domestic consumption. Market bellwether Kweichow Moutai, a famous liquor maker, reported 27% profit growth.

To offset effects of the trade war, Chinese policymakers rolled out measures including tax cuts and lower reserve requirements for banks, which were pushed to lend to smaller companies.

For a graphic on China's consumer stocks outperform as Beijing spurs domestic demand, click https://fingfx.thomsonreuters.com/gfx/buzzifr/14/5104/5104/China's%20consumer%20stocks%20outperform%20as%20Beijing%20spurs%20domestic%20demand.png

Tech firms, in focus after the United States imposed restrictions on major Chinese tech giants including Huawei Technologies [HWT.UL], got a boost from China's continued push for technological independence, in particular the newly launched STAR Market board which is modelled after Nasdaq.

Leading tech firms, in particular those in the 5G industry chain, posted robust first half profit growth.

For a graphic on China's tech sector shines as Beijing pushes for tech self-sufficiency, click https://fingfx.thomsonreuters.com/gfx/buzzifr/14/5105/5105/China's%20tech%20sector%20shines%20as%20Beijing%20pushes%20for%20tech%20self-sufficiency.png

(This story corrects some some data in the chart on industrial profits)

(Reporting by Luoyan Liu and John Ruwitch; Editing by Vidya Ranganathan and Richard Borsuk)

By Luoyan Liu and John Ruwitch