Clarity Markets
ENEnglish
More languages coming soon
Opens in a new tab

Arnaud Legoux moving average

A moving average that weights prices along a bell curve, aiming for a smooth line that still keeps up with price.

What the ALMA is.

A moving average that uses a bell curve to decide which prices matter most.

The Arnaud Legoux moving average, or ALMA, was developed by Arnaud Legoux and Dimitrios Kouzis-Loukas in 2009. It aims to be both smooth and responsive.

Instead of weighting prices equally, or in straight steps, it weights them along a bell curve. The peak of the curve sits towards the most recent prices.

Prices near the peak count most. At the usual offset of 0.85, the newest bar still carries a large weight. The oldest prices count very little. Moving the peak and changing its width changes how the line behaves.

The Arnaud Legoux moving average following price with little lag and a smooth lineALMA (9, 0.85, 6)The Arnaud Legoux moving average following price with little lag and a smooth lineALMA (9, 0.85, 6)
Illustration on generated prices, not a real market. An ALMA with a 9-bar window, offset 0.85 and sigma 6 (orange). The line follows price closely through the rise and the fall while staying smooth.
TypeTrend indicator, drawn on the price chart
Built fromA bell-curve (Gaussian) weighting of the closes in a window
Created byArnaud Legoux and Dimitrios Kouzis-Loukas, in 2009
Best known forA smooth line with little lag, tuned by its offset and sigma
On MetaTrader 5Not built in: added as a custom indicator

How it is calculated.

Three settings shape the bell curve. The custom indicator does the maths for you.

01

Choose the window.

The window is how many bars the average covers. The usual starting setting is 9 bars.

02

Place the peak with the offset.

The offset, between 0 and 1, sets where the curve peaks. At 0.85 it sits close to the newest bars, so the line stays responsive.

03

Set the width with sigma.

Sigma sets how wide the bell is. A larger sigma makes the curve narrower, so fewer bars carry most of the weight.

04

Weight and average.

Each close is multiplied by its weight from the curve. The total is divided by the sum of the weights.

Peak position m = offset × (window − 1)
Width s = window ÷ sigma
Weight of bar i = exp(−(i − m)² ÷ (2 × s²)), with i = 0 for the oldest bar
ALMA = Σ(weight × close) ÷ Σ weight
SettingLower valueHigher value
WindowFaster, noisier lineSlower, smoother line
OffsetSmoother, more lagMore responsive, less smooth
SigmaWider curve, smoother lineNarrower curve, sharper line

How to read it.

How traders use the ALMA. None of these is a signal on its own.

Direction of the line.

A rising ALMA describes upward momentum, and a falling one downward momentum. Because the line is smooth, its turns are fairly clear.

Price against the line.

Price holding above the ALMA suggests buyers led the recent move. Price below it suggests sellers did. In a sideways market, price crosses the line often, and most of those crossings mean little.

Two ALMAs.

Some traders plot a short and a long ALMA and watch where they cross, as they would with any pair of averages.

Tuning with care.

Small changes to the offset or sigma can change the line a lot. Change one setting at a time and compare the results on past charts.

Common mistakes.

Where traders new to the ALMA most often go wrong.

Tuning the settings until the past looks perfect. Settings that fit old prices exactly often fit new prices badly.

Pushing the offset close to 1 for speed. The line becomes more responsive, but also noisier.

Assuming low lag means no lag. The ALMA is still an average of past prices.

Installing a custom indicator without checking it. Different versions can use slightly different formulas or starting settings.

Using it on MetaTrader 5.

The ALMA is not one of MT5’s built-in indicators. You add it as a custom indicator on the desktop app.

01

Open the Toolbox.

In MetaTrader 5 for desktop, open the Toolbox window from the View menu and select the Code Base tab.

02

Find an ALMA.

Find an Arnaud Legoux moving average, often listed as ALMA, in the Code Base and download it. MT5 adds it to your terminal.

03

Add it to a chart.

Open the Navigator, find it under Indicators, and drag it onto the chart.

04

Check the settings.

Enter the window, offset and sigma. A window of 9, an offset of 0.85 and a sigma of 6 are the usual starting values.

Custom indicators are written by third parties, not by Clarity. Check the source and reviews before you use one, and test it on the free demo first. They run on MT5 for desktop, not on the web or mobile apps. This guide is for education only and is not investment advice.

Questions, answered.

What traders ask most about the Arnaud Legoux moving average.

01Who created the ALMA?
Arnaud Legoux and Dimitrios Kouzis-Loukas developed it in 2009.
02What do the offset and sigma do?
The offset sets where the bell curve peaks, from the oldest bar at 0 to the newest at 1. Sigma sets how wide the curve is.
03What are the usual settings?
A window of 9, an offset of 0.85 and a sigma of 6. Treat them as a starting point, not a rule.
04Is it built into MT5?
No. It is added as a custom indicator on MT5 for desktop. The built-in simple and exponential moving averages are alternatives.
05Can I practise with it first?
Yes. Install it on MT5 for desktop with a free demo account and watch it on live prices with practice money.

Practise it on a demo.

Install the ALMA on a free MT5 demo and try different offsets and sigmas before you trade with real money.

Trading CFDs on a live account puts your capital at risk and you can lose money. A demo does not.

CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. 80% of retail investor accounts lose money when trading CFDs.