*I built this purely out of curiosity; in practice the model's edge is negligible (hello, Efficient Market Hypothesis).*
Raw price data is full of high-frequency noise that hides the actual trend. To clean it up without peeking into the future, I used causal Daubechies-8 wavelet denoising (db8, level 4, soft thresholding over a 256-day sliding window).
The model is an extended LSTM (xLSTM). It mixes mLSTM blocks, which have matrix-valued memory, with sLSTM blocks, which use exponential gating for sharp state changes, plus causal convolution, group normalization, and gated MLP residuals. It takes in 50+ stationary features covering returns, trend, momentum, volatility, volume, macro indicators (shifted for publication lag), NYT headline sentiment, and the VIX, so it learns how the market moves instead of memorizing price levels.
The big lesson: a fancy architecture is worthless if your pipeline leaks the future. Causal denoising and walk-forward validation mattered more than the xLSTM itself.