Free: indicator teardowns, a repaint checker and open-source scripts. No buy/sell signals, ever.

Taught to TradeSystems over signals.

Explainers / Fibonacci Bollinger Bands by Rashad

Fibonacci Bollinger Bands by Rashad, explained from the source

Fibonacci Bollinger Bands (shown on charts as FBB) is an open-source TradingView indicator by Rashad, published in June 2016, with about 33,100 boosts. It draws a centre line and six bands above and six below it, spaced at Fibonacci ratios. This page walks through the published code, says what each part really does, and ends with where it fails. It does not say whether the indicator makes money, and it gives no trades.

Step 1: the centre line

The centre is a 200-bar volume-weighted moving average (VWMA) of the typical price, (high + low + close) / 3. It is not the simple average a normal Bollinger Band uses. Bars with more volume count for more.

The three inputs are the length (200), the price (typical price) and a multiplier (3.0).

Step 2: the width

The width is 3 times the standard deviation of the typical price over the same 200 bars. In Pine that standard deviation is measured around the simple average, not around the volume-weighted centre the bands hang from. When volume is spread evenly the two centres are close; when big moves carry big volume they drift apart.

Step 3: the twelve bands

Each band sits at a fixed fraction of that width: 0.236, 0.382, 0.5, 0.618, 0.764 and 1, above and below the centre. With the default multiplier of 3, that puts the bands at these distances from the centre, in standard deviations:

BandDistance
0.2360.71
0.3821.15
0.51.5
0.6181.85
0.7642.29
1 (red above, green below)3.0

So every band is an ordinary Bollinger Band with a different multiplier. The 0.618 band is the same line as a 1.854 standard-deviation band on a volume-weighted centre. The Fibonacci numbers decide where the lines are drawn; nothing in the code measures price against a Fibonacci level from a swing high or low, the way a Fibonacci retracement does. 0.764 is 1 minus 0.236, not a ratio from the Fibonacci sequence itself.

Step 4: what the code does not do

There are no alerts, no signals and no other timeframe. Every value comes from the current bar and the 199 before it, so the bands do not repaint: once a bar closes, its values stay. On the live bar they move with each tick until the bar closes, as any band does. The upper and lower bands share the same names in the data window (two lines called "0.236", two called "0.382" and so on), so the data window does not say which is which.

What we checked in Python

We ported the script to Python and ran it on invented random-walk prices with a typical move of 1% a bar, volume that rises with the size of the move, and the default settings: 20 runs of 5,000 bars each.

How often price sits outside each band. Share of bars where the typical price closed beyond the band, either side:

BandOutside, portOutside, bell-curve theory
0.23669%48%
0.38249%25%
0.533%13%
0.61820%6%
0.7648%2%
11.3%0.3%

Prices that wander sit outside every band two to four times as often as the textbook bell curve says. A 200-bar window is long, and a wandering price spends long stretches far from its own 200-bar average. Reading a touch of the 0.618 band as rare is wrong on this kind of data: price was beyond it on 1 bar in 5.

The outer band. The high or low reached one of the two outer bands on about 2.3% of bars.

The two centres. The volume-weighted centre sat a median 0.03 standard deviations from the simple average the width is built on, and at most 0.2. On this data the mismatch is small; it grows on markets where volume clusters on big moves.

These figures describe the code on invented data, not any market.

Where it fails

Educational only. Not financial advice. Nothing here is a recommendation to buy or sell anything. Fibonacci Bollinger Bands is by Rashad on TradingView; this page describes its published open-source code in our own words and is not affiliated with the author. Simulation figures come from synthetic random-walk prices and say nothing about how the script behaves on any market.

Also explained: Repaint checker, VWAP, Supertrend, RSI, UT Bot Alerts, Nadaraya-Watson Envelope, Squeeze Momentum, What is repainting on TradingView?, Is TradingView backtesting accurate?, Chandelier Exit, WaveTrend Oscillator, QQE MOD, Pivot highs and lows, Hull Suite, Range Filter, Twin Range Filter, HalfTrend, ZigZag++, SSL Hybrid, CM MacD Ultimate MTF, Volume Profile / Fixed Range, ADX and DI, Support Resistance Channels, Market Structure Break & Order Block, Order Block Finder, Pivot Point SuperTrend, Trendlines with Breaks [LuxAlgo], Divergence for Many Indicators, TradingView script selling terms, Support and Resistance Levels with Break, Liquidity Swings [LuxAlgo], Pine Script errors, Breakout Probability (Expo), Did ChatGPT or Claude write your Pine Sc, Lorentzian Classification, SuperTrend AI (Clustering), Machine Learning Adaptive SuperTrend, Dynamic Swing Anchored VWAP, Support and Resistance Power Channel by , Support and Resistance (High Volume Boxe, Trendline Breakouts With Targets by Char, Breakout Finder by LonesomeTheBlue, Volume Flow Indicator by LazyBear, FVG Order Blocks by BigBeluga, CM_Williams_Vix_Fix by ChrisMoody, Bollinger + RSI Double Strategy by Chart, Ultimate Moving Average MTF by ChrisMood, Candlestick Patterns Identified by repo3, MACD + SMA 200 Strategy by ChartArt, Pine Script v5 to v6, Moving Average Cross Alert, Multi-Timefr, WaveTrend Oscillator [WT] by LazyBear, WaveTrend with Crosses [LazyBear], CM_Price-Action-Bars by ChrisMoody, RSI Candles by glaz, CM RSI-2 Strategy Lower Indicator by Chr, CM Stochastic Multi-TimeFrame by ChrisMo, CM_Ultimate RSI Multi Time Frame by Chri, TonyUX EMA Scalper - Buy / Sell by tux, MACD 4C by vkno422, My Pine Script is valid. What did the va

Next steps

  • Get a script fixed. Compiles but behaves differently live, or changes after a reload? In a Pine Script Audit, an AI model reads every line and writes a report on what to fix for $49, or also fixes those problems for $149. It cannot prove a script is safe.
  • Check your own script. Paste its source into the free repaint checker. It runs in your browser and flags known patterns.
Before you trust its backtest: the Integrity Checklist, $19 one-offBack to Taught to Trade

No TradingView account yet? This affiliate link gives you a $15 coupon toward a paid plan, and we earn a commission if you buy one. The free plan is enough to follow this page.