B.Bands | Augmented | Intra-range | Long-Only triggers long entries when price dips below the lower band, provided the band spread stays within a defined threshold. Exits occur when price reaches either the middle moving average or opposite upper band. Risk management includes customizable percentage stop losses, trailing stops, and profit filters to ensure entries and exits adhere to capital limits.
Simple and augmented Bollinger Band indicators
Intra-range mean-reversion long entries
Take-profit targeting middle or opposite upper band
Configurable percentage stop loss and trailing stop
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Simple Bollinger Bands
bool
true
show_simp
Augmented Bollinger Bands
bool
false
show_augm
Periods
int
20
periods
Std
float
2
std
Entry source
source
close
entry_source
Exit source
source
high
exit_source
Max Spread Tolerance Beetween Bands
float
99999.0
max_spread_bb
Profit to band:
string
opposite
take_profit
Only sell in profit
bool
false
sell_profit
Stop Loss %
float
3.00
stop_loss
Implement Stop Loss?
bool
true
isStopLoss
Trailing %
float
6.00
stop_perc
Show all 17 settings
Setting
Type
Default
Variable
Implement trailing stop?
bool
false
trailing
% of available capital
float
5
riskPerc
Limit strategy capital?
bool
false
usePosSize
Starting Date
time
timestamp("2019-11-01T00:00:00")
start
Ending Date
time
timestamp("2023-12-12T00:00:00")
end
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 plots Bollinger Bands on the price chart with adjustable length, standard deviation, and offset. It defines buy and sell zones using candle size percentage and body size thresholds. Long positions enter when the lower zone is breached without con
The Mean Reversion Strategy Template calculates a baseline mean using SMA, EMA, or VWAP alongside upper and lower deviation bands based on standard deviation, ATR, or percentage offsets. It generates long and short entries when price touches, bounces from, or
This strategy generates buy and sell signals based on Bollinger Band crossovers combined with a simple moving average trend filter. It enters a long position when price crosses above the lower band while trading above the SMA filter line, and enters a short po
This strategy executes trades based on price interactions with standard Bollinger Bands plotted on the price chart. It calculates a simple moving average basis line along with upper and lower standard deviation bands. Long entries are triggered when price cros
This strategy scaffold calculates a standard Volume Weighted Average Price (VWAP) alongside upper and lower volatility bands set 1.5 ATRs away. It generates long entry signals when a confirmed bar closes below the lower band and short entry signals when a conf
Greeffer's Scalping Strategy combines multi-timeframe Exponential Moving Averages, Bollinger Bands, and Donchian Channels to execute dip-buying trades directly on the price chart. It triggers long entries when price dips below both the lower Donchian Channel a