| Literature DB >> 34046586 |
Daniel Libman1, Simi Haber1, Mary Schaps1.
Abstract
Liquidity plays a vital role in the financial markets, affecting a myriad of factors including stock prices, returns, and risk. In the stock market, liquidity is usually measured through the order book, which captures the orders placed by traders to buy and sell stocks at different price points. The introduction of electronic trading systems in recent years made the deeper layers of the order book more accessible to traders and thus of greater interest to researchers. This paper examines the efficacy of leveraging the deeper layers of the order book when forecasting quoted depth-a measure of liquidity-on a per-minute basis. Using Deep Feed Forward Neural Networks, we show that the deeper layers do provide additional information compared to the upper layers alone.Entities:
Keywords: deep feed forward neural network; deep feedforward; deep learning; deep learning—artificial neural network; feed forward; feed forward algorithm; limit order book; quoted depth
Year: 2021 PMID: 34046586 PMCID: PMC8146461 DOI: 10.3389/frai.2021.667780
Source DB: PubMed Journal: Front Artif Intell ISSN: 2624-8212
Figure 1DNN structure.
Statistical summary.
| Average orders per day | 5,863.39 | 9,788.67 | 7,904.84 | 8,610.53 | 6,345.25 | 6,804.85 |
| Average transactions per day | 401.94 | 1,034.44 | 826.66 | 1,746.60 | 1,575.16 | 1,492.65 |
| Average order size | 504.35 | 2,940.93 | 91.89 | 1,421.44 | 3,213.28 | 2,421.48 |
| Average transaction size | 482.52 | 2,390.21 | 63.12 | 847.50 | 1,908.64 | 1,512.45 |
Stock ticker description.
| ALHE | ALONY HETZ |
| DSCT | DISCOUNT |
| ESLT | ELBIT SYSTEMS |
| ICL | ISRAEL CHEMICALS |
| LUMI | BANK LEUMI |
| POLI | BANK POALIM |
Accuracy.
| 0 | 49.33 | 48.31 | 52.24 | 52.52 |
| 1 | 66.86 | 65.27 | 66.83 | 67.41 |
| 2 | 67.11 | 65.46 | 67.19 | 67.91 |
| 3 | 67.21 | 65.62 | 67.50 | 68.19 |
| 4 | 67.25 | 65.60 | 67.57 | 68.22 |
| 5 | 67.39 | 65.72 | 67.80 | 68.47 |
| 6 | 67.59 | 65.75 | 68.11 | 68.55 |
| 7 | 67.66 | 65.71 | 68.12 | 68.67 |
| 8 | 67.82 | 68.92 | 68.32 | 68.79 |
| 9 | 67.81 | 68.89 | 68.30 | 68.69 |
Darker shades represent lower p-values, e.g. a stronger statistical significance.
Accuracy p-value.
| 0 | – | – | – | – |
| 1 | 0.00 | 0.00 | 0.00 | 0.00 |
| 2 | 0.99 | 3.70 | 9.77 | 0.02 |
| 3 | 10.72 | 7.07 | 0.64 | 0.34 |
| 4 | 30.73 | 79.85 | 34.56 | 39.62 |
| 5 | 7.99 | 28.82 | 7.12 | 2.33 |
| 6 | 2.87 | 28.39 | 0.37 | 29.86 |
| 7 | 38.02 | 24.20 | 47.15 | 25.30 |
| 8 | 11.21 | 38.82 | 6.71 | 27.06 |
| 9 | 54.59 | 64.95 | 54.16 | 70.30 |
Darker shades represent lower p-values, e.g. a stronger statistical significance.
MAE.
| 0 | 0.07119 | 0.06398 | 0.06361 | 0.06306 |
| 1 | 0.05818 | 0.0535 | 0.0519 | 0.05125 |
| 2 | 0.0579 | 0.05308 | 0.05124 | 0.05058 |
| 3 | 0.05736 | 0.05262 | 0.05062 | 0.05029 |
| 4 | 0.05745 | 0.05255 | 0.05047 | 0.05012 |
| 5 | 0.05696 | 0.05243 | 0.0501 | 0.04981 |
| 6 | 0.05671 | 0.05225 | 0.04963 | 0.04964 |
| 7 | 0.05658 | 0.05242 | 0.04966 | 0.04958 |
| 8 | 0.05638 | 0.05125 | 0.04928 | 0.04959 |
| 9 | 0.05643 | 0.0513 | 0.04917 | 0.04955 |
Darker shades represent lower p-values, e.g. a stronger statistical significance.
MAE p-value.
| 0 | – | – | – | – |
| 1 | 0.03 | 0.08 | 0.00 | 0.01 |
| 2 | 2.54 | 0.36 | 3.88 | 0.09 |
| 3 | 0.87 | 5.32 | 0.09 | 4.46 |
| 4 | 74.11 | 69.46 | 26.71 | 19.91 |
| 5 | 0.68 | 0.53 | 4.66 | 2.02 |
| 6 | 13.88 | 10.97 | 0.88 | 22.73 |
| 7 | 37.63 | 71.28 | 58.78 | 34.46 |
| 8 | 27.30 | 57.79 | 2.38 | 53.19 |
| 9 | 60.07 | 60.07 | 32.03 | 41.84 |
Darker shades represent lower p-values, e.g. a stronger statistical significance.
Figure 2Average prediction accuracy by number of layers.
Figure 3MAE by number of layers.
Figure 4Prediction accuracy by number of layers and stock.
Figure 5MAE by number of layers and stock.
| where: | = The time at which snapshot | |
| = The worst-bid price e.g., The lowest price at which a buyer agrees to buy in snapshot | ||
| = The volume available for trading at the worst-bid price in snapshot | ||
| = The best-bid price, e.g., the highest price at which a buyer agrees to buy in snapshot | ||
| = The volume available for trading at the best bid price in snapshot |
| where: | = The time at which snapshot | |
| = The best-ask price, e.g., the lowest price at which a buyer agrees to sell in snapshot | ||
| = The volume available for trading at the best ask price in snapshot | ||
| = The highest price at which a buyer agrees to sell in snapshot | ||
| = The volume available for trading at the “worst-ask” price in snapshot |
| where: | = The number of layers the used for creating the feature vector. | |
| = The ask volume available for trading at the “best-ask”. | ||
| = The ask volume available for trading in layer m the “worst-ask” in the feature vector. | ||
| = The bid volume available for trading at the “best-bid”. | ||
| = The bid volume available for trading in layer m the “worst-bid” in the feature vector. | ||
| = The difference between the second “best-bid” price and the “best-bid” price. | ||
| = The difference between the price for the m layer “worst-bid” in the feature vector to the “best-bid” price. | ||
| = The difference between the second “best-ask” price and the “best-ask” price. | ||
| = The difference between the price for the m layer “worst-ask” in the feature vector to the “best-ask” price. |