Fibonacci Bollinger Bands (FBB)
Jan 3, 2023

The Fibonacci Bollinger Bands (FBB) tool utilizes the metallic mean and Fibonacci sequence to provide a dynamic trend-following envelope that identifies potential support, resistance, and volatility-based breakout points.
Usage
The Usage of the Fibonacci Bollinger Bands (FBB) revolves around identifying market volatility and trend direction through a specialized moving average and its associated bands. Traders can use the center line, known as the Fibonacci Moving Average (FMA), to determine the primary trend; price action consistently above the FMA suggests a bullish environment, while price action below suggests a bearish trend.
The bands act as dynamic price targets and exhaustion zones. For example:
- Mean Reversion: When price reaches the extreme outer bands (such as the 2.618 level), it may indicate an overextended market prone to a pullback or reversal.
- Trend Following: A breakout above a middle band (e.g., 0.618 or 0.786) can signify increasing momentum, often used for entry signals.
- Volatility Filtering: By toggling different Fibonacci levels, users can adjust the sensitivity of the bands to filter out market noise or capture large swing movements.
Details
The script is constructed using two primary mathematical components: the Metallic Mean and the Fibonacci Moving Average (FMA).
- Metallic Mean: This is a type of average calculated by adding the source value to the square root of the sum of the square of the source and 4, then dividing the result by 2. This value serves as the weight for the FMA calculation.
- Fibonacci Moving Average (FMA): Unlike a simple moving average, the FMA uses the metallic mean of the source as the weight for each period in the user-defined length. This creates a more responsive baseline that accounts for specific mathematical ratios.
- Standard Deviation: The bands are projected by calculating the standard deviation of the metallic mean of the source over the specified length. These deviations are then multiplied by various Fibonacci ratios (0.236, 0.382, 0.5, 0.618, 0.786, 1.618, and 2.618) to create the tiered envelope structure.
Original concept and code by @The_Peaceful_Lizard.
Settings
- Source: Determines the price data used for the calculation (e.g., Close, Open, High, Low).
- Length: Sets the lookback period for the Fibonacci Moving Average and the standard deviation calculation.
- High (Group): A series of checkboxes that allow the user to enable or disable specific upper Fibonacci band levels ranging from 0.236 to 2.618.
- Low (Group): A series of checkboxes that allow the user to enable or disable specific lower Fibonacci band levels ranging from 0.236 to 2.618.
FAQ
How does this indicator differ from standard Bollinger Bands? Standard Bollinger Bands use a Simple Moving Average (SMA) and standard deviation of price. The FBB uses a Fibonacci Moving Average (FMA) based on the metallic mean, providing a different weighting logic and band scaling based on Fibonacci ratios.
Can I use the bands for stop-loss placement? Many traders use the Fibonacci levels as dynamic stop-loss markers. For instance, in a bullish trend, a stop-loss might be placed trailing just below the 0.618 or 1.0 "Low" band.
How can I access the Fibonacci Bollinger Bands (FBB)? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.