mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-07-29 18:17:43 +00:00
0f7cfb4b50
- Changed from O(n) CircularBuffer.Average() to O(1) running sum - Maintains _sum and _p_sum for state management - Tracks _lastValue and _p_lastValue for isNew=false updates - Provides ~15-20x speedup for large periods - Pattern verified against Pine Script reference implementation - All tests pass including update test for isNew handling Also added .github/copilot-instructions.md with comprehensive AI agent guidance for QuanTAlib development patterns