feat(sql): volume-weighted exponential moving average (VWEMA) window function#6651
feat(sql): volume-weighted exponential moving average (VWEMA) window function#6651bluestreak01 merged 3 commits intomasterfrom
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThis PR introduces a VWEMA (Volume-Weighted Exponential Moving Average) window function implementation with alpha-based, period-based, and time-weighted modes. Supporting changes include keyword detection utilities, window context API extension with timestamp type tracking, and comprehensive test coverage. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@CodeRabbit review |
✅ Actions performedReview triggered.
|
[PR Coverage check]😍 pass : 295 / 301 (98.01%) file detail
|
Summary
avg(price, kind, param, volume)signature for computing VWEMA'alpha': Direct smoothing factor (0 < α ≤ 1)'period': EMA-style period (α = 2/(period+1))'second','minute','hour','day'): Time-weighted decay with tau parameterVWEMA Formula
For time-weighted mode:
α = 1 - exp(-Δt / τ)Test plan
🤖 Generated with Claude Code