Indicator · Pine Script v6 · On the chart

Arrows Off BB

by lunarticktrading· code credited to gambcl

This indicator plots standard Bollinger Bands and identifies potential mean-reversion setup signals directly on the main price chart.

View on GitHub

GitHub stars7on the repository
Pine versionv6current
Lines of code39
Settings5inputs
LicenceNone statedfile: MPL-2.0
Last update2 weeks ago10 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

39 lines of Pine Script v6 from Arrows Off BB.txt, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.

Arrows Off BB.txt
// This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © gambcl

//@version=6
indicator("Arrows Off BB", overlay = true)


////////////////////////////////////////////////////////////////////////////////
// Inputs
////////////////////////////////////////////////////////////////////////////////

i_bb_series = input.source(close, "Source", group = "Bollinger Bands")
i_bb_length = input.int(20, "Length", minval = 1, maxval = 999, group = "Bollinger Bands")
i_bb_mult = input.float(2.0, "Multiplier", minval = 0, step = 0.1, group = "Bollinger Bands")

i_bullish_color = input.color(#00c3ff, "Bullish", group = "Entry Signals")
i_bearish_color = input.color(#df1878, "Bearish", group = "Entry Signals")


////////////////////////////////////////////////////////////////////////////////
// Calculations
////////////////////////////////////////////////////////////////////////////////

[bb_middle, bb_upper, bb_lower] = ta.bb(i_bb_series, i_bb_length, i_bb_mult)

is_bullish_signal = barstate.isconfirmed and (close > open) and (close[1] < open[1]) and (low < bb_lower) and (low[1] < bb_lower[1])
is_bearish_signal = barstate.isconfirmed and (close < open) and (close[1] > open[1]) and (high > bb_upper) and (high[1] > bb_upper[1])


////////////////////////////////////////////////////////////////////////////////
// Plotting
////////////////////////////////////////////////////////////////////////////////

plot(bb_upper, "BB Upper", #512da8, 1, plot.style_line, linestyle = plot.linestyle_dotted)
plot(bb_middle, "BB Middle", color.olive, 1, plot.style_line, linestyle = plot.linestyle_dashed, display = display.none)
plot(bb_lower, "BB Lower", #512da8, 1, plot.style_line, linestyle = plot.linestyle_dotted)

plotshape(is_bullish_signal, "Bullish Entry", shape.arrowup, location.belowbar, i_bullish_color, size = size.normal)
plotshape(is_bearish_signal, "Bearish Entry", shape.arrowdown, location.abovebar, i_bearish_color, size = size.normal)

Overview

A bullish signal triggers when a bullish candlestick follows a bearish candlestick while both consecutive bars' lows drop below the lower Bollinger Band. Conversely, a bearish signal appears when a bearish candlestick follows a bullish bar with consecutive highs extending above the upper band. Inputs allow users to adjust the Bollinger Bands length, standard deviation multiplier, source price, and signal colors.

Details

Published by

lunarticktrading on GitHub

Code credit

gambcl, as written in the script's header

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Volatility & bands, Mean reversion

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Sourcesourceclosei_bb_series
Lengthint20i_bb_length
Multiplierfloat2.0i_bb_mult
Bullishcolor#00c3ffi_bullish_color
Bearishcolor#df1878i_bearish_color
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.

Similar Pine Scripts

This indicator plots trade entry and exit signals on the price chart by combining Bollinger Bands with optional filter conditions. It calculates standard Bollinger Bands along with RSI, Aroon, and moving average filters. Reversal signals trigger when price bre

Indicator v4 Volatility & bandsOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Bollinger Bands Winner IND [Alorse]

TylerG FVG BB Reversal

by TradersPost
218 stars

This indicator identifies mean-reversion setups by combining Bollinger Bands with Fair Value Gaps (FVGs). It tracks FVGs that print outside the upper or lower Bollinger Bands and counts them toward an alert threshold. Signals trigger upon gap mitigation (by to

Indicator v6 SMC / ICT / price actionVolatility & bands
Updated 3 months ago · None stated GitHub repository of TylerG FVG BB Reversal
147 stars

This indicator combines Bollinger Bands, RSI, Stochastic RSI, and volume spike detection to identify mean-reversion conditions during range-bound market regimes. It calculates Bollinger Band width to identify low-volatility states and triggers buy or sell sign

Indicator v5 Oscillators & momentumVolatility & bands
Updated 6 weeks ago · MIT GitHub repository of BTC Dec 2025 — Range + Gamma Flush

Bollinger Bands

by be-thomas
65 stars

This indicator plots standard Bollinger Bands directly on the price chart using hardcoded settings of a 5-period length and a 4 standard deviation multiplier. It displays the middle basis line in blue, the upper and lower outer bands in green, and fills the ch

Indicator v4 Volatility & bandsMean reversion
Updated 4 days ago · GPL-3.0 GitHub repository of Bollinger Bands
55 stars

This Pine Script indicator overlays institutional liquidity levels on the price chart. It identifies order block levels using pivot highs and lows, then draws mean reversion lines from the 20 and 50 period simple moving averages, a volatility range midpoint pr

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
Updated 6 months ago · Apache-2.0 GitHub repository of AAPL Institutional Liquidity Grid

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers