Bollinger Stop Strategy places breakout stop orders, entering long when price crosses above the upper band and short when price falls below the lower band. User inputs adjust the moving average length, multiplier, source price, band visibility, and date filtering window. Position sizing defaults to all equity. By default, positions only close through reversal into the opposing side or after the end date, as there are no explicit stop loss or take profit orders.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
long
bool
true
long
short
bool
true
short
length
int
20
length
mult
float
2.0
mult
source
source
close
source
Show Bollinger Bands
bool
true
showbb
Show Offset
bool
true
showof
Start Time
time
timestamp("01 Jan 2000 00:00 +0000")
startTime
Final Time
time
timestamp("31 Dec 2099 23:59 +0000")
finalTime
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
Calculates standard Bollinger Bands and identifies band expansion breakouts where upper and lower bands move in opposite directions. It enters long positions when price breaks above the upper band with a high candle body percentage, and enters short positions
This strategy plots VWMA-based Bollinger bands on the 1-minute ES futures price chart for volatility analysis and potential breakout identification. It calculates dynamic long and short stop loss and take profit levels using percentage inputs relative to entry
This strategy detects price breakouts above rolling highest highs or below lowest lows over a customizable lookback period. It includes optional volume spike and ATR volatility threshold filters, along with bar confirmation rules. Positions are taken upon conf
This price-chart strategy plots a simple moving average and upper and lower bands built from the standard deviation of close, scaled by separate offset inputs. It enters a fixed quantity long when close crosses above the upper band and a fixed quantity short w
This strategy trades long breakouts of a fast and a slow moving average on the price chart. It opens a long position when price crosses above either average, using a percentage of equity as size. It reduces the position by a set share when the high reaches the
This strategy plots exponential-moving-average Bollinger bands on the price chart and calculates RSI. It opens a long position when close crosses above the upper band while RSI is at or above a threshold, the date filter allows trading, and no position is open