Open-source scriptindicator/v1
Arnaud Legoux Moving Average
Use a Gaussian-weighted average to balance responsiveness and smoothness.
#alma#moving-average#trend
Description
The Arnaud Legoux Moving Average applies Gaussian weights across its lookback window. Adjustable offset and sigma values let users tune the balance between a smoother curve and a faster response to recent price action.
Open-source script. Everyone can inspect the source code, use the script on a chart, and save an editable copy.
Release notes
Version history · 1 published version
Version 1CurrentChart updatedArnaud Legoux Moving Average · Aug 31, 2026
Source codempl-2.0View sourceHide source
indicator("Arnaud Legoux Moving Average", { overlay: true });
const length = input.int("Length", 9, { min: 1, max: 500 });
const offset = input.float("Offset", 0.85, { min: 0, max: 1, step: 0.05 });
const sigma = input.float("Sigma", 6, { min: 0.1, max: 20, step: 0.1 });
const source = input.source("Source", "close");
plot(alma(source, length, offset, sigma), { title: "ALMA", color: "#00e676", lineWidth: 2 });
Community discussion
0 comments
No comments yet. Start the discussion.