Combining MACD and Moving Averages to Screen Stocks
Summary
This Chinese-language post describes a stock screen that requires MACD to be above its zero line, DEA to be rising, and the 20-day moving average to exceed the 120-day average. It presents the conditions as a way to identify stocks with positive momentum and a longer-term upward trend. A sample implementation applies the screen to constituents of the CSI 300 and includes portfolio handling such as limiting holdings and selling positions after a specified loss from cost.
The post warns that moving averages lag, technical conditions can turn around, and the screen omits company fundamentals. It suggests combining technical signals with fundamental, industry, and market context, and adjusting average lengths. These are general cautions rather than demonstrated improvements: no performance results, benchmark comparison, or validation method is provided. There is also a mismatch in the material: the prose names MACD above zero and rising DEA, while the cited formula and code appear to check MACD relative to DEA in a way that may not fully encode those stated conditions. Readers would need to verify the indicator definitions and implementation before using the screen.
Key ideas
- The screen combines MACD conditions with a short-term average above a longer-term average.
- The sample universe is the CSI 300, and the example code includes position and loss handling.
- Moving-average lag and changing market conditions can undermine signal timing.
- The post recommends considering fundamentals and broader market context alongside technical signals.
- No backtest evidence is supplied, and the written rules should be reconciled with the sample implementation.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.