离势价格振荡器 (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 值可能表明价格高于其中心平均水平,而负值则可能表明相反。
