All indicators

Fibonacci MA / EMA's (Fibma / Fibema)

Feb 3, 2020

Static chart image
Support and ResistanceMoving Averages

The Fibonacci MA / EMA's indicator provides a unique approach to moving averages by using lengths derived from Fibonacci ratios (0.236, 0.382, 0.500, 0.618, 0.764, and 1.000) rather than standard integer sequences.

Usage

The indicator can be used to identify support and resistance levels across any timeframe. It features two primary sets of moving averages:

  • Tiny Fibma / Fibema: Lengths 24, 38, 50, 62, 76, and 100.
  • Big Fibma / Fibema: Lengths 236, 382, 500, 618, 764, and 1000.

Users can monitor price action relative to these levels. For instance, the crossing of specific pairs (e.g., 24/76 or 236/764) generates visual "clouds"—lime for bullish crossovers and red for bearish crossunders. Additionally, a specific bar coloring logic is applied based on the 500-period moving average:

  • Bullish: A yellow bar appears when price closes above the 500 MA, followed by lime/orange coloring if it sustains that level.
  • Bearish: A purple bar appears when price closes below the 500 MA, followed by standard coloring if it remains below.

Details

Unlike traditional Fibonacci sequences based on the additive principle (1, 1, 2, 3, 5, etc.), this script utilizes lengths calculated by multiplying base factors of 100 and 1000 by standard Fibonacci retracement ratios. This results in non-standard moving average periods that frequently align with significant market structural points. The script also includes a Multi-Timeframe (MTF) selection framework, allowing users to project higher timeframe moving averages onto their current chart with optional smoothing and non-repainting modes.

Settings

General Settings

  • ON = SMA, OFF = EMA: Toggles the calculation method between Simple Moving Averages and Exponential Moving Averages.
  • Barcolor X (E)MA 500?: Enables or disables the custom bar coloring logic based on the 500-period MA.

HTF Selection

  • Higher Timeframe Selection: Choose between "None", "Discrete Steps", "Multiple Of Current TF", or a "Fixed TF".
  • Multiple of Current TF: Sets the multiplier for the higher timeframe if the multiple option is selected.
  • Fixed TF: Specifies a specific timeframe (e.g., Daily, Weekly) to fetch data from.
  • Repainting HTF: Toggles between repainting and non-repainting (lookahead) data fetching for HTF lines.
  • Smooth Higher Timeframes: Applies smoothing to the HTF lines to reduce "staircase" effects.
  • Smoothing Length: Adjusts the intensity of the HTF smoothing (1 to 3).

Visuals

  • Labels + Values: Toggles visibility for labels and price values for both the Tiny and Big series.
  • Higher TF Label Size: Sets the font size for the timeframe labels on the chart.
  • Higher TF Labels Offset: Adjusts the horizontal displacement of labels from the current bar.

FAQ

How do I use the "Tiny" vs "Big" moving averages?

The Tiny series is generally suited for short-term trend identification and scalp entries, while the Big series acts as significant macro support and resistance levels often respected on daily or weekly charts.

What is the difference between SMA and EMA in this script?

SMAs weight all data points equally, providing a smoother but slower response. EMAs give more weight to recent prices, making them more responsive to current price action.

How can I access Fibonacci MA / EMA's?

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.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.