Arnaud Legoux Moving Average (ALMA): Formula, Calculation & Strategies

26 November 2026
10 min read
Arnaud Legoux Moving Average (ALMA): Formula, Calculation & Strategies
whatsapp
facebook
twitter
linkedin
telegram
copyToClipboard

ALMA (Arnaud Legoux Moving Average) is a weighted moving average which applies a Gaussian (bell-shaped) curve to a given period of price data.

The offset and sigma parameters determine where the curve is placed and how wide it is, respectively. The result is a moving average that is generally less laggy than an SMA of the same period but may let more short-term price action through. 

Key Takeaways

  • ALMA uses Gaussian weighting to balance smoothness and responsiveness, with its offset and sigma settings determining how closely it follows recent price movements
  • The calculation is a little complicated as it uses a Gaussian curve to weight prices. With the commonly used default settings of offset 0.85 and sigma 6, the peak weight sits toward the more recent end of the selected period, rather than at its centre.
  • When the price is above ALMA, it is a bullish signal. Other common strategies include price crossovers and dual ALMA crossovers. 

What is the Arnaud Legoux Moving Average (ALMA)?

Moving averages are probably the first technical indicators every trader studies. But traditional moving averages come with a lot of noise. This is where the Arnaud Legoux Moving Average (ALMA) helps. ALMA is a technical indicator designed to reduce market noise while remaining highly responsive to price movements. Arnaud Legoux and Dimitrios Kouzis-Loukas developed it.

ALMA is not a simple average of previous price data. It actually uses a Gaussian distribution to smooth price data without introducing as much lag as traditional moving averages.

How the ALMA Indicator Works

The weighting is what makes ALMA different. The Simple Moving Average (SMA) gives equal weight to all the prices. The Exponential Moving Average (EMA) gives more weight to recent prices. However, ALMA works differently. It gives different weights to historical prices using a Gaussian curve. The offset setting determines where the curve’s peak sits.

The offset determines where the peak of the Gaussian curve falls within the period. At an offset of 0.5, the peak is at the middle of the period. With the standard default offset of 0.85, the peak shifts toward the more recent end of the period.

The prices closest to that peak get the highest weights, and the weights fall off progressively as you move away from the peak. So the most recent price doesn't necessarily get the highest weight.

ALMA is designed to balance lag and smoothness differently than a conventional moving average. Its responsiveness to price changes varies depending on the period, offset, and sigma you select, and it’s wrong to assume it will be faster or less noisy than an EMA in all market situations.

Like other trend-following moving averages, the ALMA is most useful when the market has developed a clear sustained direction. In a sideways or choppy market, you can get many false crossovers.

You can, of course, apply other filters to your analysis (ADX, price structure, etc.) to prevent you from simply relying on the ALMA crossovers in the case of a weakly trending market.

One potential trend strength filter is to look at the ALMA when ADX(14) is above 25 and the ALMA is sloping in the direction of the intended trade. A rising ALMA versus its value 5 bars prior could be used as a condition for a long, a falling ALMA could be used as a condition for a short.

Readings below 20 would suggest a weak or non-trending market. Readings between 20 and 25 would be in the neutral zone (again, this will depend on your strategy).

This is how ALMA looks on a Nifty Futures on the 30-minute timeframe chart:

The blue line is ALMA and the red line is SMA. The parameter is the same for both moving averages and is set to 50. 

As shown in the chart, the blue ALMA line is more responsive than the red SMA. 

Components of ALMA

The ALMA indicator is based on three primary parameters:

  • Period: This determines the number of price bars used in the calculation. A longer period produces a smoother signal. Smaller periods can be used if the aim is to get quick signals.
  • Offset: This is the offset of the Gaussian curve’s peak within the period. The higher the offset, the more recent the peak will be (shifted toward the most recent bars), and the more responsive the ALMA will be to recent price action. The lower the offset, the more lag there will be (the peak will shift toward older bars).
  • Sigma: It controls the width of the Gaussian curve. In the standard formula (s = N/sigma), where N is the window size. The higher the sigma, the narrower the curve (more weight concentrated around the peak). The lower the sigma, the wider the curve (more evenly distributed weights across the period).

