平均離差 (Mean Deviation)
距離移動平均線平均距離的 QuantNexus 指標頁面。
Route: /quantnexus/indicators/meandeviation/
作用
平均離差(MEANDEVIATION)衡量價格在回看窗口內通常偏離其移動平均基準線的幅度。
公式
平均離差 = average(|價格 - 移動平均線|)
參數
period- 預設20movav- 預設MovingAverageSimple
C++23 API
#include <nonabt/indicators/meandeviation.hpp>
auto meanDev = std::make_unique<nonabt::MEANDEVIATION>(data().close(), 20, "MovingAverageSimple");
常見用法
- 用作基準線周圍的波動率環境衡量標準。
- 與通道系統或突破過濾器配合使用。
- 當你需要直接的平均距離讀數而不是標準差時非常有用。
