BBTrend Indicator: Practical Signals for Trend Traders
BBTrend compares two Bollinger Band calculations with different lookback lengths and presents the result as a histogram. The two lengths normally use the same chart timeframe; they are not automatically a daily/intraday combination. The indicator describes the relationship between the band sets, not a guaranteed future return.

What BBTrend calculates
TradingView attributes BBTrend to John Bollinger and describes its histogram as a measure of trend direction and strength. Its documented formula is:
BBTrend = (math.abs(shortLower - longLower) - math.abs(shortUpper - longUpper)) / shortMiddle * 100
The numerator compares the distance between the lower bands with the distance between the upper bands. Dividing by the short middle band scales that difference relative to the selected price series. See the official BBTrend explanation.
In Pineify's current preset, both band sets use the selected source and chart context. The source defaults to close, the short length to 20, the long length to 50, and the standard-deviation multiplier to 2. These are the reviewed Pineify defaults, not proof of optimal trading settings.
A hypothetical calculation makes the sign concrete. Suppose the short middle is 100, its lower/upper bands are 96/104, and the long bands are 90/102. The lower-band distance is 6 and the upper-band distance is 2, giving (6 − 2) / 100 × 100 = 4. This is a formula illustration, not market data or a strategy result.

Read sign, distance and color separately
| Histogram property | Meaning in the calculation | Unsupported inference |
|---|---|---|
| Above zero | Positive band-distance difference | Price must rise next |
| Below zero | Negative band-distance difference | A short trade will profit |
| Farther from zero | Larger normalized band-distance difference | A reversal is due |
| Color intensity | Whether the current value moves away from or toward zero | A validated high-probability entry |
In Pineify's drawing logic, positive values that increase or remain equal use the stronger green color; positive values that decrease use the weaker green. Negative values that decrease or remain equal use stronger red; negative values that increase use weaker red. Colors are configurable.
A small change can therefore produce a strong-color bar even when the absolute value is small. Color alone does not establish a strong market trend. A tall bar does not establish overbought/oversold conditions or predict a pullback.
Settings and chart setup
On TradingView, open Indicators and search for BBTrend, checking the publisher and input definitions. Different community versions may change the source, lengths or display behavior.
In Pineify, select the BBTrend preset, inspect its source and 20/50/2 defaults, then generate the script for review in TradingView. Combining calculations in a script does not remove TradingView's plot, runtime and request limits or its subscription restrictions.
Shorter lookbacks change responsiveness and warm-up; longer ones change the baseline and amount of historical averaging. Neither change guarantees fewer false signals. The multiplier changes both sets of bands, so its effect on this difference-of-distances formula is not simply “wider bands mean less sensitive.” Inspect outputs on a saved sample before interpreting a change.
Choose a small set of candidate settings based on the intended holding period, then reserve separate data for evaluation. There is no tested 5/25 day-trading or 20/100 swing-trading recommendation established here.
Turn a reading into a testable rule
A BBTrend interpretation becomes a strategy only after timing, orders and risk rules are explicit. For example, a research hypothesis might allow a long entry after a confirmed-bar crossing above zero, subject to a separately specified price rule. That is a candidate test, not a recommendation or a measured edge.
Record:
- The instrument, chart interval, session and indicator settings.
- Whether decisions use a completed bar and the earliest allowed order fill.
- The entry, exit, size and invalidation conditions.
- Commission, spread/slippage and treatment of gaps.
- The parameter-search sample and a later evaluation sample chosen beforehand.
Compare the strategy with and without BBTrend under identical assumptions. A filter that removes losing trades may also remove winners; report both effects and the resulting sample size. A win-rate change alone does not establish improved expectancy.
For multi-timeframe research, calculate BBTrend in each intended timeframe explicitly and use values that were available at the decision time. A still-developing higher-timeframe bar can change before close. The two lookback lengths within one BBTrend instance do not solve this timing issue.
Divergence and combined indicators
A higher price high with a lower BBTrend high can be labeled a divergence once both comparison points are defined. If swing points need future bars for confirmation, record the later confirmation time rather than drawing an entry at the earlier peak. Divergence may persist while price continues trending.
RSI, volume or an ADX filter can be added as separate hypotheses. Multiple indicators built from the same price history are not independent confirmations. Specify the exact combination and evaluate whether it improves results after costs; no probability claim is justified simply by agreement.
Limits of the calculation
BBTrend depends on past moving averages and standard deviations, so it can lag and repeatedly cross zero in ranges. A small value does not by itself prove low absolute volatility. Different band shapes can offset in the numerator even while price is volatile.
The reviewed formula divides by the short middle band without a zero guard. A zero or near-zero basis, or unusual synthetic/negative-price series, needs special scrutiny; do not treat unstable normalized values as signals. Warm-up and missing input values also affect when the indicator is usable.
The earlier AAPL, TSLA and NVDA anecdotes do not have a reproducible trade record or dataset here. No realized return, avoided loss or validated position-risk percentage is claimed. Define risk from the instrument and account constraints, allowing for fills beyond an intended stop.
Frequently asked questions
Does BBTrend use two timeframes?
Normally it compares two Bollinger Band lengths on one timeframe. Separate timeframe calculations require explicit configuration; two lookback lengths do not automatically provide multi-timeframe analysis.
What are Pineify's BBTrend defaults?
The reviewed preset uses close, short length 20, long length 50 and multiplier 2. Inspect the actual inputs when using another author's version.
Do intense green or red bars mean a strong trend is certain?
No. The color describes the change in the histogram relative to zero. Check the value, price context and full strategy rules; it does not encode a success probability.
Is BBTrend suitable for scalping?
It can be evaluated on short intervals, but lag, turnover, spreads and fill assumptions become especially relevant. No best scalping settings or demonstrated performance are supplied here.


