Type/to search

Multi-timeframe Trading Strategy with Bollinger Bands

Cryptocurrency
Created: 2023-09-20 15:47:46
Last modified: 3 years ago
1
Follow
1781
Followers

Overview

This strategy uses adaptive Bollinger Bands to design two types of trailing stop strategies and backtest them systematically across timeframes. It belongs to trend following strategies.

Strategy Logic

  1. Calculate the upper and lower bands of adaptive Bollinger Bands, with adjustable channel width.

  2. Breakout tracking strategy to open positions on band breakouts and stop out when price reverts inside bands.

  3. Reversion reversal strategy to open positions when price reaches bands and stop out when price reverts back inside bands.

  4. Use CCI indicator to assist in determining long/short side.

  5. Backtest across multiple timeframes to verify viability of both strategies.

Advantages

  1. Bollinger Bands are intuitive in capturing price trends.

  2. The two strategies fit different market conditions for robustness.

  3. CCI helps determine long/short direction.

  4. Multi-timeframe backtesting makes results more convincing.

  5. Simple and clear strategy rules easy to implement.

Risks

  1. Bollinger Bands can fail in certain situations.

  2. Risks of premature or delayed stops in both strategies.

  3. CCI may generate incorrect signals.

  4. Handle backtest biases carefully.

  5. Optimization risks overfitting.

Enhancement

  1. Test parameters to find optimal combinations.

  2. Evaluate adding filters with other indicators.

  3. Optimize stops to reduce risks.

  4. Research adaptive methods for channel width.

  5. Verify with more symbols and timeframes.

  6. Use machine learning to dynamically optimize parameters.

Conclusion

This strategy designs two trailing stop strategies based on Bollinger Bands and backtests them across multiple timeframes. Refining via parameter optimization, stop improvements etc can enhance robustness into a mature trend following system.

Source
Pine
/*backtest
start: 2022-09-13 00:00:00
end: 2023-09-19 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
strategy(title = "Underworld Hunter", overlay=true)

len = input(75, minval=1, title="Length")
Strategy parameters
Strategy parameters
Length
Source
Deviation
Period for CCI
Test Reverse to the Mean instead
Enable testing
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)