Type/to search

Bollinger Bands and K-line Combined Strategy

Common strategy
Created: 2024-01-15 14:12:30
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

This is a trend following strategy that uses both Bollinger Bands and K-line formations as entry signals. It aims to capture trends over longer time frames and is suitable for forex trading.

Strategy Logic

The strategy builds Bollinger Bands to represent price volatility and identify overbought/oversold levels. Touching the upper or lower bands signals extremes. Combined with specific K-line patterns to time entries.

Specifically, long signal is triggered when price breaks above lower band and a bullish engulfing or long lower shadow candle appears. Short signal triggers when price breaks below upper band and a bearish engulfing or long upper shadow candle shows up.

The stop loss is pre-set price levels. Profit taking exits when price crosses the Bollinger middle band.

Advantage Analysis

This strategy combines trend and pullback opportunities. Bollinger Bands identify trends and overextensions. K-line patterns increase reliability on re-entries and avoid false breakouts.

The stop loss and take profit logic is clear and risk-controlled. Lower trading frequency suits long term holding.

Risk Analysis

Biggest risk is failing to capture trends or whipsaws occur. Sequential stop loss hits likely happen.

Also, profit taking depends on the middle line crossing so early or late exits might happen.

Improving parameters selection, identifying more reliable candlestick patterns, or adaptive profit target based on volatility could help optimize.

Optimization Directions

Incorporate other indicators to gauge overall cycle trends, avoiding counter-trend trades. Or utilize machine learning models to find optimal parameter combinations.

Profit taking could adapt to trailing stops or volatility based exits to maximize profits.

Summary

This is a longer time frame trend following strategy based on Bollinger Bands and candlestick techniques. It works decently as a fundamental strategy with reliability and profitability but needs continual testing and tuning to improve robustness.

Source
Pine
/*backtest
start: 2024-01-07 00:00:00
end: 2024-01-14 00:00:00
period: 3m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
strategy("BB策略", overlay=true)
length = input(20, minval=1)
src = input(close, title="Source")
Strategy parameters
Strategy parameters
length
Source
StdDev
Offset
Start Date
Start Month
Start Year
End Date
End Month
End Year
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)