離勢價格振盪器 (Detrended Price Oscillator)
DPO 的 QuantNexus 指標頁面。
Route: /quantnexus/indicators/dpo/
作用
DPO 去除了長期趨勢的影響,以幫助揭示週期性運動和短期轉折點。
公式
DPO = 價格 - 中心移動平均線
參數
period- 預設20movav- 預設MovingAverageSimple
C++23 API
#include <nonabt/indicators/dpo.hpp>
auto dpo = std::make_unique<nonabt::DPO>(data().close(), 20, "MovingAverageSimple");
常見用法
- 使用 DPO 來識別週期性擺動。
- 將其與支撐/阻力或時機規則(timing rules)結合使用。
- 對均值回歸系統非常有用。
實用模式
正的 DPO 值可能表明價格高於其中心平均水平,而負值則可能表明相反。
