Papers
Topics
Authors
Recent
Search
2000 character limit reached

Hybrid Vector Auto Regression and Neural Network Model for Order Flow Imbalance Prediction in High Frequency Trading

Published 13 Nov 2024 in q-fin.CP, q-fin.ST, and q-fin.TR | (2411.08382v1)

Abstract: In high frequency trading, accurate prediction of Order Flow Imbalance (OFI) is crucial for understanding market dynamics and maintaining liquidity. This paper introduces a hybrid predictive model that combines Vector Auto Regression (VAR) with a simple feedforward neural network (FNN) to forecast OFI and assess trading intensity. The VAR component captures linear dependencies, while residuals are fed into the FNN to model non-linear patterns, enabling a comprehensive approach to OFI prediction. Additionally, the model calculates the intensity on the Buy or Sell side, providing insights into which side holds greater trading pressure. These insights facilitate the development of trading strategies by identifying periods of high buy or sell intensity. Using both synthetic and real trading data from Binance, we demonstrate that the hybrid model offers significant improvements in predictive accuracy and enhances strategic decision-making based on OFI dynamics. Furthermore, we compare the hybrid models performance with standalone FNN and VAR models, showing that the hybrid approach achieves superior forecasting accuracy across both synthetic and real datasets, making it the most effective model for OFI prediction in high frequency trading.

Summary

  • The paper introduces a hybrid VAR-FNN model that merges linear and non-linear techniques for enhanced OFI prediction in high-frequency trading.
  • The VAR component captures interdependencies in buy/sell orders while the FNN models non-linear residuals to improve prediction accuracy.
  • Empirical results indicate significantly lower MAE and MSE along with higher R² scores, validating the model's precision and effectiveness in trading intensity prediction.

Hybrid Vector Auto Regression and Neural Network Model for Order Flow Imbalance Prediction in High Frequency Trading

Introduction

This paper presents a hybrid modeling approach to predict Order Flow Imbalance (OFI) in high-frequency trading (HFT) environments. The model combines Vector Auto Regression (VAR) with a Feedforward Neural Network (FNN) to leverage both linear and non-linear dependencies. The VAR model captures the linear interdependencies between buy and sell orders, while the FNN models the non-linear residuals, offering a comprehensive framework for OFI prediction. Such predictions are critical in understanding market dynamics and devising effective trading strategies.

Methodology

VAR and FNN Architectures

The VAR component of the model captures linear dependencies among multiple time series variables. It is particularly effective in examining the mutual influences of buy and sell orders across different timeframes. Each variable in the system is predicted from its past values and those of others, drawing insights into market dynamics.

The FNN component captures the non-linear dependencies that the VAR model cannot address. The architecture consists of input layers corresponding to the residuals from the VAR model and multiple hidden layers that learn complex patterns via adjustable weights and non-linear activation functions. This design enhances the model's flexibility in adapting to diverse market conditions. Figure 1

Figure 1: Basic architecture of a feedforward neural network (FNN) for financial prediction.

Hybrid Model Implementation

The hybrid model first utilizes VAR to forecast future buy and sell orders and computes OFI from these forecasts. The residuals, which highlight discrepancies between actual orders and VAR predictions, are fed into the FNN. Training the FNN on these residuals allows the model to learn the non-linear aspects, improving overall prediction accuracy.

Evaluation and Results

Data and Experimental Setup

The model was trained using high-frequency trading data from Binance, employing datasets of buy and sell orders for cryptocurrencies like BTCUSD and ETHUSDT, as well as synthetic datasets to ensure robustness. Various parameters, such as lag orders in the VAR model and FNN architecture configurations, were optimized through a comprehensive sensitivity analysis. Figure 2

Figure 2: Sensitivity Analysis Heatmaps: Evaluation Metrics Across Parameter Configurations

Performance Metrics

The hybrid model consistently outperformed standalone VAR and FNN models. Key evaluation metrics included Mean Absolute Error (MAE), Mean Squared Error (MSE), and R2R^2. The hybrid approach exhibited significantly lower MSE and MAE values and higher R2R^2 scores, indicating better predictive accuracy and generalization capability. Figure 3

Figure 3: Predictions from the Hybrid VAR-FNN Model during Training.

Trading Intensity Prediction

The intensity metric, representing the magnitude of trading pressure on the buy or sell side, was a notable addition. The hybrid model demonstrated high accuracy and precision in predicting trading intensity signals, crucial for effective strategy formulation in trading environments.

Discussion

Implications and Future Developments

The hybrid VAR-FNN model effectively integrates the strengths of econometric time series models and machine learning, providing a robust tool for OFI prediction. Its application extends beyond HFT, offering potential benefits for liquidity management and optimal trade execution.

The model's advancement lies in its adaptability to different asset classes and market conditions. Future research could explore enhancements such as integrating Long Short-Term Memory (LSTM) networks to capture temporal dynamics more effectively, or extending the model's application to equities and forex markets.

Conclusion

This study introduces a hybrid VAR-FNN model that demonstrates superior predictive capabilities for OFI in high-frequency trading contexts. By combining the interpretability of traditional statistical models with the adaptability of neural networks, the approach delivers a balanced solution to forecasting challenges in volatile markets. The model's ability to accurately predict OFI and trading signals suggests it could serve as a valuable tool for traders and financial analysts, enhancing the precision of trading strategies and contributing to informed decision-making processes in financial markets.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We found no open problems mentioned in this paper.

Authors (2)

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 1 tweet with 13 likes about this paper.