Trend Following Strategy Based on Moving Average
Overview
This is a simple trend following strategy based on moving average. It judges the current trend direction and duration by comparing the size relationship between moving averages of different cycles. It goes long when the short cycle moving average crosses above the long cycle one, and goes short when the opposite happens. At the same time, stop loss and take profit points are set to control risks.
Strategy Logic
The strategy uses 4 moving averages with different cycles: 5-day, 10-day, 15-day and 25-day lines. They are called MA1, MA2, MA3 and MA4. Among them, MA1 is the shortest and MA4 is the longest.
When MA1>MA2>MA3>MA4, it indicates an upward trend and goes long. When MA1<MA2<MA3<MA4, it indicates a downward trend and goes short.
The open position conditions for both long and short need to satisfy the ATR stop loss filter at the same time, that is, the ATR value should be greater than the 40-day SMA of ATR. This avoids generating wrong signals when the price fluctuation is too small.
Advantage Analysis
The strategy has the following advantages:
- The logic is simple and easy to implement.
- Using multiple moving averages to determine the trend direction is reliable.
- Setting stop loss and take profit points can effectively control the maximum loss per trade.
- The ATR stop loss filter avoids wrong signals when the price fluctuation is small.
Risk Analysis
The strategy also has the following risks:
- It is easy to generate wrong signals in a largely shock market.
- Improper parameter settings (cycle of moving average, etc) may lead to poor strategy performance.
- It does not consider the impact of fundamentals and significant news on prices.
To reduce these risks, parameters can be optimized appropriately, or additional filter conditions can be added to improve strategy stability.
Optimization Directions
The optimization directions of the strategy include:
- Test different combinations of moving average cycle parameters to find the optimal parameters.
- Add other technical indicators filters such as MACD and KDJ to judge the reliability of signals.
- Add trading volume filter, only trade when trading volume expands.
- Fine-tune parameters based on differences between varieties.
- Add machine learning algorithms to judge signals.
Conclusion
In general, this is a relatively simple trend following strategy. It judges the trend direction through moving averages and sets reasonable stop loss and take profit to control risk levels. There is still much room for optimization, such as adjusting parameters, adding filters etc. to further improve the stability and profitability of the strategy.
- 1

