Indicator · Pine Script v6 · On the chart

TylerG FVG BB Reversal

by TradersPost

This indicator identifies mean-reversion setups by combining Bollinger Bands with Fair Value Gaps (FVGs).

View on GitHub

GitHub stars218on the repository
Pine versionv6current
Lines of code741
Settings34inputs
LicenceNone stated
Last update3 months ago23 Jul 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  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

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

TylerG FVG BB Reversal tracks FVGs that print outside the upper or lower Bollinger Bands and counts them toward an alert threshold. Signals trigger upon gap mitigation (by touch, cross, or close) or when the price closes back inside the bands. It plots the Bollinger Bands, dynamic FVG boxes, and expiry levels directly on the price chart, alongside an optional multi-timeframe status dashboard.

Details

Published by

TradersPost on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

SMC / ICT / price action, Volatility & bands, Mean reversion, Screeners & dashboards

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
Lengthint50bbLength
Basis MA TypestringEMAbbMAType
SourcesourceclosebbSource
StdDevfloat2.0bbStdDev
Offsetint0bbOffset
Show Bullish FVGs Outside BBbooltrueshowBullishFVG
Show Bearish FVGs Outside BBbooltrueshowBearishFVG
FVG Count for Signalint3fvgThreshold
FVG Mitigation TypestringClose ThroughmitigationType
Signal TriggerstringOn FVG MitigationsignalType
Reset Count on SignalbooltrueresetOnSignal
Require Consecutive FVGsbooltruerequireConsecutive
Show all 34 settings
SettingTypeDefaultVariable
FVG Expiry (Bars)int15fvgExpiryBars
Show Expiry ZonebooltrueshowExpiryZone
Wait for Bar ConfirmationbooltruewaitForConfirmation
Bullish FVGcolorcolor.new(color.green, 80)bullishFVGColor
Bearish FVGcolorcolor.new(color.red, 80)bearishFVGColor
BB Upper Bandcolorcolor.new(color.blue, 0)bbUpperColor
BB Middle Bandcolorcolor.new(color.gray, 0)bbMiddleColor
BB Lower Bandcolorcolor.new(color.blue, 0)bbLowerColor
Enable AlertsbooltrueenableAlerts
Show DashboardbooltrueshowDashboard
Dashboard PositionstringTop RightdashboardPosition
Enable Timeframe 1booltrueenableTF1
Timeframe 1timeframe5tf1
Enable Timeframe 2booltrueenableTF2
Timeframe 2timeframe15tf2
Enable Timeframe 3booltrueenableTF3
Timeframe 3timeframe60tf3
Enable Timeframe 4boolfalseenableTF4
Timeframe 4timeframe240tf4
Enable Timeframe 5boolfalseenableTF5
Timeframe 5timeframeDtf5
Enable Multi-Timeframe AlertsbooltrueenableMTFAlerts
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

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
46 stars

Leptokurtic Directional Bias is an overlay indicator that measures kurtosis on a chosen source and marks directional bias on the price chart. The source can be a moving average, ATR, volume, close, or a Bollinger-band trend stop. Bias mode switches among RSI m

Indicator v5 Volatility & bandsMean reversion
Updated 7 weeks ago · None stated GitHub repository of Leptokurtic Directional Bias

This indicator classifies market behavior into momentum, mean-reversion, noise, or mixed regimes. It fuses four statistical predictability sensors—Variance Ratio across multiple horizons, return autocorrelation, Hurst exponent approximation, and fractal effici

Indicator v6 TrendMean reversion
Updated yesterday · MIT GitHub repository of Predictability Regime Index [WavesUnchained]
575 stars

The indicator plots ICT displacement candles on the price chart and can switch to retracement scanning. Displacement requires a move larger than a set share of the 14-bar average high-low range, lasting at least a chosen number of bars, with optional close, pr

Indicator v6 SMC / ICT / price actionCandlestick patterns
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Displacement Candles Indicator

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]

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