百分比变动 (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);
常见用法
- 用于以百分比形式比较动量。
- 有助于对具有不同价格规模的资产进行波动归一化。
- 与趋势或波动率过滤器配合使用,以获得更清晰的解读。
