← Script Marketplace
Open-source scriptindicator/v1

Hull Moving Average

by Kodexius·@kodexius·

Reduce moving-average lag while preserving a smooth view of price direction.

#hma#moving-average#trend
Hull Moving Average chart preview

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
Release notes

Initial classic indicator release.

View current source ↓
Source codempl-2.0View 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

Loading…

No comments yet. Start the discussion.