[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-dpo-zh":3},"# 离势价格振荡器 (Detrended Price Oscillator)\n\n> DPO 的 StratCraft 指标页面。\n\n**Route**: `\u002Findicators\u002Fdpo\u002F`\n\n## 作用\n\nDPO 去除了长期趋势的影响，以帮助揭示周期性运动和短期转折点。\n\n## 公式\n\n`DPO = 价格 - 中心移动平均线`\n\n## 参数\n\n- `period` - 默认 `20`\n- `movav` - 默认 `MovingAverageSimple`\n\n## C++23 API\n\n```cpp\n#include \u003Cnonabt\u002Findicators\u002Fdpo.hpp>\nauto dpo = std::make_unique\u003Cnonabt::DPO>(data().close(), 20, \"MovingAverageSimple\");\n```\n\n## 常见用法\n\n- 使用 DPO 来识别周期性摆动。\n- 将其与支撑\u002F阻力或时机规则（timing rules）结合使用。\n- 对均值回归系统非常有用。\n\n## 实用模式\n\n正的 DPO 值可能表明价格高于其中心平均水平，而负值则可能表明相反。\n"]