Type/to search

Bollinger Bands Standard Deviation Breakout Strategy

Cryptocurrency
Created: 2023-11-21 17:14:04
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

This strategy is based on the classic Bollinger Bands indicator. It goes long when the price closes above the upper band and goes short when the price closes below the lower band. It belongs to the trend following breakout strategy.

Strategy Logic

  1. The baseline is 55-day simple moving average.
  2. The upper and lower bands are one standard deviation above and below the baseline respectively.
  3. A long signal is generated when the price closes above the upper band.
  4. A short signal is generated when the price closes below the lower band.
  5. Using one standard deviation instead of the classic two standard deviations reduces the risk.

Advantage Analysis

  1. Using standard deviation instead of fixed value reduces risk.
  2. The 55-day moving average can better reflect the medium-term trend.
  3. Close breakout filters out false breakouts.
  4. Easy to determine trend direction through multi-timeframe analysis.

Risk Analysis

  1. Prone to churning small profits.
  2. Need to consider the impact of transaction fees.
  3. Breakout signals may be false breakouts.
  4. Slippage loss may occur.

Risks can be mitigated by setting stop loss, considering transaction fees, or adding indicator filters.

Optimization Directions

  1. Optimize baseline parameters to find the best moving average.
  2. Optimize the standard deviation size to find the optimal parameters.
  3. Add auxiliary volume indicators for judgement.
  4. Add stop loss mechanism.

Summary

The overall logic of this strategy is clear. It adjusts risk through the standard deviation band width and avoids false breakouts using close breakout. But it is still necessary to prevent oscillating losses by using stop loss, adding filters etc.

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

//@version=4

//┌───── •••• ─────┐//
//   TradeChartist  //
Strategy parameters
Strategy parameters
Source
SMA length
Standard Deviation
Color Bars
╔═══ Time Range to BackTest ═══╗
From Month
From Day
From Year
To Month
To Day
To Year
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)