ALMA
Indicator
The Arnaud Legoux moving average is a weighted average of the last 9 closes. The weights are a bell curve that peaks toward the newest bars.
Created by Arnaud Legoux and Dimitrios Kouzis-Loukas, 2009. Reviewed by the ChartLabs team, updated Nov 2026.
Price is under the ALMA.
ALMA 65,451.7
Price is under the ALMA.
ALMA 65,451.7
Illustration on simulated data.
Arnaud Legoux moving averageWhat is the ALMA indicator?
ALMA draws one blue line (#2962FF, 1 px) on the price chart. The defaults are window size 9, offset 0.85, sigma 6 and source close.
The weights are a Gaussian bell. The offset places the peak: 0.85 puts it near the newest bar, 0.5 would put it in the middle of the window. Sigma controls how tight the bell is. The average is the weighted sum of the last 9 source values divided by the sum of the weights. The oldest bar in the window is the left side of the bell. The first value appears on record 8, when the window is full. If any bar in the window is missing, that average is blank.
A peak near the newest bars makes ALMA follow price more closely than a simple average of the same length, and the bars in the tail still count. It remains an average of the past.
Offset is not a shift
Offset moves the peak of the weights inside the window. It does not draw the line forward the way the Alligator offsets do.
Sigma 6
A smaller sigma tightens the bell on the peak. A larger one spreads the weight toward a simple average.
ALMA signalsFive patterns to know.
Close above ALMA
The close is above the weighted average of the last 9 closes.
Close under ALMA
The close is under that average.
Close crosses ALMA
Price has moved through the weighted average.
Price riding the line
The close stays near the average. The bell is following a quiet market.
A pullback to the line
Price dips toward the average and closes back above it. Traders often want the line itself to be rising.
ALMA formulaHow it is calculated.
Place the peak
The window is 9. The peak sits at offset times 8, so 0.85 times 8, counting the oldest bar as 0. The width is 9 / 6.
Weight every bar
Each bar in the window gets a Gaussian weight from that peak and width.
Divide
The average is the weighted sum of the source divided by the sum of the weights. The first full window ends on record 8.
ALMA settingsEvery setting, explained.
| Setting | Default | Range | What it changes |
|---|---|---|---|
| Window Size | 9 | 1 to 2,000 | Bars in the average. The Signal lens on this page changes this. |
| Offset | 0.85 | 0 to 1 | Where the bell peaks. 1 is the newest bar, 0 is the oldest. The step is 0.01. |
| Sigma | 6 | 0.1 to 100 | How tight the bell is. The step is 0.1. |
| Source | Close | Any price, or volume | The values being averaged. |
| Line | Blue #2962FF, 1 px | Fixed | One line on the price chart. |
- Setting
- Window Size
- Default
- 9
- Range
- 1 to 2,000
- What it changes
- Bars in the average. The Signal lens on this page changes this.
- Setting
- Offset
- Default
- 0.85
- Range
- 0 to 1
- What it changes
- Where the bell peaks. 1 is the newest bar, 0 is the oldest. The step is 0.01.
- Setting
- Sigma
- Default
- 6
- Range
- 0.1 to 100
- What it changes
- How tight the bell is. The step is 0.1.
- Setting
- Source
- Default
- Close
- Range
- Any price, or volume
- What it changes
- The values being averaged.
- Setting
- Line
- Default
- Blue #2962FF, 1 px
- Range
- Fixed
- What it changes
- One line on the price chart.
Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.
ALMA strategiesUse it in 3 setups.
Side of the line as the bias
Above the line, price is above the weighted average. Traders often use that as a filter.
A pullback that holds the line
The line is the average, not a floor. A close back through it is the part that matters, and it fails often in a range.
Cross as the trigger
A cross is price moving through the bell. Many traders want the line's slope on the same side.
ALMA mistakesCommon mistakes.
Treating every touch as an entry
A short window sits close to price, so touches are common and most of them are not a setup.
Pushing offset to 1 and sigma very small
The bell then sits on the newest bar and the line almost is the price. Crosses become meaningless.
Expecting a long window to turn early
Even with the peak near the newest bar, the tail of the window is old prices. A long window still lags.
ALMA combinationsPair it with these.
ALMA + EMA 9
An exponential average of the same length, which weights the newest bar differently.
ALMA + SMA 9
Equal weights, so you can see what the bell changed.
ALMA + ATR
ATR helps judge whether a dip to the line is a normal bar or a large one.
ALMA + RSI
RSI adds a momentum read when price is stretched away from the average.
ALMA FAQQuestions traders ask.
What are the default ALMA settings?
Window 9, offset 0.85, sigma 6, source close.
What does offset 0.85 do?
It puts the peak of the Gaussian weights near the newest bar. 0.5 would centre the bell. 0 would peak on the oldest bar.
What does sigma do?
It sets the width of the bell. The width used in the formula is the window divided by sigma. Smaller sigma, tighter bell.
When does the line start?
On record 8 with a window of 9, once every bar in the window exists. A missing value anywhere in the window blanks that average.
Is the offset a forward shift?
No. The Alligator offsets draw a line to the right. ALMA's offset only moves the weight inside the bars already in the window.
Is ALMA leading or lagging?
Lagging. It is a weighted average of past values. The peak sits near the newest of those, which is still the past.
Does ALMA repaint?
No. A closed bar keeps its value. The live bar moves until it closes.
What timeframe can I use?
Any. A window of 9 is short on a one-minute chart and short on a daily chart too. Match the window to the swings you care about.
Who created ALMA?
Arnaud Legoux and Dimitrios Kouzis-Loukas, 2009.
Related indicatorsMore trend tools.
All trend indicatorsTry ALMA on a live chart.
Free. No download.
Works in your browser and on iPhone too.