百分比變動 (Percent Change)
滾動百分比變動的 QuantNexus 指標頁面。
Route: /quantnexus/indicators/pctchange/
作用
PCTCHANGE 衡量選定回看週期內價格的百分比變動。
公式
PctChange = ((Price(t) - Price(t - period)) / Price(t - period)) * 100
參數
period- 預設30
C++23 API
#include <nonabt/indicators/pctchange.hpp>
auto pctChange = std::make_unique<nonabt::PCTCHANGE>(data().close(), 30);
常見用法
- 用於以百分比形式比較動量。
- 有助於對具有不同價格規模的資產進行波動歸一化。
- 與趨勢或波動率過濾器配合使用,以獲得更清晰的解讀。
