Bollinger Bands Strategy With StopLoss enters alternating long positions when price crosses above the lower band and short positions when price crosses below the upper band. Open trades are closed if price exceeds a user-defined percentage stop loss relative to the entry price. Adjustable settings include source, band length, multiplier, and stop loss percentage. The strategy plots close prices, upper and lower bands, trade entry prices, and stop loss levels in a separate pane.
Alternating long and short entries on band crossovers
Percentage-based stop loss management
Separate pane visualization of bands and stop loss levels
Customizable length and standard deviation multiplier
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Source
source
close
source
length
int
20
length
mult
float
2.0
mult
Stop Loss Percent
float
1
stopLossFactor
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.
This strategy combines Larry Williams' Vix Fix synthetic volatility indicator with Bollinger Bands. It calculates standard and inverted Williams Vix Fix metrics, displaying them as histogram columns with standard deviation bands in a separate pane. Long entrie
This strategy fades Bollinger Band extremes using the close. It enters short when price crosses above the upper band and the 14-period RSI is above 70, and enters long when price crosses below the lower band and RSI is below 30. It closes half of an open short
This strategy calculates a smoothed Relative Strength Index and plots self-adjusting linear regression bands with overbought and oversold boundaries in a separate pane. It enters long positions through dollar-cost averaging orders scaled across market phases a
VT-Lite is a Pine Script v5 mean-reversion strategy that draws in a separate pane. It sizes equity-percent entries from a short-term EMA and ATR band distance, with a volatility EMA threshold and a choice of close, low, or ATR-band source. It can add reentries
This strategy plots the Williams Vix Fix indicator as a histogram in a separate pane to detect potential trend reversals. It calculates the Vix Fix value using a lookback period and standard deviation bands derived from Bollinger Bands on the Vix Fix. Multiple
CTC BB Hedge Strategy calculates the Pearson correlation coefficient between the close prices of two symbols to determine market alignment. It applies Bollinger Bands to the primary symbol for mean-reversion signals while optionally filtering with a moving ave