Manuscript Offprint

arXiv:2610.02866

DIVINE: Simple Cross-Market Stock Pretraining via Diverse Indicator Reconstruction

Kuan-Yu Chen, Shu-Cheng Zheng, Yu-Chen Den, Wei-Cheng Liao, Tien-Hao Chang

ABSTRACT

Financial time-series pretraining typically learns from masked observations, contrastive relations, or future outcomes—yet existing objectives struggle to simultaneously avoid future-supervision uncertainty and maintain return-prediction alignment. We propose DIVINE (DIVerse Indicator rEconstruction), a simple cross-market pretraining framework that reconstructs technical indicators from raw OHLCV history. Computed from observed price-volume history, technical indicators provide consistently defined supervision across markets while summarizing diverse market dynamics with established relevance to return prediction. Pretrained jointly on six-equity market datasets, DIVINE reconstructs 77 targets derived from 16 standard indicators and transfers only the learned encoder to downstream stock ranking. Across all six markets, DIVINE achieves the strongest average portfolio performance with a lightweight 0.05M-parameter encoder, outperforming pretraining baselines and matching or exceeding substantially larger financial foundation models, while remaining robust and data-efficient. Systematic analyses show that indicator diversity and market diversity provide complementary gains in transfer. Together, these results suggest that supervision design and cross-market diversity—rather than model scale—are the key drivers of strong, transferable financial representations.

1 INTRODUCTION

Stock return prediction is a long-standing challenge in quantitative finance, particularly in cross-sectional settings where models must rank assets by expected future returns under highly non-stationary market dynamics (Azariadis & Smith, 1998; Avramov, 2002; Hu et al., 2025) and low signal-to-noise conditions (Rapach et al., 2010; Gu et al., 2020; Caner & Daniele, 2025). A key difficulty is that equity markets differ in their cross-sectional and temporal structure, which strongly shapes return predictability (Feng et al., 2019; Hsu et al., 2021; Li et al., 2024). Models trained on a single market may therefore specialize to its market-specific regularities, limiting their ability to transfer across regimes and markets. Learning reusable representations across markets is thus appealing: it can capture recurring price-volume structure across financial systems while reducing dependence on labeled data from any single market.

Pretraining offers a natural route toward such transferable representations, but its effectiveness depends critically on the supervision objective. Existing approaches largely reconstruct masked prices (He et al., 2022; Nie et al., 2022; Xia et al., 2024; Chen et al., 2025; Wang et al., 2025), learn contrastive relations between sequences (Yue et al., 2022; Liu & Chen, 2024; Lee et al., 2026), predict future prices autoregressively (Ding et al., 2025; Zhu et al., 2025; Shi et al., 2025), or solve stock-specific pretext tasks (Wang et al., 2025). While effective, existing objectives often expose a tension between future-supervision uncertainty and return-prediction alignment. Objectives based on future prices or returns are naturally aligned with prediction, but their targets depend on stochastic future market realizations. By contrast, objectives constructed solely from past observations avoid this source of uncertainty, but offer no explicit link between the pretraining objective and future

∗^{*}Corresponding Author.

†^{\dagger}Work performed while at SinoPac Holdings.

return prediction. This raises a central question: what form of past-only supervision can be directly aligned with future-return prediction?

We explore technical indicators as such a supervision signal. Computed purely from past price-volume observations, they summarize diverse aspects of market dynamics—including trend, volatility, momentum, relative price positioning, directional movement, and price-volume interaction (Wilder, 1978; Lambert, 1980; Murphy, 1999; Appel, 2005)—with definitions that remain consistent across markets. Such price-volume transformations have long served as building blocks for predictive alpha factors in quantitative finance (Kakushadze, 2016; Yang et al., 2020; Fang et al., 2020; Feng et al., 2020), grounding their relevance to future-return prediction and making them natural candidates for return-aligned supervision. We therefore ask whether reconstructing a diverse indicator space can exploit this predictive structure to learn representations that transfer beyond the indicator targets themselves.

We propose DIVINE (DIVerse INdicator rEconstruction), a simple cross-market pretraining framework using diverse technical-indicator reconstruction. Given raw OHLCV sequences, DIVINE jointly reconstructs 77 targets derived from 16 standard technical indicators across multiple period configurations. All targets are reconstructed from a shared latent representation, encouraging the encoder to capture price-volume structure that supports diverse market summaries. We jointly pretrain the encoder on six international equity markets, discard the reconstruction head, and transfer only the learned encoder to cross-sectional return ranking in each target market. Technical indicators are thus used only during pretraining and are not required as downstream inputs. We summarize our contributions as follows:

