Moving Average Crossover Strategy for Two-way Trading
Overview
This strategy calculates moving averages of different periods and issues trading signals when the shorter period moving average crosses over or crosses below the longer period moving average. It belongs to the typical moving average crossover system. The strategy supports both long and short positions to achieve two-way trading.
Principles
The strategy judges market trends and generates trading signals based on the crossover between moving averages of different periods. It uses three moving average lines of 8-period, 13-period and 21-period, where the 8-period line is the shorter period line and the 21-period line is the longer period line. A long signal is triggered when the 8-period line crosses over the 21-period line. A short signal is triggered when the 8-period line crosses below the 21-period line.
In actual trading execution, the strategy also includes a filtering condition to avoid being trapped in choppy markets. It only places orders when the closing price is higher (long signal) or lower (short signal) than the crossover point. This can effectively filter out some false signals.
Advantages
- Applies moving average crossover rules to effectively track market trends
- Adds trade filters to avoid some false signals and being trapped
- Supports two-way trading to profit in both bull and bear markets
- Captures turns between major levels using inter-period moving averages
- Simple and clear logic, easy to understand and optimize
Risks
- May fail or generate excessive false signals in highly volatile markets
- Unable to judge when prices move sideways, missing opportunities
- Inter-period crossover has a lag, may not timely capture short-term trend changes
- Does not consider price volatility, parameters need adjustments for different volatility levels
- No stop loss or take profit, risks unlimited losses
Solutions for Risks
- Combine other indicators to judge markets, avoid volatility impact
- Lower moving average periods for higher sensitivity
- Add stop loss and take profit to control risks and drawdowns
Optimization Directions
- Combine other indicators like MACD and KDJ to improve efficacy
- Test impacts of different parameter settings on overall strategy performance
- Set adaptive parameters based on market type and volatility levels
- Optimize moving average calculation methods using DEMA, ZLEMA etc.
- Add stop loss and take profit logic
- Optimize quant backtesting metrics to determine best parameters
Conclusion
The strategy has a clear logic of using simple moving average crossover to determine relationships between short-term and long-term trends and capture rotation opportunities. It supports two-way trading and is easy to understand and optimize. But some risks exist like ineffective handling of specific market conditions and lack of risk control. Subsequent technical indicator combos and parameter optimization can further improve strategy stability and profitability.
- 1

