StratCraft

赫爾移動平均振盪器 (HMA Oscillator)

HMA 動量擴張的 QuantNexus 指標頁面。

Route: /quantnexus/indicators/hullmovingaverageosc/

作用

HULLMOVINGAVERAGEOSC 衡量價格偏離赫爾移動平均線(HMA)的程度。

公式

振盪器 = 價格 - HMA(period)

參數

  • period - 預設 30
  • _movav - 預設 WMA

C++23 API

#include <nonabt/indicators/hullmovingaverageosc.hpp>
auto hmaOsc = std::make_unique<nonabt::HULLMOVINGAVERAGEOSC>(data().close(), 30, "WMA");

常見用法

  • 使用零軸進行動量確認。
  • 與 HMA 或 HMA 包絡線(envelope bands)配合使用以檢測擴張。
  • 對回調時機和短期均值回歸非常有用。