• Technical-indicator reconstruction for representation learning. We introduce DIVINE, a cross-market pretraining framework that reconstructs a diverse space of technical indicators computed from past OHLCV history to learn transferable financial representations. Rather than using technical indicators directly as downstream features, DIVINE uses them only as pretraining targets to shape a latent representation that transfers to stock ranking.

• Strong performance with lightweight and data-efficient pretraining. Across six equity markets, DIVINE achieves the strongest average portfolio performance with a lightweight 0.05M-parameter encoder, outperforming pretraining methods spanning diverse supervision paradigms, and matching or exceeding financial foundation models pretrained on substantially larger external corpora with approximately 490×490\times fewer parameters. It further remains robust across encoder architectures and downstream settings. Beyond strong portfolio performance, DIVINE is remarkably efficient: it surpasses full-data pretraining baselines using only 10% of the pretraining corpus, and exceeds full-data training from scratch with only 5% of downstream labels.

• Indicator and market diversity jointly drive transfer. Through systematic ablations and transfer analyses, we show that the learned representation outperforms both direct indicator features and the reconstructed indicators themselves. Broader indicator type coverage contributes substantially more than adding period variants, while even pretraining without the target market still recovers 64% of the single-market-to-joint improvement. These results establish indicator diversity and market diversity as complementary drivers of transferable financial representations.

