OrderFusion: Encoding Orderbook for End-to-End Probabilistic Intraday Electricity Price Forecasting Runyao Yu, Yuchen Tao, Fabian Leimgruber, Tara Esterl, Jochen Stiasny, Derek W. Bunn, Qingsong Wen, Hongye Guo, Jochen L. Cremer Abstract Probabilistic intraday electricity price forecasting is becoming increasingly important for short-term power-system operation. With increasing renewable generation, demand-side flexibility, and storage assets, market participants need to adjust their positions under uncertainty closer to delivery. Continuous intraday (CID) markets support this process by providing updated price signals, helping participants manage imbalance exposure and operational risk. Unlike auction markets, CID trading in many jurisdictions is characterized by the continuous posting of buy and sell orders. This dynamic orderbook microstructure of price formation presents special challenges for price forecasting. Conventional methods represent the orderbook via domain features aggregated from buy and sell trades, or by treating it as a multivariate time series, but such representations neglect the full buy-sell interaction structure of the orderbook. This research therefore develops a new order fusion methodology, which is an end-to-end and parameter-efficient probabilistic forecasting model that learns a interaction-aware representation of the buy-sell dynamics. Furthermore, as quantile crossing is often a problem in probabilistic forecasting, this approach hierarchically estimates the quantiles with non-crossing constraints. Extensive experiments on CID price indices across high- and low-liquidity European markets demonstrate consistent improvements over conventional baselines, and ablation studies highlight the contributions of the main components. The methodology is available at: https://runyao-yu.github.io/OrderFusion/ . I Introduction Whilst the wholesale market arrangements for electricity vary across many jurisdictions, a common approach follows a voluntary, self-dispatch competitive design based upon forward trading between market participants and subsequent real-time balancing for each delivery period, as administered by the system operator. The day-ahead auction tends to be the most liquid and widely-referenced forward product [ 27 ] . Ex post, a settlement agent then typically clears the imbalances between forward commitments and the actual metered physical positions of each participant. This approach is predominant in Europe and widespread elsewhere. Within this context, the rapid expansion of renewable resources and demand-side engagement has introduced substantial uncertainties that manifest close to delivery, and this has translated into serious settlement risks for the market participants [ 29 ] . As a consequence, the risk management needs of participants have been met, partially at least, by the emergence of continuous intraday (CID) electricity trading to facilitate the adjustment of physical positions as new information becomes apparent closer to delivery [ 14 ] . Fig. 1: Buy-sell interactions for delivery at 18:00 on 2024-07-23. Buyers and sellers adjust their bids and offers iteratively based on the opposite side, reflecting strategic buy-sell interactions. As delivery time approaches, prices exhibit downward jumps. In contrast to the auction-based day-ahead markets, CID trading is typically based upon bids and offers being continuously posted on a trading platform and, as such, presents a fundamentally different challenge for time-series analysis and forecasting compared to the more regular, distinct, and episodic price series usually obtained from auction data. As a research topic, CID electricity price forecasting has so far received much less attention than, for example, day-ahead price forecasting [ 18 ] . Furthermore, being motivated by the risk management needs of asset-backed traders, as well as perhaps by purely financial speculative traders, probabilistic forecasts will generally be more useful than point estimates. This compounds the modeling challenge. Whilst there has been extensive research on probabilistic day-ahead forecasting [ 32 , 35 , 40 , 33 , 42 ] , and an emerging body of research on the properties of the intraday price dynamics [ 1 , 11 , 27 , 39 ] , a fully informative methodology for probabilistic CID forecasting remains under-researched. Moreover, whilst continuous trading is the norm in financial capital markets, intraday electricity trading is fundamentally different than typical financial orderbook settings: as an energy commodity, traders in the CID electricity market submit bids and offers for electricity tied to specific delivery times [ 26 ] . The first problem to be faced in practice, therefore, is to define the reference price to be forecast ahead of delivery. A common simple heuristic is to take the average of the bid and offer prices, but as an index, this will generally be too volatile and subject to price jumps close to electricity delivery times [ 16 ] . To support liquidity in trading and to offer more stable reference prices, the European power exchange (EPEX Spot) provides CID indices: \mathrm{ID}_{1} , \mathrm{ID}_{2} , and \mathrm{ID}_{3} , which are defined as Volume-Weighted Average Prices (VWAPs) of executed bids and offers aggregated over progressively longer periods prior to delivery, as illustrated in Fig. 2 . CID prices are not merely financial signals: they provide operationally relevant information for imbalance-risk management and demand-side flexibility. Accurate probabilistic forecasts of these prices can therefore support uncertainty-aware decision-making by balancing-responsible parties and asset operators under increasing renewable variability. This places probabilistic CID price forecasting within the broader scope of power system operation, computing, and economics. Fig. 2: Visualization of CID price indices in the German market (2024). Orange areas indicate extreme electricity price. Overall, volatility follows the order: ID 1 > ID 2 > ID 3 . (a) , ID 1 displays frequent price spikes, reflecting last-minute trading under imbalance pressure. (b) , ID 2 reflects mid-session adjustments. (c) , ID 3 corresponds to the most liquid trading window, exhibiting the least volatility. Conventional methods for forecasting these CID indices rely heavily on 1D encoding via domain feature extraction (e.g., mean price, total traded volume, and VWAP) [ 30 , 12 , 41 ] , directly aggregating over buy and sell sides. This aggregation overlooks buy-sell interactions [ 24 ] . The close buy-sell relationship is shown in Fig. 1 . Moreover, this manual feature extraction breaks the end-to-end learning, restricting the model from forming expressive representations from the orderbook. In contrast to 1D encoding, advanced time-series models encode the orderbook as 2D sequence [ 43 , 19 , 28 , 37 , 36 ] , preserving the temporal information. However, these models still lack the inductive bias arising from buy–sell interactions, requiring large number of parameters to approximate such dynamics and leading to suboptimal performance. Motivated by the unique structure of the CID electricity market, we propose OrderFusion, which is designed for delivery-tied electricity trading and explicitly captures buy-sell interaction-aware representation from the orderbook data. Furthermore, when modeling probabilistic intraday prices, a common approach to avoid a specific functional form for the density, is Linear Quantile Regression (LQR), in which each quantile is modeled separately [ 20 , 31 , 30 ] . However, this can introduce the quantile crossing problem, whereby higher quantile forecasts occasionally fall below lower ones, violating the monotonicity of the predictive distribution. We introduce constraints into our methodology to avoid this problem. In summary, the contributions of this paper are: • We formulate probabilistic CID price-index forecasting as a microstructure-aware power-system economics problem, motivated by the operational need for uncertainty-aware position adjustment close to delivery. • We propose OrderFusion, an end-to-end and parameter-efficient forecasting model that explicitly encodes buy-sell interactions in CID orderbooks while producing non-crossing probabilistic forecasts. • We conduct exhaustive experiments to compare OrderFusion against multiple baselines and examine its generalizability across markets with high and low liquidity. • We perform ablation studies to assess the impact of each architectural design, revealing the contribution of each component to overall predictive performance. II Related Work 1D Encoding. A commonly used domain feature is the VWAP over the past 15 minutes [ 21 , 25 , 30 ] , which has shown strong empirical performance. Other studies indicate that the last price already reflects past information, implying weak-form efficiency 1 1 1 Under the Efficient Market Hypothesis (EMH), a market is weak-form efficient if recent prices already reflect predictive information contained in historical orders [ 8 ] . [ 13 , 34 , 12 ] . Moreover, [ 41 ] extracts numerous domain features from the orderbook and reveals that price percentiles are strong predictors. However, relying solely on manual feature extraction neglects the inductive biases arising from buy–sell interactions, degrading predictive performance. 2D Encoding. Advanced time-series models such as FEDFormer [ 43 ] , iTransformer [ 19 ] , PatchTST [ 28 ] , TimesNet [ 37 ] , and TimeXer [ 36 ] represent the orderbook as a 2D multivariate sequence and have achieved notable success in various forecasting tasks by capturing complex temporal patterns. However, these models do not explicitly encode the inductive bias of buy-sell interactions, and thus require substantially more parameters to approximate such dynamics, resulting in suboptimal performance. Quantile Crossing. When multiple conditional quantiles are estimated independently, quantile crossing may occur. Non-crossing can be enforced using monotone networks via derivative integration formulations or gradient penalties [ 4 , 23 ] . However, these approaches require careful tuning of polynomial degree or penalty strength, increasing training complexity. A simple and widely used method in the field of electricity price forecasting is post-hoc sorting, which reorders the predicted quantiles [ 20 , 31 , 30 ] . While effective in practice, such method introduces an additional correction step in the forecasting pipeline, breaking the end-to-end learning. III Preliminary The task is to forecast three widely used price indices in the European CID market : \mathrm{ID}_{x} , where x\in\{1,2,3\} , which differ by the length of the trading window . Formally , each \mathrm{ID}_{x} is defined as the VWAP of trades executed over its corresponding trading window: \mathrm{ID}_{x}\;=\;\frac{\sum\limits_{s\in S}\sum\limits_{t\in\mathcal{T}_{f}}P^{(s)}_{t}\,V^{(s)}_{t}}{\sum\limits_{s\in S}\sum\limits_{t\in\mathcal{T}_{f}}V^{(s)}_{t}}, (1) where the forecast is made at time t_{f}=t_{d}-\Delta , with t_{d} denoting the delivery time and \Delta=60\times x\,\mathrm{min} representing the lead time associated with index \mathrm{ID}_{x} . The market side s\in S=\{+,-\} corresponds to buy and sell orders, respectively, t\in\mathcal{T}_{f}=[t_{f},\ t_{d}-\delta_{c}] denotes the transaction time, \mathcal{T}_{f} is the forecasting (trading) window, and \delta_{c} is a market-specific parameter 2 2 2 For Germany, \delta_{c}=30 min, and for Austria, \delta_{c}=0 min. For other countries, \delta_{c} can be retrieved from https://www.epexspot.com/en/downloads . . Here, P^{(s)}_{t} and V^{(s)}_{t} denote the price and traded volume, respectively. IV OrderFusion As introduced in Section I , the CID market is driven by the interaction between buy-side and sell-side orders. Therefore, such buy-sell interactions should be explicitly modeled. To this end, OrderFusion is designed to exploit the predictive potential of orderbook data (Fig. 3 ). Specifically, we introduce an encoding method in Subsection IV-A to transform the orderbook into an encoded format that can be used by the backbone. The backbone described in Subsection IV-B processes the encoded orderbook and produces buy-sell-interaction-aware representations through a cross-attention mechanism. The forecasting head in Subsection IV-C produces multiple quantile forecasts while preventing quantile crossing. IV-A Encoding The encoding method separates the orderbook into two sides: buy ( + ) and sell ( - ). For each side, we treat all trades associated with each delivery time as one sample. Each trade contains a price and a traded volume. Additionally, we compute a relative time delta \nabla t to encode temporal information: \nabla t=t_{d}-t,\quad tT_{\max}-L,\\ 0&\text{otherwise.}\end{cases} (7) The dual mask is obtained by elementwise multiplication of the padding and temporal masks: \mathbf{M}_{i}^{(s)}=\mathbf{B}_{i}^{(s)}\odot\mathbf{D}_{i}^{(s)}. (8) IV-B 2 Iterative Fusion Layer As buyers and sellers iteratively adjust their bids and offers based on observed quotes from the opposite side, reflecting strategic interactions [ 24 ] , we design a series of iterative fusion layers to enable representation learning of such buy-sell interactions: \mathbf{C}_{i,k}^{(s)}=\begin{cases}\mathcal{F}^{(s)}\!\left(X^{(s)}_{i}\right)&\text{if }k=0,\\ \mathbf{C}_{i,k-1}^{(s)}\mid\mathbf{C}_{i,k-1}^{(\bar{s})}&\text{if }k\geq 1,\end{cases} (9) where k denotes the degree of interactions, \bar{s} is the opposite side of s , and \mathcal{F}^{(s)}(\cdot) denotes a dense layer that projects the input features from dimension 3 to the hidden dimension F . All intermediate representations are masked using \mathbf{M}_{i}^{(s)} before being passed to subsequent layers. For k=0 , the representation is initialized by projecting the masked input matrix X^{(s)}_{i} into the hidden dimension, such that \mathbf{C}_{i,0}^{(s)}\in\mathbb{R}^{T_{\max}\times F} . For k\geq 1 , a cross-attention is applied, denoted by the fusion operator “ \mid ”, where \mathbf{C}_{i,k-1}^{(s)} serves as the query, and \mathbf{C}_{i,k-1}^{(\bar{s})} serves as both the key and value: \mathbf{Q}_{k-1}^{(s)}=\mathbf{C}_{i,k-1}^{(s)}\mathbf{W}_{\mathbf{Q},k-1}^{(s)}, (10) \mathbf{K}_{k-1}^{(\bar{s})}=\mathbf{C}_{i,k-1}^{(\bar{s})}\mathbf{W}_{\mathbf{K},k-1}^{(\bar{s})}, (11) \mathbf{V}_{k-1}^{(\bar{s})}=\mathbf{C}_{i,k-1}^{(\bar{s})}\mathbf{W}_{\mathbf{V},k-1}^{(\bar{s})}. (12) where \mathbf{W}_{\mathbf{Q},k-1}^{(s)},\mathbf{W}_{\mathbf{K},k-1}^{(\bar{s})},\mathbf{W}_{\mathbf{V},k-1}^{(\bar{s})}\in\mathbb{R}^{F\times F} are learnable weights, and F denotes the hidden dimension. The output of the cross-attention is computed as: \mathbf{C}_{i,k}^{(s)}=\mathrm{Softmax}\left(\frac{\mathbf{Q}_{k-1}^{(s)}(\mathbf{K}_{k-1}^{(\bar{s})})^{\top}}{\sqrt{F}}\right)\mathbf{V}_{k-1}^{(\bar{s})}. (13) This allows side s to observe the opposite side and form updated representations that reflect buy–sell interactions. For example, \mathbf{C}_{i,1}^{(+)} denotes for the buy-side representation observed on sell-side. IV-B 3 Aggregation Layer All of the fused representations at different degrees are combined via residual connection [ 38 ] to produce the higher-level representation \mathbf{C}_{i}\in\mathbb{R}^{T_{\max}\times F} : \mathbf{C}_{i}=\sum_{k=1}^{K}\left(\mathbf{C}_{i,k}^{(+)}+\mathbf{C}_{i,k}^{(-)}\right), (14) where K denotes the maximum degree of interactions, and the summation is element-wise addition. We apply global average pooling to obtain the attention-weighted average representation \mathbf{U}_{i}\in\mathbb{R}^{F} : \mathbf{U}_{i}=\frac{1}{T_{\max}}\sum_{j=1}^{T_{\max}}\mathbf{C}_{i}[j]. (15) IV-C Head The hierarchical head produces multiple quantile forecasts, where \tau\in\mathcal{Q}=\{0.10,0.25,0.45,0.50,0.55,0.75,0.90\} . In detail, the median quantile ( \tau_{m}=0.50 ) is directly predicted through a dense layer \mathcal{F}_{\tau_{m}}(\cdot) : \hat{y}_{i,\tau_{m}}=\mathcal{F}_{\tau_{m}}(\mathbf{U}_{i}). (16) For each upper quantile \tau_{u}>0.50 , a residual is generated from \mathbf{U}_{i} via a separate dense layer \mathcal{F}_{\tau_{u}}(\cdot) . The residual is enforced to be non-negative by applying an absolute-value function g(\cdot)=|\cdot| . The upper quantile is then computed hierarchically by adding this non-negative residual to its nearest lower quantile \tau_{u^{\prime}} : \hat{y}_{i,\tau_{u}}=\hat{y}_{i,\tau_{u^{\prime}}}+g\!\left(\mathcal{F}_{\tau_{u}}(\mathbf{U}_{i})\right),\quad\forall\,\tau_{u}>\tau_{m}. (17) For each lower quantile \tau_{l}<0.50 , a non-negative residual is similarly generated and subtracted from its nearest higher quantile: \hat{y}_{i,\tau_{l}}=\hat{y}_{i,\tau_{l^{\prime}}}-g\!\left(\mathcal{F}_{\tau_{l}}(\mathbf{U}_{i})\right),\quad\forall\,\tau_{l}<\tau_{m}. (18) IV-D Loss Average Quantile Loss (AQL) is employed to jointly estimate multiple quantiles: \text{AQL}=\frac{1}{N|\mathcal{Q}|}\sum_{i=1}^{N}\sum_{\tau\in\mathcal{Q}}L_{\tau}(y_{i},\hat{y}_{i,\tau}), (19) where y_{i} is the true price, \hat{y}_{i} denotes the predicted price quantile, and the loss L_{\tau} is defined as: L_{\tau}(y_{i},\hat{y}_{i,\tau})=\begin{cases}\tau\cdot(y_{i}-\hat{y}_{i,\tau}),&\text{if }y_{i}\geq\hat{y}_{i,\tau},\\ (1-\tau)\cdot(\hat{y}_{i,\tau}-y_{i}),&\text{otherwise}.\end{cases} (20) V Baselines V-A Naïve Naïve 1 : The price index from the most recent delivery hour is used as the naïve point forecast, which is generally a strong and hard-to-beat baseline. Naïve 2 : The price index from the same delivery hour on the previous day is used. Naïve 3 : The price index from the same delivery hour, averaged over the past 3 days, is used. To obtain probabilistic forecasts, we first compute the residuals as the difference between the true price and the naïve point forecast from the training data. Then, these residuals are grouped by delivery hour to estimate their percentiles. Lastly, we add these hour-specific residual percentiles to the naïve point forecasts to form the probabilistic forecasts. V-B 1D Encoding The 1D encoding compresses the orderbook into domain features. We use three representative feature baselines: the 15-min VWAP , the last price , and the exhaustive feature set (384 features) . We evaluate both a non-linear model (MLP) and a linear model (LQR) for each feature baseline, reporting only the better results to avoid model-specific bias. 15-Min VWAP. Prior studies report that the VWAP over the last 15 minutes is a strong domain feature for both pointwise and probabilistic forecasting [ 21 , 25 , 30 ] . We compute it as: \text{VWAP}\big|_{\mathcal{T}_{15}}=\frac{\sum\limits_{t\in\mathcal{T}_{15}}P^{(s)}_{t}\,V^{(s)}_{t}}{\sum\limits_{t\in\mathcal{T}_{15}}V^{(s)}_{t}} (21) where \mathcal{T}_{15}=[t_{f}-15,\,t_{f}] denotes the look-back window for feature extraction from the last 15 minutes. Last Price. Existing studies indicate that the last price already reflects past information [ 22 , 2 , 13 , 34 , 12 ] , implying weak-form efficiency. We use this baseline to examine whether the CID market exhibits perfect weak-form efficiency. We compute it as: \text{LastP}\big|_{\mathcal{T}_{\infty}}=P^{(s)}_{t_{\text{max}}}, (22) where \mathcal{T}_{\infty}=[t_{f}-\infty,\,t_{f}] denotes the full look-back window starting from market opening. Exhaustive Feature Set. An extensive set of features, such as min, max, and volatility of prices and traded volumes, is extracted from multiple look-back windows \mathcal{T}_{w}=[t_{f}-\delta_{w},\,t_{f}] , where \delta_{w}\in\{1,5,15,60,180,\infty\} (in minutes), totaling 384 features [ 41 ] . Feature selection is conducted using \ell_{1} -regularization. V-C 2D Encoding The 2D encoding preserves the temporal dimension of the orderbook by representing it as a multivariate time series. To assess the predictive capability of 2D encoding, we benchmark five state-of-the-art time-series models: FEDFormer , iTransformer , PatchTST , TimesNet , TimeXer . As these model do not support a 2 \times 2D input, we concatenate the buy-side and sell-side sequences along the feature dimension to form a multivariate time series. The hyperparameter is optimized based on validation performance via exhaustive grid search. FEDFormer. The frequency-enhanced decomposition and Fourier attention are introduced to capture periodic patterns [ 43 ] . The model could be useful if intraday prices exhibit strong seasonal periodicity. iTransformer. The input variables are treated as tokens, reducing attention dimensionality and enabling efficient feature learning [ 19 ] . The model could be beneficial for intraday price forecasting when long sequences are used as input. PatchTST. The time series is patchified, and a channel-independent Transformer is used to improve the representation of local temporal patterns [ 28 ] . The model is potentially useful if local price fluctuations dominate predictive performance. TimesNet. The multi-scale kernels are learned through convolutions in the frequency domain [ 37 ] . The model could be valuable if prices exhibit different temporal patterns. TimeXer. The temporal compression is combined with cross-scale mixing to model both fine-grained and aggregated temporal representations [ 36 ] . The model could be beneficial for capturing rapid price jumps and broader market trends. TABLE I: Model comparison for the German market. Model Probabilistic Pointwise Rank AQL \downarrow AQCR \downarrow MAE \downarrow RMSE \downarrow Naïve 1 6.34 0.00 14.75 40.11 9 Naïve 2 16.17 0.00 36.62 85.66 11 Naïve 3 15.83 0.00 36.62 76.63 10 MLP | LQR 1 4.72 0.19 11.43 34.21 6 MLP | LQR 2 4.87 0.46 11.89 45.46 8 MLP | LQR 3 4.61 0.54 10.96 32.23 3 FEDFormer 4.70 3.96 11.52 34.49 8 iTransformer 4.66 3.77 11.55 33.99 7 PatchTST 4.40 2.99 11.27 32.34 4 TimesNet 4.38 2.57 10.98 32.20 2 TimeXer 4.53 2.87 11.32 33.01 5 OrderFusion 3.81 0.00 9.06 26.84 1 VI Experiments VI-A Experimental Settings Rolling Evaluation. We employ a 3-fold rolling evaluation. In fold 1, the data span from 1. Jan 2022 to 1. Sep 2023 for training, 1. Sep 2023 to 1. Jan 2024 for validation, and 1. Jan 2024 to 1. May 2024 for testing. Each subsequent fold shifts forward by 4 months until reaching 1. Jan 2025 to ensure that the testing periods collectively span a full year [ 17 ] . Data Scaling. We use the RobustScaler to scale the data for being robust to extreme values. The scaler is fitted on the training data, and the fitted scaler is used to transform validation and testing data. Evaluation Metrics. We utilize AQL and Average Quantile Crossing Rate (AQCR) to evaluate the probabilistic forecasting accuracy. The Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE) are used for pointwise evaluation. Loss Aggregation. The testing losses are aggregated from 3 rolling folds, 3 price indices, and 5 random seeds for the German and Austrian markets, respectively, to ensure a robust evaluation. The German and Austrian CID markets are selected to evaluate the proposed method under different liquidity regimes [ 41 ] . From a power-system operation perspective, market liquidity is important as it determines how rapidly renewable forecast updates and balancing needs are reflected in intraday prices. VI-B Empirical Results The main experimental results are summarized in Table I and Table II . Across both the German and Austrian markets, OrderFusion consistently achieves superior probabilistic and pointwise forecasting accuracy. The detailed observations are summarized as follows. TABLE II: Model comparison for the Austrian market. Model Probabilistic Pointwise Rank AQL \downarrow AQCR \downarrow MAE \downarrow RMSE \downarrow Naïve 1 8.46 0.00 19.96 42.95 8 Naïve 2 15.62 0.00 36.59 72.09 10 Naïve 3 15.25 0.00 36.00 64.95 9 MLP | LQR 1 6.58 0.15 15.64 34.39 5 MLP | LQR 2 6.67 0.24 15.84 37.38 6 MLP | LQR 3 6.49 0.44 15.12 33.65 2 FEDFormer 6.52 4.97 16.35 34.47 7 iTransformer 6.44 3.87 16.41 34.15 6 PatchTST 6.19 2.29 15.17 33.94 3 TimesNet 6.15 2.32 15.14 33.70 2 TimeXer 6.24 3.05 15.22 33.88 4 OrderFusion 5.64 0.00 13.52 29.95 1 Against Naïve Models. The Naïve baselines are consistently inferior to OrderFusion across both probabilistic and pointwise evaluation. The AQL averaged across price indices and markets of Naïve 1 is 56.69% higher than that of OrderFusion, while Naïve 2 and Naïve 3 are 236.40% and 228.90% higher, respectively. A similar pattern is observed for pointwise forecasting. This suggests that Naïve baselines are insufficient for intraday price prediction, as it cannot capture the nonlinear and dynamic interactions between buy-side and sell-side order flows. Therefore, the buy-sell interaction needs to be explicitly modeled rather than relying solely on simple persistence. Against 1D Encoding Models. OrderFusion achieves AQL improvements of 16.37% , 18.13% , and 14.86% over the 15-min VWAP, last-price, and exhaustive-feature baselines, respectively. This indicates that domain-feature-based methods still underutilize the predictive information contained in the raw orderbook. In particular, the improvement over the last-price baseline suggests that the CID market is not perfectly weak-form efficient, as historical buy-sell order flow continues to carry predictive information beyond the most recent transaction price. Moreover, these 1D-encoded methods suffer from quantile crossing, indicated by nonzero AQCR values. Although the observed violation rate is relatively low, this issue is expected to become more pronounced when predicting a larger number of quantiles [ 30 ] . By design, OrderFusion eliminates quantile crossing and consistently achieves an AQCR of 0.00% . Against 2D Encoding Models. OrderFusion consistently outperforms 2D-encoding baselines and achieves 10.26% lower AQL and 14.09% lower MAE than the second-best performing TimesNet. This performance gap is attributed to the fact that these models are designed for generic time-series tasks and lack inductive biases for explicitly modeling buy-sell interactions. Moreover, these time-series baselines encounter significant quantile crossing issues, indicated by AQCR values between 1.97% and 4.97% . Furthermore, while these baselines contain between 0.87M and 3.38M parameters, OrderFusion remains lightweight with only 4,872 parameters. Such parameter efficiency is especially relevant for power-system operational deployment, where probabilistic forecasts may be repeatedly generated for balancing-responsible portfolios or storage assets under limited computing resources. These results emphasize the importance of injecting domain priors into model design instead of relying solely on stacking model parameters. Fig. 4: Ablation study of key hyperparameter (cutoff length) and empirical results of OrderFusion. (a) Testing loss under different cutoff lengths L for the German market, where the marked points indicate the optimal cutoff for each price index. (b) True price versus pointwise forecast for the German market. (c) Testing loss under different cutoff lengths L for the Austrian market. (d) True price versus pointwise forecast for the Austrian market. VII Ablation Study VII-A Dual Masking Layer • No Mask. Eq. 8 is removed, and no masks are applied in iterative fusion layers. • Random Mask. Eq. 8 is replaced with a randomly sampled vector, where each element is independently drawn from a uniform distribution over [0,1] : \mathbf{M}_{i}^{(s)}\sim\mathcal{U}(0,1), (23) • Reverse Mask. Instead of retaining the latest L buy and sell trades, we keep the first L buy and sell trades. Eq. 7 changes to: \mathbf{D}^{(s)}_{i}[j]=\begin{cases}1&\text{if }j\leq L,\\ 0&\text{otherwise.}\end{cases} (24) • Varied Cutoff Length. We vary the cutoff length L defined in Eq. 7 using \alpha=\{0,1,2,\ldots,10\} to examine the sensitivity of this key hyperparameter and to investigate market efficiency. Results in Table III show that removing the mask leads to a 30.51 % increase in AQL, as all padded values are treated as valid values, thereby introducing substantial noise. Randomizing and reversing the mask result in a 25.00% and 59.75% increase in AQL, respectively, emphasizing the importance of retaining only recent trades under the market efficiency hypothesis. Varying the cutoff length leads to significant changes in testing performance, as shown in Fig. 4 (a) and (b) . These changes reflect the market efficiency. In particular, Austrian ID 3 has an optimal cutoff of 1, implying near-perfect market efficiency and indicating that traders rely on the latest pair of buy-sell trades to form price expectations. Therefore, when applying OrderFusion to other markets, such as the Dutch or Norwegian markets, this cutoff hyperparameter should be tuned carefully. In practice, we recommend producing a similar testing-loss-versus-cutoff curve for each market and selecting the cutoff based on the observed performance. VII-B Iterative Fusion Layer • No Fusion. Eq. 9 is removed. The buy- and sell-side inputs are directly passed to subsequent layers without the representation learning of buy-sell interactions: \mathbf{C}_{i}=X^{(+)}_{i}\,\|\,X^{(-)}_{i}, (25) where \big\| denotes concatenation. • Varied Degree of Interactions. We vary the interaction degree K defined in Eq. 9 , using K\in\{1,2,4\} , to study the necessary level of interactive complexity. From Table III , we observe that removing the fusion layer results in an 18.86% increase in AQL, confirming that discarding the buy–sell inductive bias could degrade predictive performance. Moreover, the low-level interaction ( K=1 ) leads to 2.54% higher AQL, while high-level interaction ( K=4 ) shows no significant improvement over the medium setting ( K=2 ), despite introducing additional parameters. Therefore, K=2 is recommended for practical usage. TABLE III: Ablation studies of different module choices. Model Probabilistic Pointwise Rank AQL AQCR MAE RMSE No Mask 6.16 0.00 14.68 37.05 3 Random 5.90 0.00 13.89 34.92 2 Reverse 7.54 0.00 16.94 40.29 4 Dual † 4.72 0.00 11.29 28.40 1 k=0 5.61 0.00 13.46 33.80 4 k=1 4.84 0.00 12.02 29.22 3 k=2^{\dagger} 4.72 0.00 11.29 28.40 1 k=4 4.73 0.00 11.31 28.43 2 No Resid. 4.91 0.00 11.86 30.08 3 Max Pool 4.96 0.00 11.98 30.36 4 Concat. 4.74 0.00 11.27 28.42 2 Residual † 4.72 0.00 11.29 28.40 1 Single-Q 4.73 2.07 11.31 28.39 4 Multi-Q 4.72 1.97 11.30 28.44 3 Post-Hoc 4.73 0.00 11.31 28.38 2 Hier. † 4.72 0.00 11.29 28.40 1 VII-C Aggregation Layer • No Residual Connection. Only the representations with the maximum degree of interactions from Eq. 14 are retained: \mathbf{C}_{i}=\mathbf{C}_{i,K}^{(+)}+\mathbf{C}_{i,K}^{(-)}. (26) • Global Max Pooling. The global average pooling in Eq. 15 is replaced with global max pooling: \mathbf{U}_{i}=\max_{1\leq j\leq T_{\max}}\mathbf{C}_{i}[j], (27) • Concatenation. The residual connection, as defined in Eq. 14 , is replaced with concatenation: \mathbf{C}_{i}=\sum_{k=1}^{K}\left(\mathbf{C}_{i,k}^{(+)}\|\mathbf{C}_{i,k}^{(-)}\right). (28) Results in Table III show that retaining only the representations with the maximum degree increases the AQL value by 4.03% , as this operation loses low-level features and leads to suboptimal performance. Replacing the average pooling with max pooling leads to a performance drop of 5.08% in AQL. Given that the prediction targets are VWAPs, average pooling offers a useful inductive bias. Moreover, replacing the residual connection with concatenation yields comparable results but introduces additional parameters, increasing the model complexity unnecessarily. Therefore, we recommend using the residual connection. VII-D Hierarchical Multi-Quantile Head • Single-Quantile Head. The proposed hierarchical head is replaced with a single-quantile head. Therefore, multiple models are trained independently for different quantiles. • Multi-Quantile Head. The hierarchical head is replaced with a standard multi-quantile head, where a single model produces multiple quantile forecasts using a shared representation. • Post-Hoc Sorting. The predicted quantiles made by individual models are reordered in ascending order. From Table III , we observe that the single-quantile model and multi-quantile model achieve comparable AQL and MAE values. However, these methods suffer from quantile crossing, with an AQCR of 2.07% and 1.97% , respectively. This issue is expected to become more pronounced as the number of predicted quantiles increases, since more quantile levels introduce more opportunities for monotonicity violations. Although post-hoc sorting mitigates quantile crossing and achieves similar predictive performance, it introduces additional and unnecessary post-processing after model inference. This not only increases computational overhead but also complicates the modeling pipeline by separating quantile calibration from the main learning objective. In contrast, the designed hierarchical head enforces quantile monotonicity directly within the network architecture, eliminating quantile crossing while preserving a clean end-to-end design. VIII Conclusion In this work, we develop a new methodology and open-source OrderFusion, an end-to-end and parameter-efficient model that consistently outperforms multiple baselines, generalizes across markets with both high (German) and low (Austrian) liquidity, and overcomes the quantile crossing issue . The results reveal that CID electricity markets do not exhibit perfect weak-form efficiency, highlighting the value of historical trades. Our findings further underscore the importance of explicitly modeling buy–sell interactions and injecting domain priors into models rather than solely stacking the model parameters. Despite strong performance, several limitations remain. As with all forecasting models, the value of extra predictive variables remains open for consideration. Thus, as CID trading for sequential delivery periods occurs in parallel, incorporating trades from neighboring delivery periods, as well as periodic exogenous variables related to supply and demand conditions would be expected to further improve forecasting. Nevertheless, if CID markets evolve toward perfect weak-form efficiency, simple last-price models may suffice. Appendix VIII-A Hardware and Computation OrderFusion is evaluated on both an NVIDIA A100 GPU and an Intel Core i7-1265U CPU . The A100 targets high-performance computing, whereas the i7-1265U is a power-efficient processor used in standard laptops. Training requires approximately 1.5 minutes on the A100 and 6 minutes on the i7, while inference time is under 1 second and 2.5 seconds , respectively, making the model suitable for continuous use. VIII-B Other Macro-Feature-Based Methods Several approaches have been used for intraday electricity price prediction, including Time2Vec-Transformer [ 5 ] , Normalizing Flows [ 7 ] , Long Short-Term Memory (LSTM) [ 15 ] , Generative Model [ 6 ] , and Bayesian Hierarchical Model [ 27 ] . However, these methods model price dynamics from exogenous fundamentals (e.g., load and renewable generation) and do not leverage the orderbook microstructure targeted in this work. Our experiments are therefore scoped to a microstructure-only setting: we use inputs that are derived from the orderbook to quantify the predictive contribution of orderbook dynamics under a controlled design. This scope is complementary to fundamentals-based forecasting and should not be interpreted as claiming superiority in settings where rich exogenous information is available. Incorporating exogenous fundamentals alongside orderbook microstructure is straightforward within our framework and is an important direction for future work. VIII-C Generalizability The proposed method targets the broader landscape of CID electricity markets operated by EPEX Spot. EPEX Spot’s services currently already span over 22 European countries, and an increasing number of countries are adopting CID markets to better manage short-term energy imbalances. Since the orderbook data format provided by EPEX Spot is standardized across regions, OrderFusion can be directly applied to multiple markets beyond the specific areas evaluated in this paper. TABLE IV: Hyperparameter search space. Model Search Space LQR \ell_{1} : {5e-8, 1e-8, 5e-7, 1e-7, \ldots , 1} MLP hidden_size : {4, 16, 64, 256, 512} n_layers : {1, 2, 4} dropout : {0.1, 0.2, 0.4} FEDFormer hidden_size : {4, 16, 64, 256, 512} conv_hidden_size : {8, 32, 128} n_layers : {1, 2, 4} n_heads : {1, 2, 4} moving_window : {4, 16, 64} iTransformer hidden_size : {4, 16, 64, 256, 512} n_layers : {1, 2, 4} n_heads : {1, 2, 4} d_ff : {512, 1024, 2048} dropout : {0.1, 0.2, 0.4} PatchTST hidden_size : {4, 16, 64, 256, 512} n_layers : {1, 2, 4} n_heads : {1, 2, 4} patch_len : {4, 8, 16} dropout : {0.1, 0.2, 0.4} TimesNet hidden_size : {4, 16, 64, 256, 512} conv_hidden_size : {8, 32, 128} n_layers : {1, 2, 4} top_k : {1, 2, 4} TimeXer hidden_size : {4, 16, 64, 256, 512} n_layers : {1, 2, 4} n_heads : {1, 2, 4} d_ff : {64, 256, 1024} OrderFusion hidden_size : {4, 16, 64, 256, 512} cutoff_length : { 2^{0} , 2^{1} , 2^{2} , \ldots , 2^{10} } interaction_degree : {1, 2, 4}