EMA RSI Hidden Divergence Trend Following Strategy
Overview
This strategy opens long positions based on the EMA crossover and RSI hidden bullish divergence signals to identify the beginning of an upward trend. The combination of EMA lines, RSI indicator, and K-line closing prices provides double confirmation for ensuring an upward momentum. This strategy is suitable to follow mid-long term trends and open long positions after price consolidations.
Strategy Logic
-
EMA Strategy: Using the golden cross of 50-period EMA and 250-period EMA to determine the trend direction. A close above the 50 EMA gives a long signal.
-
RSI Hidden Divergence Strategy: The RSI forms lower lows while price forms higher lows, signaling a trend reversal at the beginning. Limiting the number of pivot points filters out false signals.
-
K-line Closing Strategy: Go long when the closing price is above the 50 EMA line.
The combination of the above three strategies identifies the start of an upward trend and opens long positions accordingly.
Advantage Analysis
-
Using EMA lines to determine trend direction along with RSI reversal signals allows early entry at the beginning of trends.
-
The dual confirmation from EMA lines, RSI indicator, and K-line closing prices effectively filters out false signals.
-
Following mid-long term trends makes it suitable to identify new up trends after consolidations.
Risk Analysis
-
Close positions when the EMA lines have a death cross.
-
Identifying RSI hidden divergences needs experience, improper parameter tuning could lead to missing or false signals.
-
Parameters need optimization for different trading instruments.
Optimization Directions
-
Dynamically adjust EMA parameters for better trend determination accuracy.
-
Fine tune RSI parameters for better hidden divergence signal accuracy.
-
Add stop loss mechanisms like ATR or percentage stops to control risks.
-
Develop strategies for short positions to trade downward trends.
Conclusion
This strategy combines EMA lines for trend determination and RSI signals for increase accuracy. It identifies new upward trends after consolidations. With proper parameter tuning and risk management, it could achieve good results. Compared to simple moving average strategies, it has higher accuracy in catching trends with better win rates. Overall it is a practical trend following strategy.
/*backtest
start: 2024-01-25 00:00:00
end: 2024-02-01 00:00:00
period: 1m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=4
strategy(title="EMA RSI ATR Hidden Div Strat", shorttitle="Hidden Div Strat", overlay = true, pyramiding = 0, max_bars_back=3000, calc_on_order_fills = false, commission_type = strategy.commission.percent, commission_value = 0, default_qty_type = strategy.percent_of_equity, default_qty_value = 10, initial_capital=5000, currency=currency.USD)
- 1

