Trend Following Strategy Based on Multiple Indicators
Overview
This strategy identifies trends by combining multiple indicators and sets trend tracking stop loss to lock in profits. It mainly uses Bollinger Bands, RSI, ADX and other indicators to determine entry timing, and uses ATR and Bollinger Bands for stop loss.
Strategy Principle
The main judgment indicators of the strategy are Bollinger Bands, RSI and ADX. When the price approaches the lower rail of the Bollinger Bands and the RSI is below 30, it is judged as oversold and long position is taken; when the price approaches the upper rail of the Bollinger Bands and the RSI is above 70, it is judged as overbought and short position is taken. In addition, if the ADX is above 25, it means that a trend has formed, which makes the long and short signals more effective.
After opening positions, the strategy uses ATR indicator and Bollinger Bands rails to set stop loss. Specifically, the ATR sets the maximum stop loss range. When the price reaches the maximum stop loss point, close the position; the Bollinger Bands rails set trailing stop loss points which update according to price movement.
Advantage Analysis
The strategy combines multiple indicators for judgement and uses stop loss mechanism to lock in profits and reduce risk. The main advantages are as follows:
- Using Bollinger Bands to judge overbought and oversold situations for reversal opportunities
- Combining with RSI indicator increases judgment accuracy
- ADX indicator determines trend formation to ensure correct trade direction
- ATR and Bollinger Bands trailing stop loss can maximize profit locking
Risk Analysis
There are also some risks for this strategy:
- Multiple indicators judgment leads to high chance of over-optimization
- Signals are less effective when Bollinger Bands range is too wide
- Improper stop loss trailing may lead to expanded losses
To address these risks, we can take the following measures:
- Multi-parameter optimization to prevent over-optimization
- Adjust Bollinger Bands parameters based on market volatility
- Test stop loss distance parameters to endure normal fluctuations
Optimization Directions
The strategy can also be optimized in the following aspects:
- Add position sizing to adjust position scale based on stop loss multiplier
- Add money management module to strictly control single stop loss amount
- Test other stop loss indicators like DMI, Envelop etc
- Add machine learning models to determine trend probability and improve performance
Summary
In summary, this is a relatively robust trend following strategy. By determining trend direction through multiple indicators and controlling risks through stop loss measures, it can achieve good return on investment. We have also proposed several aspects that the strategy can optimize. Further optimizations may lead to even better results.
/*backtest
start: 2023-12-01 00:00:00
end: 2023-12-31 23:59:59
period: 2h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=3
// THIS SCRIPT IS MEANT TO ACCOMPANY COMMAND EXECUTION BOTS
// THE INCLUDED STRATEGY IS NOT MEANT FOR LIVE TRADING
// THIS STRATEGY IS PURELY AN EXAMLE TO START EXPERIMENTATING WITH YOUR OWN IDEAS- 1

