Open-source scriptindicator/v1
Hull Moving Average
Reduce moving-average lag while preserving a smooth view of price direction.
#hma#moving-average#trend
Description
The Hull Moving Average combines weighted averages to create a smooth line with less lag than many traditional moving averages. Changes in its slope are often used to study shifts in short-term trend direction.
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 updatedHull Moving Average · Aug 31, 2026
Source codempl-2.0View sourceHide source
indicator("Hull Moving Average", { overlay: true });
const length = input.int("Length", 9, { min: 2, max: 500 });
const source = input.source("Source", "close");
plot(hma(source, length), { title: "HMA", color: "#7c4dff", lineWidth: 2 });
Community discussion
0 comments
No comments yet. Start the discussion.