A fairly common default is a window of 9, an offset of 0.85 and a sigma of 6. The charts in this article use a much longer window (50), with the offset and sigma at 0.85 and 6, respectively.

Here is how the settings look on the chart:

ALMA Formula and Calculation 

The formulas used for the calculation of ALMA  are:

m = floor(offset × (N − 1))
s = N ÷ sigma
Weight(i) = exp(−(i − m)² ÷ (2 × s²)), for i = 0 (oldest bar) to N − 1 (newest bar)
ALMA = Σ (Weight(i) × Price(i)) ÷ Σ Weight(i)

Example with the defaults (N = 9, offset 0.85, sigma 6) on Nifty daily closes: m = floor(0.85 × 8) = 6 and s = 9 ÷ 6 = 1.5.

i

Date

Close

Weight

Weight × Close

0

20-Aug

24,231.85

0.0003

8.13

1

21-Aug

24,252.00

0.0039

93.76

2

24-Aug

24,219.05

0.0286

691.83

3

25-Aug

24,334.55

0.1353

3,293.32

4

26-Aug

24,207.75

0.4111

9,952.10

5

27-Aug

24,090.85

0.8007

19,290.44

6

28-Aug

24,175.65

1.0000

24,175.65

7

31-Aug

24,080.40

0.8007

19,282.08

8

01-Sep

24,055.80

0.4111

9,889.64

Total

   

3.5918

86,676.95

Hence, ALMA = 86,676.95 ÷ 3.5918 = 24,131.89.

The 9-bar SMA for the same data is 24,183.10. 

Notice that the highest weight is assigned to 28-Aug (i = 6), rather than the newest observation. This happens because the 0.85 offset places the Gaussian curve’s peak toward the end of the period, but not necessarily on the final bar.

ALMA vs Traditional Moving Averages

Here are the broad differences between the different moving averages

Feature

ALMA

SMA

EMA

Weighting method

Gaussian weighting

Equal weighting

Exponentially decreasing weights

Response to price

Adjustable through offset and sigma

Generally slower to reflect recent changes

Gives greater weight to recent prices

Smoothness

Adjustable through its parameters

Generally smooth

Depends on the period

Lag

Can be reduced by shifting the Gaussian peak towards recent bars

Often higher than a responsive weighted average of the same period

Generally lower than an SMA of the same period

Common use

Trend analysis and trade timing

Identifying broader price trends

Tracking recent price movements

ALMA differs from a conventional moving average in how it allocates weights across the period. It uses Gaussian weighting, which lets the user tweak the balance between smoothness and responsiveness. Of course, no moving average is the best for every security, timeframe, and market condition.

How to Read and Interpret ALMA

ALMA is similar to SMA and EMA in how it's interpreted. If price is trading above the ALMA, that's likely seen as a bullish signal (price is above its weighted average). If it's trading below the ALMA, that's likely to be seen as a bearish signal.

Again, these are just signals and should be taken in context with the prevailing trend, the price action and other technical indicators.

A rising ALMA could indicate an uptrend, and a falling ALMA could indicate a downtrend. However, the ALMA’s slope doesn’t necessarily indicate momentum or the strength of buying or selling pressure.

Traders also monitor price crossovers along with the ALMA’s slope to assess the strength of the prevailing trend.

Trading Strategies Using ALMA

ALMA trading strategies are very similar to SMA strategies. However, we will also use ADX(14) above 25 as a filter. Here are a few common strategies:

  • Price Crossover: For a long trade, enter when a candle closes above the ALMA after the previous candle closed at or below it.
    • Buy at the open of the next candle.
    • Place a stop loss at 1.5 x ATR(14) below the entry price.
    • Exit when a candle closes below the ALMA or when the price reaches a target equal to twice the initial risk, whichever comes first.

