动量指标 (MOM)
基本价格动量的 QuantNexus 指标页面。
Route: /quantnexus/indicators/mom/
作用
MOM 将当前价格与 n 个周期前的价格进行比较,以显示方向性动量。
公式
Momentum = Price(t) - Price(t - period)
参数
period- 默认12
C++23 API
#include <nonabt/indicators/mom.hpp>
auto mom = std::make_unique<nonabt::MOM>(data().close(), 12);
常见用法
- 使用零轴交叉来衡量动量转换。
- 比较多个时间框架下的动量扩张。
- 将其与趋势过滤器配对,以避免过早逆势交易(fading strong trends)。
