Levente Szabo

Logo

M.S. Computer Science
New York University 2021

Email: levbszabo@gmail.com

View My LinkedIn Profile

View My GitHub Profile

Systematic FX Alpha from State-Space Neural Networks

Tech Stack: Python, PyTorch, Pandas, NumPy, Matplotlib
Domain: Quantitative Finance, Machine Learning, Algorithmic Trading
Research Paper: 📄 State-Space FX Alpha: Technical Summary (PDF)

Executive Summary

I developed a sophisticated FX trading system that combines deterministic state-space neural networks with confidence-gated signal generation to achieve Sharpe ratios exceeding 2.0 on in-sample data and 1.75 out-of-sample. The system processes hourly FX data across 7 major currency pairs through a world model to predict multi-horizon returns, then uses statistical confidence gating and advanced portfolio construction to generate consistent alpha.

The core breakthrough is using distributional forecasts rather than point estimates. For each currency pair and time horizon (24h, 168h), the model predicts not just expected returns (μ) but also uncertainty (σ), allowing us to compute confidence scores:

z-score = μ / σ

Signal Logic:

Architecture: Deterministic State-Space Networks

Model Components:

The model processes 512-hour sequences across 7 FX majors (EURUSD, GBPUSD, AUDUSD, NZDUSD, USDCAD, USDCHF, USDJPY) using data from 2018-2025.

Advanced Risk Management

Portfolio Construction:

Risk Controls:

Signal Validation: Ventile Analysis

I validated predictive power by sorting forecasts into ventiles (20 equal buckets) based on z-scores:

Performance Results

In-Sample (2019-2024):

Out-of-Sample (2025 YTD):

All results are net of realistic transaction costs (0.9-1.5 pip spreads)

Technical Implementation

Data Pipeline:

Model Training:

Cost Modeling:

Research Contributions

  1. σ-based Risk Management: Using model uncertainty for dynamic position sizing and exits
  2. Multi-horizon Signal Fusion: Systematic combination of 24h/168h forecasts without requiring agreement
  3. Cross-sectional USD Neutrality: Market-neutral FX momentum strategy
  4. Deterministic State-Space Trading: First application to systematic FX alpha generation

This system demonstrates how modern deep learning can be combined with rigorous quantitative finance principles to generate sustainable alpha in competitive FX markets.