StratCraft

百分比價格振盪器 (PPO)

歸一化移動平均線價差的 QuantNexus 指標頁面。

Route: /quantnexus/indicators/ppo/

作用

PPO 衡量兩條移動平均線之間的百分比差異。

公式

PPO = ((EMA(period1) - EMA(period2)) / EMA(period2)) * 100

參數

  • period1 - 預設 12
  • period2 - 預設 26
  • _movav - 預設 ExponentialMovingAverage
  • period_signal - 預設 9

C++23 API

#include <nonabt/indicators/ppo.hpp>
auto ppo = std::make_unique<nonabt::PPO>(data().close(), 12, 26, "ExponentialMovingAverage", 9);

常見用法

  • 使用信號線進行交叉進場和出場。
  • 比較具有不同價格規模的資產之間的價差。
  • 將其與趨勢確認或動量過濾器配合使用。