[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-ma-zh-tw":3},"# 移動平均線基礎 (MA)\n\n> 基礎移動平均線的 StratCraft 指標頁面。\n\n**Route**: `\u002Findicators\u002Fma\u002F`\n\n## 作用\n\nMA 是目錄中的基礎移動平均線項目。在此數據集中，它也別名為 SMA 和 SimpleMovingAverage（簡單移動平均線）。\n\n## 公式\n\n`MA = average(n 週期內的價格)`\n\n## 參數\n\n- `period` - 預設 `30`\n\n## C++23 API\n\n```cpp\n#include \u003Cnonabt\u002Findicators\u002Fma.hpp>\nauto ma = std::make_unique\u003Cnonabt::MA>(data().close(), 30);\n```\n\n## 常見用法\n\n- 將 MA 用作趨勢方向的基準。\n- 結合快線和慢線 MA 用於交叉系統。\n- 當你需要一個通用的移動平均線項目时，將其用作更簡潔的參考線。\n"]