Skip to content
All library documents

Bollinger Band Breakouts with SMA Trend, Session, and Exit Rules

Article TradingView scripts

Summary

This VN30F1M strategy treats a close above the upper Bollinger Band as a long breakout and a close below the lower band as a short breakout. A configurable SMA direction filter can require the moving average to be rising for long trades or falling for shorts. Entries are restricted by an optional intraday time window and can be limited to either direction. The script also exits on an opposite-band close, a reversal in SMA direction, or the end of the permitted session. Fixed point stop losses are included, with take-profit orders optional.

The document provides configurable indicator, filter, and exit rules but no backtest statistics or independent evidence of profitability. The stated defaults include a 20-period band, a 200-period SMA filter, a 10-point stop, and a disabled 20-point target. It identifies VN30F1M as its intended market and describes the approach as trend following. Actual behavior depends on timeframe, session settings, execution assumptions, and whether optional filters and targets are enabled.

Key ideas

  • A close beyond the upper or lower Bollinger Band triggers a candidate directional breakout.
  • An optional SMA slope filter aligns long trades with a rising average and shorts with a falling average.
  • An optional session window and direction setting restrict entries.
  • Positions can close on an opposite band, an SMA direction flip, session end, or a stop loss.
  • The take-profit order is optional, and the document gives no performance results.

Tags

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