Fibonacci MA / EMA's (Fibma / Fibema)

Feb 3, 2020

Static chart image
Support and Resistance
Moving 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 access on the following platforms
tradingviewSymbolTradingView
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

ninjatraderNinjaTrader
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

metatrader4MetaTrader 4/5
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

thinkorswimThinkorswim
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.

Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.

As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.

Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.

Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.

This does not represent our full Disclaimer. Please read our full disclaimer.

© 2026 LuxAlgo Global, LLC.