[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-dma-zh-tw":3},"# 迪克森移動平均線 (DMA)\n\n> 迪克森移動平均線的 StratCraft 指標頁面。\n\n**Route**: `\u002Findicators\u002Fdma\u002F`\n\n## 作用\n\nDMA 是一種迪克森風格的移動平均線變體，可根據市場行為調整平滑特性。\n\n## 公式\n\nDMA 是一個自定義移動平均線混合指標，使用週期（period）、增益限制（gain limit）和調和週期（harmonic period）設置。\n\n## 參數\n\n- `period` - 預設 `30`\n- `gainlimit` - 預設 `50`\n- `hperiod` - 預設 `7`\n- `_movav` - 預設 `EMA`\n- `_hma` - 預設 `HMA`\n\n## C++23 API\n\n```cpp\n#include \u003Cnonabt\u002Findicators\u002Fdma.hpp>\nauto dma = std::make_unique\u003Cnonabt::DMA>(data().close(), 30, 50, 7, \"EMA\", \"HMA\");\n```\n\n## 常見用法\n\n- 用作自適應趨勢線。\n- 與價格交叉配合使用。\n- 當你需要自定義平滑行為時非常有用。\n\n## 實用模式\n\nDMA 通常用作趨勢跟踪或包絡線風格設置的中心。\n"]