This strategy incorporates a forward shifted Bollinger Bands as a moving turning profile to identify potential trend breakout points. It generates trading signals when price breaks through the forward shifted bands. Combining the trend identification strength of BB and early warning of turning points from the shifted bands aims to discover more effective entries.
Calculate standard BB with middle line, upper and lower bands.
Shift BB lines forward by a set period.
Signal long entry when price breaks above forward shifted upper band.
Signal short entry when price breaks below forward shifted lower band.
Set stop loss at opposite BB line after entry.
Moving turning profile provides early warning for trend reversals.
Combines with BB’s inherent trend identification ability for higher signal accuracy.
Preset stop loss positions allows effective risk control.
Can build positions at advantageous prices when combined with trend and swing analysis.
Improper parameter tuning may generate excessive false signals.
Moving turning profile may have premature breakout and mid-way stop loss.
Needs further trend analysis to avoid whipsaws in ranging markets.
Has some lag, may not fully capture turning points.
Test different price inputs and parameter combinations.
Add filters to avoid false breakouts.
Incorporate trend analysis to avoid being trapped.
Optimize stops based on market conditions.
Test effectiveness across different instruments and timeframes.
Combine with other indicators for more accurate entries.
This strategy fully utilizes the inherent advantages of Bollinger Bands and improves entry timing via the moving turning profile. With optimized parameters, additional filters, and further trend analysis, it can become a robust breakout system. Overall, a simple and practical strategy worth further testing and optimization for improved performance.
/*backtest start: 2023-09-11 00:00:00 end: 2023-09-18 00:00:00 period: 15m basePeriod: 5m exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}] */ //@version=4 strategy("LAGging span leaves Bollinger Bands strategy" , shorttitle="LagBB" , overlay=true) source = input( hl2 ) length = input(20, minval=1) mult = input( 1.0, minval=0.0, maxval=50) x_offset = input( 26 ,minval=0 , maxval=244 ) basis = sma(source, length) dev = mult * stdev(source, length) upper = basis + dev lower = basis - dev buyEntry = crossover(source, upper[x_offset] ) sellEntry = crossunder(source, lower[x_offset] ) if (crossover(source, upper[x_offset] )) strategy.entry("LE", strategy.long, stop=lower, oca_name="BollingerBands", comment="LE") else strategy.cancel(id="LE") if (crossunder(source, lower[x_offset] )) strategy.entry("SE", strategy.short, stop=upper, oca_name="BollingerBands", comment="SE") else strategy.cancel(id="SE") //plot(strategy.equity, title="equity", color=color.red, linewidth=2, style=plot.style_areabr) plot( upper , color=#cccc00 , transp=50 , offset=x_offset ) plot( basis , color=#cccc00 , offset=x_offset ) plot( lower , color=#cccc00 , transp=50 , offset=x_offset )