Screening Chinese Stocks by Amplitude, Market Capitalization, and MACD
Summary
This stock-selection example combines three filters: daily price amplitude above 1, circulating market capitalization above 10 billion yuan, and an upward MACD-related signal. The accompanying code loops through listed stocks, obtains real-time quotes and daily valuation data, builds exponential moving averages to calculate DIF and DEA, and retains symbols whose latest DIF is above DEA after being below it in the previous session. It then randomly samples the requested number of qualifying stocks.
The prose describes the third condition as DEA rising, while the formula and Python example actually test a DIF/DEA crossover. That distinction matters when reproducing the screen. The article warns that the rules omit company financials and broader market or policy conditions, and that indicator sensitivity and lookback choices can create excessive or missed signals. It suggests adding fundamental measures and refining technical filters, but supplies no backtest, performance evidence, or detailed risk controls. The sample also assumes data-provider access and may fail if the qualifying set is smaller than the requested sample.
Key ideas
- The screen filters for daily amplitude above 1 and circulating market capitalization above 10 billion yuan.
- Its code calculates DIF and DEA from 12- and 26-period exponential averages and a 9-period smoothing average.
- The implemented signal is a DIF-over-DEA crossover, despite the prose describing DEA rising.
- The example randomly selects from the qualifying stocks and provides no performance results.
- The article identifies missing fundamental and market-context analysis as limitations.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.