SMA 3-987 Fibonacci
Aug 15, 2016

The SMA 3-987 Fibonacci indicator provides a comprehensive suite of thirteen moving averages based on the Fibonacci sequence to help traders identify multi-layered trend directions and support/resistance levels.
Usage
The SMA 3-987 Fibonacci tool can be used to visualize the market trend across various time horizons simultaneously. By plotting multiple Simple Moving Averages (SMAs) based on Fibonacci numbers, traders can observe "ribbon" effects; when the lines are fanning out, it indicates a strong trend, while convergence suggests potential consolidation or reversal.
Example use cases:
- Trend Confirmation: Use the faster SMAs (e.g., lengths 3, 5, 8) to identify short-term momentum and the slower SMAs (e.g., 610, 987) to establish the long-term bias.
- Dynamic Support and Resistance: Fibonacci-based moving averages often act as areas of price interest where pullbacks may find support or rallies may find resistance.
- Crossover Signals: The script includes built-in logic for alerts when the fastest MA (3) crosses the MA (5), signaling potential immediate shifts in momentum.
Details
This script implements a series of Simple Moving Averages using lengths derived from the Fibonacci sequence: 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, and 987. Note that in this specific implementation, the 55-period calculation utilizes an Exponential Moving Average (EMA) for increased sensitivity at that specific interval, while all others remain standard SMAs. The varying line thicknesses in the plots help visually distinguish between shorter-term and longer-term cycles on the chart.
Settings
- Source: Determines the price data used for the moving average calculations (e.g., Close, Open, High, Low).
- Lengths 0-12: These inputs allow you to customize the periods for each of the thirteen moving averages. By default, they are set to Fibonacci numbers ranging from 3 to 987.
FAQ
How do I use the SMA 3-987 Fibonacci for trend analysis?
You can observe the stacking order of the lines. In a strong uptrend, the shorter-period lines (lower numbers) will typically be positioned above the longer-period lines.
What happens when the moving averages converge?
Convergence, or the "squeezing" of the lines together, often indicates a period of low volatility or a potential trend change, as various timeframe averages are agreeing on the same price point.
How can I access this indicator?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
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.

