AroonOscillator 接受 MAX_PERIOD,但无法保留其所需的周期 + 1 窗口

作者: wbizmo创建于 2026年9月15日更新于 2026年9月15日

The buffers are currently defined with capacity MAX_PERIOD, not MAX_PERIOD + 1:

rust
high_inputs: ArrayDeque<f64, MAX_PERIOD, Wrapping>,
low_inputs: ArrayDeque<f64, MAX_PERIOD, Wrapping>,

This means the public maximum period and the internal storage invariant disagree.

内容来源: nautechsystems/nautilus_trader