References (67)

  • Financial intermediation and regime switching in business cycles
  • Deep learning based residuals in non-linear factor models: Precision matrix estimation of returns with low signal-to-noise ratio (opens the publisher in a new tab)
  • Mixture of experts with retrieval-augmented representation for modeling diversified stock patterns (opens the publisher in a new tab)
  • DHMoE: Diffusion generated hierarchical multi-granular expertise for stock prediction
  • Integrating inductive biases in transformers via distillation for financial time series forecasting
  • Delphyne: A pre-trained model for general and financial time series (opens arXiv in a new tab)
  • Stockmixer: A simple yet strong MLP-based architecture for stock price forecasting
  • Alpha discovery neural network based on prior knowledge (opens arXiv in a new tab)
  • Neural network-based automatic factor construction
  • Enhancing stock movement prediction with adversarial training (opens arXiv in a new tab)
  • Temporal relational ranking for stock prediction
  • Taming the factor zoo: A test of new factors (opens the publisher in a new tab)
  • Empirical asset pricing via machine learning
  • Masked autoencoders are scalable vision learners
  • Fingat: Financial graph attention networks for recommending top-K profitable stocks
  • Fintsb: A comprehensive and practical benchmark for financial time series forecasting, 2025 (opens arXiv in a new tab)
  • Quantnet: transferring learning across trading strategies (opens the publisher in a new tab)
  • Cross-sectional asset retrieval via future-aligned soft contrastive learning (opens arXiv in a new tab)
  • Master: Market-guided stock transformer for stock price forecasting
  • TimesURL: Self-supervised contrastive learning for universal time series representation learning
  • A Time Series is Worth 64 Words: Long-term Forecasting with Transformers
  • Out-of-sample equity premium prediction: Combination forecasts and links to the real economy (opens the publisher in a new tab)
  • Stock selection via spatiotemporal hypergraph attention network: A learning to rank approach
  • Kronos: A foundation model for the language of financial markets (opens arXiv in a new tab)
  • Mastering stock markets with efficient mixture of diversified trading experts
  • Pre-training time series models with stock data customization (opens the publisher in a new tab)
  • CI-STHPAN: Pre-trained attention network for stock selection with channel-independent spatio-temporal hypergraph
  • Qlib: An AI-oriented quantitative investment platform (opens arXiv in a new tab)
  • Accurate multivariate stock movement prediction via data-axis transformer with multi-level contexts
  • Ts2vec: Towards universal representation of time series
  • FinCast: A foundation model for financial time-series forecasting (opens the publisher in a new tab)
  • MACD uses its fixed (12, 26, 9) parameterization, while RSV additionally includes $k = 1$, yielding $D = 77$ indicator-period targets in total
  • Historical data for CSI300 and CSI500 are obtained from Qlib, while data for S&P 500, Nikkei 225, and FTSE 100 are retrieved from Yahoo Finance through the yfinance package
  • For the Taiwan market, we first select the 300 stocks with the highest average trading volume over the 2008–2024 study period and denote this liquidity-based candidate universe as TWSE300
  • >2008–2019</td><td rowspan=
  • The prediction target is the forward 5-day return
  • For each rebalancing day, the $k$ stocks with the highest prediction scores are selected, and a softmax over their scores determines the portfolio weights
  • A single choice of the initial rebalancing day would make the resulting backtest dependent on an arbitrary calendar offset
  • We report the annualized Sharpe Ratio (SR) and Calmar Ratio (CR)
  • This preserves the standard recursive computation of indicators such as EMA and avoids window-dependent reinitialization effects
  • (N, D) raw indicator targets for market m # price_idx: indices of price-based target dimensions # scale_free_idx: indices of scale-free target dimensions # Training split only; statistics are frozen at inference
  • Unless otherwise stated, all encoder variants use the same indicator reconstruction objective, preprocessing pipeline, and downstream ranking protocol
  • Each training sample is one trading day's full stock cross-section, and a batch of 256 days may draw from different markets under cross-market pretraining
  • Both stages are trained for 100 epochs with an effective batch size of 256, without early stopping
  • Settings are shared across encoder backbones unless otherwise specified
  • >Pretraining</td><td>Input features</td><td>OHLCV</td></tr><tr><td>Context length</td><td>120 days</td></tr><tr><td>Reconstruction targets</td><td>77</td></tr><tr><td>Reconstruction head</td><td>Linear</td></tr><tr><td>Loss</td><td>Mean squared error</td></tr><tr><td rowspan=
  • All baselines are transferred with a shared MLP head identical to that used in DIVINE
  • Table 9 summarizes the pretraining configuration of all baselines
  • For both models, we use the preprocessing pipelines specified in their original publications $^{2}$ rather than applying our shared window normalization
  • “Transfer” denotes representation transfer to the downstream ranking task, “AR” denotes native autoregressive inference, and “w/ stamp” / “w/o stamp” indicate whether timestamp conditioning is used
  • >Channels</td><td colspan=
  • Overall, the encoder reliably reconstructs the pretraining targets: across the 77 indicator-period combinations and six markets, average test $R^2$ reaches 0.847, with median train-test gap of 0.008 and all gaps below 0.05, confirming that pretraining converges without severe overfitting
  • This dissociation between per-indicator reconstruction quality and downstream utility reinforces the observation from Section 5.3: the hidden state encodes ranking-relevant structure that is not tightly coupled to the reconstruction accuracy of any individual indicator
  • The CR results exhibit trends consistent with SR: DIVINE improves as more pretraining data become available and maintains strong performance as the amount of downstream supervision is reduced
  • To construct the per-market oracle, we retrospectively select, for each market and each metric, the best-performing single period among $k \in \{3, 5, 10, 14, 20\}$, and then average the selected values across the six markets
  • Rows correspond to the five period parameters $k \in \{3, 5, 10, 14, 20\}$; the bottom row contains the two special cases (MACD with fixed parameterization, RSV additionally computed at $k = 1$)
  • Removing both operations substantially degrades performance to 0.601
  • Bold and Underline means the best performance of the column across and within different blocks, respectively
  • All results report average performance across six markets
  • >Sample-level normalization</td><td>feat z-norm, target z-norm</td><td>1.344</td><td>1.645</td></tr><tr><td>feat z-norm, target max-norm</td><td>0.890</td><td>0.818</td></tr><tr><td>feat max-norm, target z-norm</td><td>1.312</td><td>1.523</td></tr><tr><td rowspan=
  • The downstream ranking objective, data splits, prediction head, and evaluation protocol are otherwise kept unchanged
  • For each seed–offset combination, SR and CR are first averaged across the six markets, and the standard deviation is then computed over the resulting 25 average values
  • Per-side (buy/sell) rates are approximately: CSI300 & CSI500 0.006%/0.056%, NI225 0.002%/0.002%, S&P500 negligible (~0%), FTSE100
  • At each rebalance, costs are charged on the actual change in portfolio weights rather than full turnover, making Table 19 a realistic rather than worst-case estimate
  • Results show that DIVINE maintains the highest average SR/CR of 1.067/1.483 under these conditions, demonstrating robustness to realistic trading frictions
  • The same divergence appears within individual markets
  • We report these metrics for completeness while noting that per-market divergences between the two metric families reinforce our use of SR and CR as the primary evaluation criteria