(FRAMA) Fractal Adaptive Moving Average
May 16, 2020

The (FRAMA) Fractal Adaptive Moving Average indicator provides a multi-layered adaptive moving average system that utilizes fractal price theory to dynamically adjust its responsiveness based on market volatility and noise.
Usage
The Usage section describes how the script can be used, examples should be provided in this section. This section also focuses on how main settings affect the indicator interpretation and output.
The primary objective of the FRAMA is to remain highly reactive during trending periods while flattening out and filtering noise during lateral or choppy price movements. Traders can use this tool to identify trend direction and potential support or resistance levels. Because the script supports up to four concurrent FRAMA lines, users can create "ribbons" or use crossover strategies between different lengths to gauge momentum shifts.
Key applications include:
- Trend Identification: A rising FRAMA indicates bullish momentum, while a falling FRAMA indicates bearish momentum.
- Noise Reduction: During consolidation, the fractal dimension calculation causes the average to slow down, helping to avoid false "whipsaw" signals common in traditional moving averages.
- Crossovers: Utilizing the built-in alert system, traders can monitor when price crosses the primary FRAMA line to signal potential entries or exits.
Details
The Fractal Adaptive Moving Average was originally developed by John Ehlers. It operates on the principle that financial markets are fractal in nature. The script calculates the fractal dimension of price over a specific window by comparing the price range of the full period to the ranges of two half-periods.
The core logic involves:
- Dimension Calculation: It determines the "jaggedness" of the price action.
- Alpha Adaptation: The calculated dimension is used to modify the smoothing exponent (alpha). When the price is moving linearly (trending), the alpha increases to make the average more reactive. When price is moving randomly (range-bound), the alpha decreases, making the average significantly slower and more stable.
- Flexible Parameters: While the original Ehlers version uses specific constants, this implementation allows users to modify the Fast Limit (FC) and Slow Limit (SC) to fine-tune the adaptive range.
Settings
- Choose 1st-4th MA length: Determines the lookback period (N) for each respective FRAMA line.
- Choose MA price source: Selects the price data point used for calculations (e.g., Close, HL2, OHLC4).
- FRAMA lower shift limit (FC): Defines the fastest possible moving average period the indicator can adapt to (corresponds to the "Fast Limit").
- FRAMA upper shift limit (SC): Defines the slowest possible moving average period the indicator can adapt to (corresponds to the "Slow Limit").
FAQ
How do I interpret the FRAMA flattening out?
When the FRAMA line moves horizontally, it indicates that the fractal dimension of the price is high, suggesting a range-bound or noisy market. This is a signal to exercise caution as the trend has lost its directional strength.
Can I use this for crossover strategies?
Yes, the indicator supports up to four different lengths. By enabling multiple plots in the settings, you can look for "golden crosses" or "death crosses" between a fast FRAMA and a slow FRAMA, which often provide more reliable signals than standard EMAs due to the adaptive filtering.
How do I access (FRAMA) Fractal Adaptive Moving Average?
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.