Introduction
Trading in the Foreign Exchange (FX) market presents a formidable challenge characterized by low signal-to-noise ratios and non-stationarity. This paper introduces WATTNet, a deep learning architecture designed to master "tenor selection" in Non-Deliverable Forwards (NDFs). In NDF contracts, parties agree on a tenor—the duration of the contract (e.g., 30, 60, or 90 days). The core difficulty lies in balancing the higher potential returns of long tenors against their increased risk and volatility, while simultaneously accounting for complex inter-dependencies between dozens of currencies.
The Spatio-Temporal Challenge
Effective FX trading requires modeling two distinct dimensions:
- Temporal Dynamics: How individual currency rates evolve over time.
- Spatial Relationships: How different currencies and economic indicators influence one another.
Traditional models like LSTMs often struggle with long-range dependencies or fail to capture the intricate relational reasoning required for highly multivariate time series.
Methods: WaveATTentionNet (WATTNet)
WATTNet addresses these challenges through a hierarchical approach that decouples temporal and spatial learning.
Hierarchical Architecture
The model is composed of stacked WATTBlocks, each containing:
- Temporal Modules: Utilizing dilated Temporal Convolutional Networks (TCNs), inspired by WaveNet. These provide a massive receptive field, allowing the model to look deep into historical data without the vanishing gradient issues typical of RNNs.
- Spatial Modules: Interleaved self-attention mechanisms allow the model to "attend" to specific relationships between currency pairs at each time step, facilitating relational reasoning across multivariate inputs.
Training via Imitation Learning
Instead of complex reinforcement learning, WATTNet is trained using direct imitation learning. It learns to predict the "optimal greedy tenor"—the contract length that would have yielded the maximum return in hindsight.
Datasets and Features
The study utilizes a comprehensive dataset sourced from the Depository Trust & Clearing Corporation (DTCC), covering 64 FX pairs from 2013 to 2019. The dataset includes 1,123 features per hour, encompassing raw spot rates, technical indicators (e.g., MACD, Bollinger Bands), and expert tenor volumes. These volumes reflect actual trades by human experts, providing a "wisdom of the crowd" signal that helps the model identify profitable market conditions.
Key Results and Analysis
WATTNet significantly outperforms traditional baselines and human expert benchmarks in terms of Return on Investment (ROI).
- ROI Performance: In the USDCNY market, WATTNet achieved a 219.1% ROI, compared to 74.3% for the LSTM baseline and 77.6% for the human "Expert Oracle."
- Decision Stability: Analysis using UMAP reveals that WATTNet develops coherent, "volumetric" internal representations. This leads to stable decision-making, whereas LSTMs often produce fragmented clusters that result in erratic switching between "Buy" and "Hold" actions.
- Robustness: The model maintained profitability during turbulent test periods, demonstrating an ability to generalize across shifting market regimes.
Conclusion and Future Work
WATTNet demonstrates the power of combining dilated convolutions with self-attention for complex financial time series. While highly effective at tenor selection, future iterations could incorporate "rolling" training to better handle extreme regime shifts and address capital allocation through order sizing. Additionally, multi-head attention mechanisms may further enhance the model's ability to track simultaneous complex currency relationships.
Summary updated