Price Z-Score 规则衡量最新 close 相对 trailing 均值偏离多少,以 lookback 内标准差为单位。z-score ≤ −threshold 触发 buy;≥ +threshold 触发 sell。
用于价格层面的经典 mean-reversion(fade 极端)。与 Bollinger Bands(固定 σ 带)和 Return Z-Score(对 bar 收益打分,非价格水平)不同。
适用场景
- 平静窗口后 fade 拉伸的 close
- 与 RSI 等振荡指标确认 mean-reversion 入场
- 作 filter:仅在价格异常低时允许 pending buy(或异常高时 sell)
在应用中的设置
在 entry、exit、increase、decrease、reversal 或对应 filters 中添加 Price Z-Score。
- Lookback — close 均值与 σ 的 K 线数(默认 20)
- Z threshold — 触发 buy/sell 的幅度(默认 2)
历史不足或 σ 为 0 时不触发。
提示
- threshold 2 是常见起点;更低会更频繁触发。
- 作过滤器时,触发方向须与 pending signal 一致(invert 会反转)。
- 若只要流动性时段的极端,可配合 策略过滤器。
示例
Entry rules: Price Z-Score lookback 20、threshold 2,配合 RSI 超卖。价格异常低且 RSI 一致时 buy。