Multiple Timeframe Filtered Trend Following Strategy
Overview
This strategy accurately judges the trend by reasonably applying moving averages, relative strength index (RSI), moving average directions and other technical indicators. Based on the long and short judgment of double moving averages, RSI indicators are added for long and short filtering to avoid false breakouts. Meanwhile, the trend direction can be effectively identified by jointly observing moving averages of different cycles. The strategy has large optimization space and can be applied to different trading varieties and cycles.
Strategy Principle
The strategy mainly operates based on the following technical indicators:
-
Double moving average: Golden cross of fast and slow moving averages indicates long signal, while death cross means short signal. EMA is used to calculate moving averages in this strategy.
-
RSI indicator: Decline from high RSI levels suggests short opportunities, while rebound from low levels suggests long opportunities. RSI logic is used for trend filtering in this strategy.
-
Moving average direction: Comparing directions of long and short moving averages can determine the trend. 200-period EMA is used to determine the long-term direction in this strategy.
The trading logic is as follows:
-
Go long when fast EMA crosses above slow EMA, and go short when fast EMA crosses below slow EMA.
-
Decline from high RSI levels adds short opportunities, while rebound from low levels adds long opportunities.
-
Only enter trades in the direction consistent with the long-term trend (200-day EMA), i.e. only go long in uptrend and short in downtrend.
-
Use take profit and stop loss to exit positions.
Advantage Analysis
The advantages of this strategy include:
-
The combination of multiple technical indicators helps confirm the trend direction and reduce false breakout opportunities.
-
Adding RSI filter avoids whipsaws when the trend reverses.
-
Using short, medium and long-term trends helps improve the timeliness and directionality of entry.
-
The stop loss setting provides risk control to limit the loss for a single trade.
-
Adjustable parameters allow adaptability to multi-timeframe trading for different products.
Risk Analysis
There are also some risks in this strategy:
-
Stop loss may be triggered by short-term pullbacks in a strong trend. Wider stop loss range or moving/trailing stop loss could be used.
-
False breakouts in range-bound market may lead to losses. Wider RSI filtering range or additional indicators like Donchian Channels could help.
-
Improper parameter optimization may lead to over-trading. Careful testing and optimization are needed for different products.
-
This strategy relies solely on technicals. Fundamental analysis is needed to determine the major trend.
Optimization Directions
This strategy can be optimized in the following aspects:
-
Adjust moving average periods to adapt to different market cycles.
-
Optimize RSI parameters to improve the accuracy of long/short selection.
-
Test additional indicators like Bollinger Bands and Keltner Channels to improve breakout success rate.
-
Experiment with moving or trailing stop loss to better track the trend.
-
Study range breakout operations to reduce false signals when trend is weak.
-
Set reasonable stop loss and take profit values based on product characteristics to control risks.
-
Add trade size control to avoid oversized single bets.
Summary
The strategy has clear logic and is easy to implement. With proper parameter tuning, it can be applied to various products and cycles with strong trend following capacity. Risk control is important to avoid being trapped in range-bound markets. Customized optimizations can be done based on market conditions and personal preferences.
/*backtest
start: 2023-08-26 00:00:00
end: 2023-09-08 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=4
strategy("Nostradamus by Wicksell 2.0", overlay=true, default_qty_type = strategy.percent_of_equity, default_qty_value = 100)
// MACD + EMA 200 *** estratégia de compra e venda (RSI, EMA, SMA) *** Doji Harami *** sobrecompra e sobrevenda *** Direção de tendência *** Divergência *** Ichimoku- 1
