Type/to search

Bollinger Band Breakout Strategy Based on VWAP

Cryptocurrency
Created: 2024-02-06 14:36:26
Last modified: 2 years ago
1
Follow
1782
Followers

img

Overview

This strategy uses Bollinger Bands to track VWAP. It adopts a long position when VWAP breaks above the middle band, and closes position when VWAP breaks below the lower band. Pivot Point is also used as an auxiliary signal for entry, to avoid false breakouts.

Strategy Logic

  1. Calculate VWAP.
  2. Calculate Bollinger Bands of VWAP, including upper, middle and lower bands.
  3. Take long position when VWAP breaks above middle band and price is above Pivot Point.
  4. Set stop loss at 5%.
  5. If VWAP breaks below lower band, close long position. If stop loss is triggered, also exit.

Advantage Analysis

  1. VWAP has strong trend tracking ability. With BB, it accurately identifies trend start.
  2. Adding Pivot Point filters out false breakouts, avoiding unnecessary losses.
  3. Partial exit locks in some profits and controls risk.
  4. Backtests show great performance in bull market with good stability.

Risk Analysis

  1. Prone to losses from false breakouts in range-bound market.
  2. Pivot Points cannot fully avoid false signals. More filters needed.
  3. Increased trade frequency leads to higher transaction costs.
  4. Does not perform well in bear market. Good risk control required.

Optimization Directions

  1. Add indicators like MACD, KDJ to filter signals.
  2. Optimize BB parameters through backtests.
  3. Use machine learning to dynamically optimize BB parameters.
  4. Test different stop loss levels to find optimum.
  5. Add adaptive take profit based on market volatility.

Conclusion

A stable breakout system suitable for algorithm trading. Attention is needed on risk control. With further research and optimization, it could become an excellent breakout strategy.

Source
Pine
/*backtest
start: 2024-01-06 00:00:00
end: 2024-02-05 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © ediks123

//@version=4
Strategy parameters
Strategy parameters
BB Length
StdDev
Offset
Pivot Period
Risk % of capital
Stop Loss
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)