---
title: hma (HMA)
description: Trend indicator. Standard math aligned with TradingView Pine Script.
---

# `hma` — HMA

> Category: **Trend** · Standard

::: tip For Skill / AI Agent integrations
When you `POST /api/indicators?explain=true`, the response carries a `knowledge` block with this indicator's interpretation rubric. **Pass it to your LLM together with the numeric data** — don't make the LLM guess thresholds from memory. Full rubric lives at the [Chinese page](https://docs.mobiusquant.ai/zh/indicators/hma) (summary_focus / signals / caveats).
:::

This is a trend indicator.
Math is aligned with TradingView Pine Script.

## Parameters

| Parameter | Type | Default |
|------|------|--------|
| `length` | int | `9` |

## Output columns

| Column |
|------|
| `hma` |

## Example call

```bash
curl -X POST -H "Authorization: Bearer mq_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "exchange": "binance",
    "market":   "perp",
    "symbol":   "BTCUSDT",
    "interval": "5m",
    "limit":    100,
    "calc":     [{"name": "hma", "params": {"length": 9}}]
  }' \
  https://api.mobiusquant.ai/api/indicators
```

## Full interpretation guide

The full description, signal interpretation, caveats and analysis focus points are
documented in Chinese at:

[hma (中文详情)](https://docs.mobiusquant.ai/zh/indicators/hma)

## Related indicators

[alligator](./alligator) · [alma](./alma) · [ema](./ema) · [lsma](./lsma) · [mcginley_dynamic](./mcginley_dynamic) · [mobius_trend](./mobius_trend) · [parabolic_sar](./parabolic_sar) · [smc](./smc)

---

_Auto-generated by `scripts/sync-indicators.mjs` from `engine_indicator_knowledge` + engine runtime introspect. Manual edits will be overwritten on next sync._
