[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-dpo-zh-tw":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"]