Skip to content
All library documents

Bollinger Band Breakout Strategy with SMA Trend and Session Filters

Article Strategy library · Author: Khanhtq26

Summary

This Pine Script strategy is presented as a trend-following system for VN30 futures. It defines upper and lower Bollinger Bands and treats a close above the upper band as a long signal and a close below the lower band as a short signal. A simple moving average direction filter can require the SMA to be rising for longs or falling for shorts. Inputs also allow the user to choose long, short, or both directions, set a stop distance, optionally enable a profit target, and configure a trading session.

The excerpt ends in the time-filter section, before the complete time conditions and order management are shown, so the full execution behavior cannot be established from this text. It provides no backtest results or evidence that the filters improve performance. The shown setup uses Bollinger length and multiplier settings, an SMA lookback, and configurable risk and session inputs. The supplied material therefore describes a configurable band-breakout template rather than a validated trading edge.

Key ideas

  • A close above the upper Bollinger Band signals a possible long entry, while a close below the lower band signals a possible short entry.
  • An optional SMA slope filter aligns each trade direction with the indicator’s recent slope.
  • The template offers direction selection, a stop distance, an optional profit target, and session settings.
  • The source excerpt ends before the time filter and complete order management are shown.
  • No backtest results are included to establish strategy performance.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.