Type/to search

Bollinger Bands Trend Reversal Strategy

Cryptocurrency
Created: 2023-11-01 11:29:34
Last modified: 3 years ago
1
Follow
1777
Followers

img

Overview

This strategy utilizes Bollinger Bands and Moving Average to go LONG or SHORT when price approaches the upper or lower bands. It goes short when price breaks above the upper band and goes long when price breaks below the lower band. The strategy combines the advantages of both trend following and mean reversion strategies, and performs well during range-bound markets.

Logic

The strategy identifies two entry signals:

  1. Long signal: when close price hits the lower band while above EMA line, previous candle was bearish and current candle is bullish.

  2. Short signal: when close price hits the upper band while below EMA line, previous candle was bullish and current candle is bearish.

The stop loss uses fixed stop loss. The stop loss level is set at the entry price plus/minus risk/reward ratio times the distance between entry price and take profit level.

The take profit uses dynamic take profit. Long take profit is set at the lower band. Short take profit is set at the upper band.

Advantages

  1. Combines the strengths of both trend following and mean reversion strategies, performs well during range-bound markets.

  2. Utilizes Bollinger Bands to identify overbought and oversold levels, improving accuracy of reversal signals.

  3. Fixed stop loss facilitates risk management.

  4. Dynamic take profit allows maximization of profits.

Risks

  1. Breakout strategies are susceptible to stop runs. Need to beware of false breakouts.

  2. Frequent stop loss triggers when market is too choppy.

  3. Fixed stop loss is not adaptive to market volatility. Can be too wide or too tight.

  4. Poor parameter tuning of Bollinger Bands can lead to mediocre results.

Enhancement

  1. Incorporate RSI indicator to filter entry signals. For example, only go long if RSI is above 50, and only go short if RSI is below 50. This avoids bad signals.

  2. Implement adaptive stop loss that adjusts stop distance based on volatility. E.g. use ATR to set dynamic stop loss.

  3. Optimize Bollinger Bands parameters to find best parameter combinations.

  4. Test different EMA periods to enhance the EMA's support/resistance effect.

Summary

The strategy combines trend and reversal, entering overbought/oversold levels identified by Bollinger Bands. It maximizes profits through dynamic take profit. Performs well during range-bound markets. Be wary of stop runs. Fine tune parameters to optimize performance. Overall a practical and effective strategy.

Source
Pine
/*backtest
start: 2023-10-24 00:00:00
end: 2023-10-31 00:00:00
period: 10m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4

// Welcome to yet another script. This script was a lot easier since I was stuck for so long on the Donchian Channels one and learned so much from that one that I could use in this one
// This code should be a lot cleaner compared to the Donchian Channels, but we'll leave that up to the pro's
Strategy parameters
Strategy parameters
length
Source
StdDev
EMA Input
Risk/Reward Ratio
Offset
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)