Trend Following Strategy Based on Moving Average Combination
1
Follow
1802
Followers
Overview
This strategy identifies trend directions by calculating combinations of multiple fast and slow moving averages. It generates buy signals when the fast MAs cross above the slow MAs, and sell signals when the fast MAs cross below the slow MAs.
Strategy Logic
- Calculate 7 groups of fast EMAs with periods of 3/6/9/12/15/18/21 days.
- Calculate 14 groups of slow EMAs with periods of 24/27/30/.../200 days.
- Set color rules for fast EMAs: 3MA above 6MA is uptrend (aqua), below is downtrend (orange).
- Set color rules for slow EMAs: 24MA above 25MA is uptrend (lime), below is downtrend (red).
- When fast EMA grupo crosses above slow EMA group, generate buy signal, indicating uptrend.
- When fast EMA grupo crosses below slow EMA group, generate sell signal, indicating downtrend.
By combining fast and slow MAs, it can effectively identify the change in medium- and long-term trends for position tracking.
Advantages
- Fast and slow MAs combined can strongly identify trend changes. Fast MAs capture short-term trends, and slow MAs filter consolidations.
- Multiple MAs combined can give clearer and more reliable signals, avoiding false signals.
- Flexible operating cycle by using different EMA periods.
- Long position tracking suits the mode of operation of most private funds.
Risks
- Holding positions for too long may miss short-term trading opportunities.
- EMA combinations are not suitable for catching sharp price fluctuations.
- Improper parameter settings may result in too frequent or conservative signals. Parameter testing and live verification are recommended.
Optimization Suggestions
- Add more fast EMAs to improve judgment of short-term trends.
- Add more slow EMAs to improve judgment of medium- and long-term trends.
- Add MA signal confirmation to reduce false signals.
- Incorporate volume analysis to avoid false breakouts in ranging markets.
Summary
This strategy identifies mid- to long-term trend changes by constructing fast and slow MA systems, which is a typical tracking position strategy. There is still much room for optimization in parameter selection and signal filtering. Investors can tailor it to adapt to different market conditions.
Source
Pine
Strategy parameters
Related strategies
Comment
All comments (0)
No data
- 1

