A-share market width (python implementation)

This article is a few charts that are often used when investing in broad-based index. The capital market is very bloody, a place that eats people without spit out bones, so various inside stories, news, etc. are often misleading. If you only do the first Thinking at the first level, believing in financial news and research reports, is not suitable for the capital market in most cases.
In order to be disturbed by market information as little as possible, and to form its own investment system and philosophy (see GitHub doc directory), the author opened a library about investment on the GitHub GitHub address, because the python pandas library is mainly used, here is mainly to show As for the use of the library, as for the investment, welcome to leave a message and submit issues and questions on GitHub, and please correct the deficiencies.

** This article does not constitute any investment advice, and we are not responsible for profit or loss. **

The installed python library can be found in GitHub README.md

python3 industry_fundamental.py 

The picture below is generated.
Please add a picture description
This picture reflects the market width, that is, the stocks of CSI 300 and CSI 500 are classified according to industry. The first line is the overall situation. For example, the first line of 2022-08-05 indicates that 300 stocks) a total of 79 stock prices are higher than the 20-day moving average, and so on. For the electronic category (30 stocks in total), there are 26 stocks that are higher than the 20-day moving average, and the color is from dark green to dark red, in order from 0 From individual stocks to all stocks are above the 20-day moving average.
The green in the upper right corner corresponds to the current valuation and 5-year percentile of PE and PB. This is the basis for most fixed investment/temporary additional investment, and of course it is also a reference for position reduction and liquidation.

python3 TA_stock_pool.py

These are the technical analysis (moving average) charts of 300 and 500 respectively, matching the market width, and occasionally making a T.
Please add a picture description
Please add a picture description

Guess you like

Origin blog.csdn.net/shichaog/article/details/126213246