# 平均值 (ARITHMETICMEAN)

> 用于算術平均聚合的 StratCraft 指標頁面。

**Route**: \`/quantnexus/indicators/arithmeticmean/\`

## 功能介紹

ARITHMETICMEAN 計算回顧期內的簡單算術平均值。它是一個基礎實用指標，通常用作基準。

## 公式

\`Arithmetic Mean = (P1 + P2 + ... + Pn) / n\`

## 參數

- \`period\` - 默認 \`14\`

## C++23 API

\`\`\`cpp
#include <nonabt/indicators/arithmeticmean.hpp>
auto avg = std::make_unique<nonabt::ARITHMETICMEAN>(data().close(), 14);
\`\`\`

## 常見用法

- 用作基準平均線。
- 結合偏差或離散邏輯使用。
- 可作為自定義指標的簡單中心線。

## 實戰模式

算術平均值通常用作應用更高級信號邏輯之前的首層平滑處理。
