Monthly Close Price and Moving Average Crossover Strategy
Overview
This strategy generates trading signals based on the crossover between the monthly close price and moving average lines. It goes long when the monthly close price crosses above the moving average, and flats when the monthly close price crosses below the moving average.
Strategy Logic
The core logic of this strategy is:
- Take the moving average period parameter as input. Choose between SMA and EMA.
- Option to display the moving average line.
- Option to use another ticker's close price as signal source.
- Determine trading signals based on relationship between monthly close price and moving average:
- Close price crossing above MA - Long
- Close price crossing below MA - Close long position
This strategy utilizes the smoothing capability of moving averages to filter out price noises and capture mid-term trend reversals. Crossing above the MA suggests an emerging bull trend while crossing below indicates the trend is turning bearish.
Advantages
The main advantages of this strategy are:
- Uses monthly data to effectively filter out intraday noises and capture mid-long term trends
- Customizable MA period for optimization across different tickers
- Option to use another ticker as signal source improves stability
- Implements advanced anti-repainting techniques
- Flexible backtesting time frame for ease of testing
In summary, this is a simple yet practical strategy framework that can be adapted to most stocks through parameter tuning, especially suitable for mid-long term investors.
Risks
There are also a few risks to note:
- Monthly data updates slowly, unable to reflect price changes in real-time
- Lags behind and could miss short-term opportunities
- MAs have inherent lags, signal timing unpredictable
- Suboptimal parameter selection leads to over-conservatism or missed opportunities
Suggested ways to mitigate risks:
- Incorporate faster timeframe technical indicators for auxiliary judgement
- Optimize MA period to find best parameters
- Use more stable benchmark as signal source
- Adjust position sizing to limit losses
Enhancement Opportunities
This strategy has great potential for enhancement:
- Incorporate stop loss to lock in profits and control risks
- Add complementing indicators like KD, MACD to improve signal accuracy
- Employ machine learning techniques to dynamically optimize MA parameters
- Introduce position sizing that aligns with trends
- Build in long/short switching capabilities based on market conditions
- Merge with faster timeframe prices for quicker reactions
Conclusion
The monthly close and MA crossover strategy has simple, straightforward logic and can be adapted to various tickers through parameter tuning. It is especially suitable for mid-long term investors. With the continuing enhancement of stop loss, parameter optimization and other modules, this strategy shows great promise.
- 1

