Trend Following Strategy Based on Dynamic Stop Loss of Dual EMA Crossover
1
Follow
1802
Followers
Overview
This strategy utilizes the golden cross and dead cross of EMA lines for dual-directional trend following, and sets up dynamic stop loss lines for long and short positions to capture trending moves in the market.
Strategy Logic
- Calculate fast EMA line (5-day) and slow EMA line (20-day)
- Go long when fast line crosses above slow line from below; Go short when fast line crosses below slow line from above
- After long entry, set dynamic stop loss at entry price * (1 - long stop loss percentage); After short entry, set dynamic stop loss at entry price * (1 + short stop loss percentage)
- Exit position with stop loss once price hits the stop loss level
Advantage Analysis
- EMA lines have stronger capabilities in tracking trends. Dual-crossover works as a timing tool to effectively catch trend opportunities
- Dynamic stop loss moves along with profit, maximizing trend catching profit
- Additional filter with vwap avoids being trapped in whipsaws and improves signal quality
Risk Analysis
- As a pure trend following strategy, it’s vulnerable to ranging markets with whipsaws
- Overly loose stop loss may lead to magnified losses
- Lagging nature of EMA crossover signals may miss best entry points
Enhancements like ATR-based risk management, optimizing stop loss rules, adding filter indicators etc. can help improve the strategy.
Enhancement Directions
- Incorporate dynamic stop loss indicators like ATR or DONCH to set better adaptive stops
- Add more filter indicators like MACD, KDJ to avoid bad trades
- Optimize parameters to find best EMA lengths combination
- Utilize machine learning methods to discover optimal parameters
Conclusion
In conclusion, this is a very typical trend following strategy. Dual EMA crossover with dynamic stop loss can effectively lock in trend profits. Meanwhile the risks like lagging signals and overwide stops still exist. Through parameter tuning, risk management, filter additions etc., further refinement can lead to better results.
Source
Pine
Strategy parameters
Related strategies
Comment
All comments (0)
No data
- 1

