Fisher Least Squares Moving Average

Jul 21, 2019

Static chart image
Support and Resistance
Signals
Moving Averages

The Fisher Least Squares Moving Average (FLSMA) indicator provides a smooth, adaptive trend-following filter that aims to reduce lag and minimize overshoots associated with traditional least-squares estimations. By utilizing the inverse fisher transform on a scaled moving average error, this tool offers an alternative approach to line rescaling that maintains price alignment without the volatility of standard correlation-based methods.

Usage

The Usage section describes how the script can be used, particularly as a replacement for standard moving averages or traditional Least Squares Moving Averages (LSMA).

  • Trend Identification: The FLSMA can be used to determine the prevailing market direction. When the price is consistently above the FLSMA, the trend is considered bullish; when below, the trend is considered bearish.
  • Dynamic Support and Resistance: Due to its design, the filter often acts as a dynamic level where price may react during trending periods.
  • Crossover Signals: Users can monitor for price crossovers with the FLSMA line. A crossover above the line suggests a potential bullish entry, while a crossunder suggests a potential bearish exit or short entry.
  • Lag Management: Compared to standard SMA or EMA filters of the same length, the FLSMA aims to track price movements more closely during shifts in momentum, reducing the typical delay found in lagging indicators.

Details

The FLSMA is constructed using a modified line rescaling method. Traditionally, a least-squares moving average fits a polynomial function of degree 1 to the price by reducing the sum of squared differences. The line rescaling technique simplifies this by following these steps:

  1. Calculating the z-score of a linear function.
  2. Multiplying the z-score by the correlation between price and the line.
  3. Multiplying the result by the standard deviation of the price and adding it to a Simple Moving Average (SMA).

The FLSMA differentiates itself by replacing the standard correlation coefficient in step 2 with a value derived from the inverse fisher transform (IFT). It calculates a "scaled smoothed error" (Z) by taking the SMA of the difference between the source price and the previous estimate, divided by the moving average absolute error. Applying the IFT (via the hyperbolic tangent function) to this Z value produces a bounded output between -1 and 1, which serves as a proxy for correlation. This modification helps mitigate significant overshoots, making the filter smoother than a standard LSMA while maintaining responsiveness.

Settings

  • Length: The lookback period used for the Simple Moving Average and standard deviation calculations. Higher values result in a smoother, slower filter, while lower values increase responsiveness to price changes.
  • Source: The price data point used for the calculation (e.g., Close, Open, High, Low, HL2). "Close" is the default and most common setting for trend analysis.

FAQ

How do I use the FLSMA for trade entries? The FLSMA is typically used for trend confirmation or crossover signals. Traders often look for the price to close above the filter for a bullish signal or below the filter for a bearish signal.

How does this differ from a standard LSMA? While both attempt to minimize squared errors, the FLSMA uses a smoothed error scaled by the inverse fisher transform instead of a raw correlation coefficient. This generally results in fewer overshoots and a smoother output during volatile market conditions.

How can I access the Fisher Least Squares Moving Average? 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
ninjatraderNinjaTrader
metatrader4MetaTrader 4/5
thinkorswimThinkorswim

Unlock Unlimited Access to the LuxAlgo Library

Upgrade your plan to get all indicators, strategies, charts, and full access to Quant, our AI agent.

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.