# 迪克森移動平均線 (DMA)

> 迪克森移動平均線的 StratCraft 指標頁面。

**Route**: `/indicators/dma/`

## 作用

DMA 是一種迪克森風格的移動平均線變體，可根據市場行為調整平滑特性。

## 公式

DMA 是一個自定義移動平均線混合指標，使用週期（period）、增益限制（gain limit）和調和週期（harmonic period）設置。

## 參數

- `period` - 預設 `30`
- `gainlimit` - 預設 `50`
- `hperiod` - 預設 `7`
- `_movav` - 預設 `EMA`
- `_hma` - 預設 `HMA`

## C++23 API

```cpp
#include <nonabt/indicators/dma.hpp>
auto dma = std::make_unique<nonabt::DMA>(data().close(), 30, 50, 7, "EMA", "HMA");
```

## 常見用法

- 用作自適應趨勢線。
- 與價格交叉配合使用。
- 當你需要自定義平滑行為時非常有用。

## 實用模式

DMA 通常用作趨勢跟踪或包絡線風格設置的中心。
