Multi-Timeframe Trailing Stop Loss Strategy
Overview
This strategy is a multi-timeframe version of my previous simple trailing stop loss strategy. The previous strategy only used basic trailing stop loss to enter positions. It worked pretty well so I tried to improve it. I thought what would happen if I use the same ATR trailing stop loss on different timeframes and combine them into one signal.
In this strategy you can only use ATR stops and choose 3 other higher timeframes in addition to your current timeframe. The trailing stop loss from all these timeframes will be plotted on the chart. Enter long position if all 4 timeframes agree on long signal. Close long positions when at least 2 timeframes disagree on long signal. The logic for short positions is the same.
Strategy Logic
The core of this strategy lies in trailing stop loss and trend following. Trailing stop loss is used to set stop loss level based on ATR value, which can effectively avoid stop loss from being hit. Trend following determines entry based on observing trend direction across different timeframes.
Specifically, the strategy first calculates ATR value on different timeframes and sets stop loss distance. It then generates long/short signals when price breaks through the stop loss level. If signals from multiple timeframes agree, position will be taken. After that, keep tracking the stop loss level per trend direction. If signals from a certain percentage of timeframes reverse, close position.
By combining trend judgment across different periods, fake breakouts can be filtered out effectively. At the same time, trailing stop locks in profits and controls risk.
Advantages
- Using multiple timeframes helps filter out noise and identify trend direction
- ATR trailing stop adjusts stop distance dynamically, lowering probability of being stopped out
- Combining trend following and stop loss management, you can follow the trend and stop out in time
- Few parameters, easy to understand and optimize
Risk Analysis
- ATR stop may be too close or too far if parameters not set properly, prone to being hit or stop distance too big
- Multiple timeframes combination may not work effectively or judge wrongly if parameters not set properly
- Need to configure both stop loss and timeframe parameters properly, otherwise may not achieve best results
Solutions:
- Test different parameter sets and products to find optimum
- Optimize ratio and number of timeframes to ensure reliable trend judgment
- Adjust ATR multiplier to balance between not being hit and proper distance
Optimization Directions
The strategy can be optimized in the following aspects:
- Add/reduce number of timeframes to find best combinations for trend judgment
- Test different ATR multipliers to determine optimum stop distance
- Add re-entry mechanism to build more positions as trend persists
- Incorporate other filters on entry signals e.g. volume indicators etc
- Parameter tuning for different products
Conclusion
This strategy combines trend following and risk control via multi-timeframe ATR trailing stops. Compared to single stop, it identifies trend direction more clearly; compared to single timeframe, it filters out lots of noise. Proper configuration on stop parameters and timeframes is key to achieve best results. It suits investors who can tolerate certain drawdowns and provides steady returns. There is also further room of enhancement and expansibility. It's a very promising strategy idea.
/*backtest
start: 2023-01-01 00:00:00
end: 2024-01-07 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=4
strategy(title="MTF Trailing SL Strategy [QuantNomad]", shorttitle = "MTF TrailingSL [QN]", overlay = true, default_qty_type = strategy.percent_of_equity, default_qty_value = 100)
////////////- 1

