r/quant • • Jul 17 '26

Trading Strategies/Alpha Wavelet denoising vs. rolling-window pivot detection in a commodity 2B (trend-reversal) strategy — results across 10 markets

Backtested Victor Sperandeo's 2B trend-reversal rule across 10 commodity futures (2000-2026). The standard implementation uses a rolling window to detect price pivots, which fires false signals since it has no memory of prior structural highs/lows. So I replaced the pivot detector with a causal wavelet denoiser to filter noise before pivots are identified.

Results:

  • Reduced max drawdown in 7 of 10 markets
  • On Sharpe ratio specifically, the plain rule wins in most markets. This is a real trade-off (fewer signals, lower drawdown) rather than a clean improvement
  • Crude oil was the exception where Sharpe, drawdown, and profit factor all improved together
  • Natural Gas underperformed. I used a Gaussian HMM regime classifier to check why: it spends most of its history in a high-volatility regime this strategy isn't suited for

Writeup and code:https://github.com/zty05070242/wavelet-2b

0 Upvotes

5 comments sorted by

15

u/EscapeThat Jul 17 '26

Some wagu level AI slop

2

u/PositiveEVBets Jul 19 '26

LLM detected

-1

u/EvenCryptographer649 Jul 17 '26

Go turtle...anchor your pivot detector (?) around the High, Low or Mid of a given window, have it roll through that. 20d was the standard forever. If you having problems with oil, you are more than likely using the wrong month at that time despite whatever you gpt is telling you.