Skip to content
All library documents

TimeFound: Multi-Scale Transformer Forecasting Across Domains

Article MQL5 articles

Summary

The article explains TimeFound, a Transformer-based foundation model designed to forecast time series across domains, including financial data. Its central preprocessing idea is multi-scale patching: segments at several resolutions are projected into a shared latent space so the model can represent short fluctuations and longer patterns together. The pipeline also uses series normalization, masks for padded data, relative-position attention, an encoder-decoder structure, and autoregressive prediction.

Training combines point-error and quantile losses, with the latter intended to represent forecast uncertainty. The described pretraining data spans real and synthetic series at different frequencies, including financial, energy, temperature, and sales examples. The article begins an MQL5 implementation but focuses on the preprocessing module and leaves remaining components for a follow-up. It gives no measured forecasting performance or evidence that transfer to new financial tasks succeeds without fine-tuning, so the claimed generalization remains a framework motivation rather than a demonstrated trading result.

Key ideas

  • TimeFound uses patches at multiple scales to represent both local changes and longer-term structure.
  • Patch representations are projected and aligned before cross-scale attention.
  • An encoder-decoder Transformer uses relative positions and causal decoding for autoregressive forecasts.
  • Training combines squared-error and quantile losses to model point forecasts and uncertainty.
  • The article outlines diverse pretraining data but reports no forecast-performance evaluation.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.