For a short trade, reverse the conditions

    • Enter when a candle closes below the ALMA after the previous candle closed at or above it.
    • Your stop would be 1.5 x ATR(14) above the entry price, and you'd exit when a candle closes above the ALMA or when price reaches your target (twice the initial risk), whichever comes first.
  • Dual ALMA Crossover: Use ALMA(20) and ALMA(50).
    • For a long trade, enter on a crossover of ALMA(20) above ALMA(50) when the candle closes. An illustrative stop loss would be placed at 2x ATR(14) below the entry. You'd exit on a crossover of ALMA(20) back below ALMA(50).
    • For a short trade, you'd enter on a crossover of ALMA(20) below ALMA(50), place your stop at 2x ATR(14) above the entry and exit on a crossover of ALMA(20) back above ALMA(50).
  • Pullback to ALMA:

For a long trade, the trend condition is that price is above ALMA and ALMA is above its value 5 bars ago.

    • A pullback setup is a candle whose low is within 0.25 x ATR(14) of ALMA.
    • Enter on the next candle which closes above the prior candle's high.
    • Place the stop loss below the pullback low with an additional 0.5 x ATR(14) buffer.
    • Exit on a candle close below ALMA or when price reaches a target of 2 x initial risk.

For a short trade, simply reverse all of the above.

  • ALMA + RSI confirmation:

For a long trade, use the same entry conditions as the price crossover strategy,

    • Take the signal when RSI(14) is above 55 on the signal candle.
    • Place your stop loss 1.5 x ATR(14) below entry.
    • Exit when RSI(14) falls below 45 or when a candle closes below ALMA.

For a short trade,

    • Take the signal when RSI(14) is below 45 on the signal candle.
    • Place your stop loss 1.5 x ATR(14) above entry.
    • Exit when RSI(14) rises above 55 or when a candle closes above ALMA.

Note: These are illustrative trading rules, not universally validated strategies. The ATR multipliers, RSI thresholds, ALMA periods and ADX filters are configurable parameters. Traders should backtest the rules on the relevant instrument and timeframe, account for brokerage and other transaction costs, and consider slippage before using them in live markets

Risk Management When Trading with ALMA

Risk management is one of the most important aspects of trading when using any indicator. Traders must always use a stop-loss and have a clear target in mind before going for entries. Position sizing is also important to ensure that traders don’t take over-leveraged positions. 

ATR can also help traders set stop-loss distances based on market volatility.

For a long trade, place the stop below a recent swing low or at a predefined multiple of ATR below the entry price.

For a short trade, the stop could be placed above a recent swing high or at a pre-defined multiple of ATR above the entry price. The correct distance will vary depending on the instrument, timeframe, and trading strategy.

Common Mistakes When Using ALMA

One of the most common errors people make when using the ALMA is to treat every crossover as a trade. Like all moving averages, the ALMA can produce false signals when the price is simply moving sideways or ranging around the indicator with no clear trend.

You can reduce your dependence on crossovers by using them alongside trend-strength indicators, price action, and so on.

Another issue is that traders tend to over-optimise ALMA settings, making the indicator perform well on historical data but poorly in live markets. Overfitting ALMA should be avoided.

ALMA Trading Example

Here is an example using ALMA

This is the same 30-min chart of Nifty July futures (18 June to 9 July 2026) with ALMA(50, 0.85, 6). Nifty made a double bottom around 23,940.

While some traders may take a long trade here, we can wait for a candle to close above ALMA. That happened on 1 July 2026, giving a long entry around 24,085.

The stop-loss can be just below the 23,940 support, at 23,920 (risk of 165 points), and the target can be the next resistance zone at 24,350 (reward of 265 points). This gives a risk-to-reward of about 1:1.6. 

The target was reached on 3 July 2026, when the Nifty futures contract opened above the ₹24,350 target level. Assuming an exit at ₹24,350, the gross profit on one lot of 65 units would be 265 × 65 = ₹17,225, before brokerage, exchange charges, taxes and slippage.

Conclusion

The Arnaud Legoux Moving Average (ALMA) is a moving average which uses Gaussian weighting. It has an offset and a sigma which can be adjusted to give you a smoother or more responsive moving average. It can be used to determine the direction of a price trend, spot potential breakouts, and time entries and exits. Like all other moving averages, it is a lagging indicator and can produce false signals, particularly in a sideways market. It should be used in conjunction with other forms of technical analysis and appropriate risk management.

Do you like this edition?