簡單移動平均振盪器 (SMA Oscillator)
價格偏離 SMA 的 QuantNexus 指標頁面。
Route: /quantnexus/indicators/movingaveragesimpleosc/
作用
MOVINGAVERAGESIMPLEOSC 衡量價格偏離簡單移動平均線(SMA)的程度。
公式
振盪器 = 價格 - SMA(period)
參數
period- 預設30
C++23 API
#include <nonabt/indicators/movingaveragesimpleosc.hpp>
auto smaOsc = std::make_unique<nonabt::MOVINGAVERAGESIMPLEOSC>(data().close(), 30);
常見用法
- 使用零軸來判斷價格相對於基準線的擴張程度。
- 將其與趨勢方向或更高時間框架的過濾器配合使用。
- 對均值回歸和回調設置非常有用。
