Moving Average Crossover MACD Trading Strategy
Overview
The moving average crossover MACD trading strategy is a quantitative trading strategy that tracks the crossover situations of short-term and long-term exponential moving averages (EMA) and makes buy and sell operations when golden cross and dead cross occur. This strategy combines the MACD indicator for trading signal judgment.
Strategy Logic
This strategy mainly relies on 12-day EMA, 26-day EMA and MACD indicator. The specific logic is:
- Calculate the 12-day EMA and 26-day EMA.
- Calculate the MACD (that is, the 12-day EMA minus the 26-day EMA).
- Calculate the 9-day EMA of MACD as the signal line.
- When the MACD goes above the signal line, a buy signal is generated.
- When the MACD falls below the signal line, a sell signal is generated.
- Make the corresponding buy or sell operation at the close of the second candlestick after the signal is generated.
Additionally, this strategy also sets some filtering conditions:
- The trading time is the non-closing time of each trading day.
- The absolute value of the difference between the MACD and signal line needs to be greater than 0.08.
- Only one direction of position is allowed at a time.
Advantage Analysis
This strategy combines moving average crossover and MACD indicator, which can effectively capture the inflection points of market short-term and medium-term trends. The main advantages are:
- The strategy rules are simple and clear, easy to understand and implement.
- The indicator parameters are optimized for relatively stable performance.
- It takes into account tracking medium and short term trends and timely stop loss exit.
- The trading logic is rigorous to avoid invalid trading.
Risk Analysis
This strategy also has some risks:
- Backtesting data overfitting risk. Actual application may require parameter and threshold adjustment.
- High slippage cost risk from frequent trading.
- Loss risk from failure to exit timely when trend reverses.
- Leverage risk amplification inherent in quantitative trading itself.
Corresponding mitigation methods:
- Dynamically optimize parameters and adjust thresholds.
- Appropriately relax trading rules to reduce unnecessary trading.
- Combine more indicators to judge reversal signals.
- Strictly control positions and leverage.
Optimization Directions
The main aspects for optimizing this strategy include:
- Test longer cycle moving average combinations to find optimal parameters.
- Add fundamentals like financial performance, significant events etc. as filters.
- Incorporate more indicators to determine trend reversal timing, like Bollinger Bands, KDJ etc.
- Develop stop loss mechanisms. Actively cut losses when losses reach pre-set stop loss points.
- Add drawdown ratio to control maximum drawdown.
Summary
The moving average crossover MACD trading strategy generates trading signals through simple trend tracking and effectively controls risks with appropriate filtering conditions. It is an effective quantitative trading strategy. The strategy can be improved in ways like parameter optimization, adding stop loss mechanisms, incorporating more auxiliary indicators etc.
- 1

