Strategy Based on Exponential Moving Average and MACD Indicator
Overview
This strategy combines the breakout signals from exponential moving average and MACD indicator, with both long and short holding periods, to realize profits through trend following and mean reversion trading.
Strategy Principle
The strategy is mainly based on:
-
Calculate 200-day EMA to determine the major trend direction. Closing price above 200-EMA indicates upward trend, while below indicates downward trend.
-
Calculate EMA based on the median price of highest, lowest and closing prices, then get the difference between the EMA and highest/lowest prices to construct the MACD histogram.
-
Calculate the 9-day MA of MACD histogram to construct the MACD signal line.
-
A buy signal is generated when MACD crosses above signal line, while a sell signal when MACD crosses below signal line.
-
Combine the analysis of major trends to determine whether the market is at the start of a new trend or just a short-term reversal.
Advantages
The strategy combines both trend following and mean reversion trading, which can both track long-term trends and capture short-term reversal opportunities to cope with different market conditions.
The main advantages include:
-
200-day EMA determines the major trend direction, avoids trading against trends.
-
MACD indicator is sensitive to short-term price changes and can capture profitable reversal signals.
-
Different parameters for MACD components can generate trading signals across time frames.
-
Integrates stop loss strategies to effectively control single trade loss.
Risks
The main risks include:
-
Time lag may exist between trading signals from long-term and short-term indicators. Judgements on major trend are important.
-
MACD as mean reversion indicator may underperform during strong trends.
-
Improper stop loss placement may result in premature stop loss trigger or oversized loss.
-
Too frequent breakout signals may introduce more false signals.
Solutions:
-
Optimize MACD parameters to adjust indicator sensitivity.
-
Combine other indicators to determine market conditions, avoid blindly following MACD signals.
-
Test and optimize stop loss strategy parameters.
-
Add filters to reduce false signals.
Optimization Directions
The strategy can be optimized through:
-
Optimize parameters for moving average and MACD to obtain more effective trading signals.
-
Add other indicators like volume, RSI to enhance strategy efficacy.
-
Set up position sizing rules rather than fixed quantity for every trade.
-
Add more advanced exit rules on top of stop loss, e.g. profit target, trailing stop.
-
Backtest with more realistic fee settings to simulate real trading.
-
Perform walk forward analysis, robustness test to improve reliability.
Conclusion
The strategy balances trend following and mean reversion trading. The essence lies in appropriate parameter tuning and correct understanding of major trends. By optimizing parameters, adding filters the strategy can make better trading signal judgement and achieve more steady profits. Overall speaking, this strategy has high integration degree and promising application prospects.
- 1

