Abstract: This study examines the application of the moving average indicator in stock trading to identify the most probable timing for profitable buying and selling of stocks. The trading data of Guizhou Maotai stock from August 27, 2020, to October 28, 2022, was selected. The conclusion drawn is that using a 5-day moving average for the short-term trend and a 20-day moving average for the long-term trend yields favorable results. The achievable profit amounts to 15,146.70 RMB.
TL;DR
This paper evaluates the effectiveness of a dual-moving-average trading strategy—specifically the 5-day and 20-day windows—applied to historical data of the Guizhou Maotai stock. By backtesting this "crossover" method using Python, the authors demonstrate that a systematic, rule-based approach can generate a profit of over 15,000 RMB even in a volatile market.
What Problem Does This Paper Address?
The financial market is notoriously noisy, characterized by random fluctuations and dramatic price swings that make manual trading difficult and emotionally taxing. While technical analysis has existed for decades, its validity is frequently debated in academic circles.
The authors address the challenge of identifying "profitable timing"—the precise moments to buy or sell—by testing traditional technical indicators against a modern, high-profile asset. They aim to bridge the gap between theoretical moving average (MA) theory and practical application, providing a quantitative baseline for how these indicators perform on a specific, representative stock in the Chinese market.
Methods
The study employs a combination of visual pattern recognition and quantitative signal generation:
- Return Rate Analysis: The authors calculate both simple return rates and logarithmic return rates to normalize price changes and understand the statistical distribution of the stock's performance.
- Candlestick Pattern Recognition: Before applying MAs, the paper identifies key visual cues like Bullish/Bearish Engulfing, the Hanging Man, and Tombstone Doji to gauge market strength and potential reversals.
- Dual Moving Average Strategy: The core methodology uses two windows:
- Short-term (5-day MA): Captures immediate momentum.
- Long-term (20-day MA): Filters out daily noise to show the broader trend.
- Signal Logic: The strategy follows a classic "crossover" rule. A "Buy" signal is triggered when the 5-day MA crosses above the 20-day MA (indicating upward momentum). A "Sell" signal is triggered when the 5-day MA crosses below the 20-day MA.
- Implementation: The analysis was performed using Python, utilizing standard data science functions to process 525 distinct data points.
Datasets
The researchers focused on a single, highly liquid asset to ensure the results were representative of actual market behavior:
- Asset: Guizhou Maotai stock (a bellwether of the Chinese A-share market).
- Timeframe: August 27, 2020, to October 28, 2022.
- Data Source: NetEase Finance.
- Scope: 525 daily data points including opening, highest, lowest, and closing prices, along with trading volume.
Key Insights and Ideas
- The "Modified" MA View: One of the more interesting visual approaches in the paper is the "Modified moving average chart." Instead of just looking at two lines crossing, the authors plot the difference between the 5-day and 20-day averages. When this value "jumps" from negative to positive (or vice versa), it provides a clear, binary signal for decision-making.
- Volatility vs. Trend: The statistical summary of the log yields (mean of -0.000460 and a standard deviation of 0.020534) highlights that the stock was in a period of high variance and slight downward bias. The fact that the MA strategy remained profitable in this environment suggests its strength as a trend-following tool.
- Qualitative/Quantitative Synergy: The paper suggests that while the MA provides the "when," candlestick patterns provide the "why," helping investors identify if a price move is a genuine trend or potential market manipulation.
Key Results
- Profitability: The strategy achieved a total profit of 15,146.70 RMB over the study period.
- Signal Accuracy: By comparing the 5-day and 20-day averages, the authors were able to generate a series of buy/sell decisions that successfully navigated the stock's fluctuations from 2020 to 2022.
- Feasibility: The study concludes that the 5/20-day MA combination is a highly feasible strategy for short-to-medium-term trading in the Chinese stock market.
Limitations and Future Work
The authors are transparent about several "real-world" factors omitted from this study:
- Transaction Costs: The profit calculation does not account for brokerage fees, taxes, or slippage, which can eat into returns in high-frequency scenarios.
- Risk Management: The model lacks automated stop-loss or take-profit orders, meaning an investor would be fully exposed to "black swan" events between signals.
- Volume Neglect: The current strategy relies solely on price. The authors note that incorporating trading volume would likely yield much more accurate signals, as volume often precedes price movement.
- Asset Diversity: The study is limited to one stock. Future research could expand this to bond indices or broader market ETFs to see if the 5/20-day rule holds across different asset classes.
Summary updated