This paper presents a new financial market simulator that may be used as a tool in both industry and academia for research in market microstructure. It allows multiple automated traders and/or researchers to simultaneously connect to an exchange-like environment, where they are able to asynchronously trade several financial assets at the same time. In its current iteration, this order-driven market implements the basic rules of U.S. equity markets, supporting both market and limit orders, and executing them in a first-in-first-out fashion. We overview the system architecture and we present possible use cases. We demonstrate how a set of automated agents is capable of producing a price process with characteristics similar to the statistics of real price from financial markets. Finally, we detail a market stress scenario and we draw, what we believe to be, interesting conclusions about crash events.
The ultimate value of theories of the fundamental mechanisms comprising the asset price in financial systems will be reflected in the capacity of such theories to understand these systems. Although the models that explain the various states of financial markets offer substantial evidences from the fields of finance, mathematics, and even physics to explain states observed in the real financial markets, previous theories that attempt to fully explain the complexities of financial markets have been inadequate. In this study, we propose an artificial double auction market as an agent-based model …
The short squeeze of Gamestop (GME) has revealed to the world how retail investors pooling through social media can severely impact financial markets. In this paper, we devise an early warning signal to detect suspicious users' social network activity, which might affect the financial market stability. We apply our approach to the subreddit r/WallStreetBets, selecting two meme stocks (GME and AMC) and two non-meme stocks (AAPL and MSFT) as case studies. The alert system is structured in two stpng; the first one is based on extraordinary activity on the social network, while the second aims at …
In a financial market, for agents with long investment horizons or at times of severe market stress, it is often changes in the asset price that act as the trigger for transactions or shifts in investment position. This suggests the use of price thresholds to simulate agent behavior over much longer timescales than are currently used in models of order-books. We show that many phenomena, routinely ignored in efficient market theory, can be systematically introduced into an otherwise efficient market, resulting in models that robustly replicate the most important stylized facts. We then demonst…
Financial exchange operators cater to the needs of their users while simultaneously ensuring compliance with the financial regulations. In this work, we focus on the operators' commitment for fair treatment of all competing participants. We first discuss unbounded temporal fairness and then investigate its implementation and infrastructure requirements for exchanges. We find that these requirements can be fully met only under ideal conditions and argue that unbounded fairness in FIFO markets is unrealistic. To further support this claim, we analyse several real-world incidents and show that su…
Modern physics has demonstrated that matter behaves very differently as it approaches the speed of light. This paper explores the implications of modern physics to the operation and regulation of financial markets. Information cannot move faster than the speed of light. The geographic separation of market centers means that relativistic considerations need to be taken into account in the regulation of markets. Observers in different locations may simultaneously observe different best prices. Regulators may not be able to determine which transactions occurred first, leading to problems with bes…
Artificial stock market simulation based on agent is an important means to study financial market. Based on the assumption that the investors are composed of a main fund, small trend and contrarian investors characterized by four parameters, we simulate and research a kind of financial phenomenon with the characteristics of pyramid schemes. Our simulation results and theoretical analysis reveal the relationships between the rate of return of the main fund and the proportion of the trend investors in all small investors, the small investors' parameters of taking profit and stopping loss, the or…
I summarize the recent work on market (in)efficiency, highlighting key elements why financial markets will never be made efficient. My approach is not by adding more empirical evidence, but giving plausible reasons as to where inefficiency arises and why it's not rational to arbitrage it away.
We study the emergence of instabilities in a stylized model of a financial market, when different market actors calculate prices according to different (local) market measures. We derive typical properties for ensembles of large random markets using techniques borrowed from statistical mechanics of disordered systems. We show that, depending on the number of financial instruments available and on the heterogeneity of local measures, the market moves from an arbitrage-free phase to an unstable one, where the complexity of the market - as measured by the diversity of financial instruments - incr…
We present a simple order book mechanism that regulates an artificial financial market with self-organized criticality dynamics and fat tails of returns distribution. The model shows the role played by individual imitation in determining trading decisions, while fruitfully replicates typical aggregate market behavior as the "self-fulfilling prophecy". We also address the role of random traders as a possible decentralized solution to dampen market fluctuations.
We introduce a new Self-Organized Criticality (SOC) model for simulating price evolution in an artificial financial market, based on a multilayer network of traders. The model also implements, in a quite realistic way with respect to previous studies, the order book dy- namics, by considering two assets with variable fundamental prices. Fat tails in the probability distributions of normalized returns are observed, together with other features of real financial markets.
We introduce an autoregressive-type model of prices in financial market taking into account the self-modulation effect. We find that traders are mainly using strategies with weighted feedbacks of past prices. These feedbacks are responsible for the slow diffusion in short times, apparent trends and power law distribution of price changes.
The financial market is nonpredictable, as according to the Bachelier, the mathematical expectation of the speculator is zero. Nevertheless, we observe in the price fluctuations the two distinct scales, short and long time. Behaviour of a market in long terms, such as year intervals, is different from that in short terms. A diffusion equation with a time dependent diffusion coefficient that describes the fluctuations of the financial market, is subject to a two-scale homogenisation, and long term characteristics of the market such as mean behaviour of price and variance, are obtained. We indic…
Designing a financial market that works well is very important for developing and maintaining an advanced economy, but is not easy because changing detailed rules, even ones that seem trivial, sometimes causes unexpected large impacts and side effects. A computer simulation using an agent-based model can directly treat and clearly explain such complex systems where micro processes and macro phenomena interact. Many effective agent-based models investigating human behavior have already been developed. Recently, an artificial market model, which is an agent-based model for a financial market, ha…
It is suggested to consider long term trends of financial markets as a growth phenomenon. The question that is asked is what conditions are needed for a long term sustainable growth or contraction in a financial market? The paper discuss the role of traditional market players of long only mutual funds versus hedge funds which take both short and long positions. It will be argued that financial markets since their very origin and only till very recently, have been in a state of ``broken symmetry'' which favored long term growth instead of contraction. The reason for this ``broken symmetry'' int…
We introduce solvable stochastic dealer models, which can reproduce basic empirical laws of financial markets such as the power law of price change. Starting from the simplest model that is almost equivalent to a Poisson random noise generator, the model becomes fairly realistic by adding only two effects, the self-modulation of transaction intervals and a forecasting tendency, which uses a moving average of the latest market price changes. Based on the present microscopic model of markets, we find a quantitative relation with market potential forces, which has recently been discovered in the …
The use of kinetic modelling based on partial differential equations for the dynamics of stock price formation in financial markets is briefly reviewed. The importance of behavioral aspects in market booms and crashes and the role of agents' heterogeneity in emerging power laws for price distributions is emphasized and discussed.
A new space-time model for interacting agents on the financial market is presented. It is a combination of the Curie-Weiss model and a space-time model introduced by Järpe 2005. Properties of the model are derived with focus on the critical temperature and magnetization. It turns out that the Hamiltonian is a sufficient statistic for the temperature parameter and thus statistical inference about this parameter can be performed. Thus e.g. statements about how far the current financial situation is from a financial crisis can be made, and financial trading stability be monitored for detection of…
We present an analysis of the price impact associated with trades effected by different financial firms. Using data from the Spanish Stock Market, we find a high degree of heterogeneity across different market members, both in the instantaneous impact functions and in the time-dependent market response to trades by individual members. This heterogeneity is statistically incompatible with the existence of market-wide universal impact dynamics which apply uniformly to all trades and suggests that rather, market dynamics emerge from the complex interaction of different behaviors of market partici…
We propose a Markov jump process with the three-state herding interaction. We see our approach as an agent-based model for the financial markets. Under certain assumptions this agent-based model can be related to the stochastic description exhibiting sophisticated statistical features. Along with power-law probability density function of the absolute returns we are able to reproduce the fractured power spectral density, which is observed in the high-frequency financial market data. Given example of consistent agent-based and stochastic modeling will provide background for the further developme…
We contrast Arbitrage Pricing Theory (APT), the theoretical basis for the development of financial instruments, with a dynamical picture of an interacting market, in a simple setting. The proliferation of financial instruments apparently provides more means for risk diversification, making the market more efficient and complete. In the simple market of interacting traders discussed here, the proliferation of financial instruments erodes systemic stability and it drives the market to a critical state characterized by large susceptibility, strong fluctuations and enhanced correlations among risk…
Stock price change in financial market occurs through transactions in analogy with diffusion in stochastic physical systems. The analysis of price changes in real markets shows that long-range correlations of price fluctuations largely depend on the number of transactions. We introduce the multiplicative stochastic model of time interval between trades and analyze spectral density and correlations of the number of transactions. The model reproduces spectral properties of the real markets and explains the mechanism of power law distribution of trading activity. Our study provides an evidence th…
We study the relationship between price spread, volatility and trading volume. We find that spread forms as a result of interplay between order liquidity and order impact. When trading volume is small adding more liquidity helps improve price accuracy and reduce spread, but after some point additional liquidity begins to deteriorate price. The model allows to connect the bid-ask spread and high-low bars to measurable microstructural parameters and express their dependence on trading volume, volatility and time horizon. Using the established relations, we address the operating spread optimizati…
Anchoring is a term used in psychology to describe the common human tendency to rely too heavily (anchor) on one piece of information when making decisions. A trading algorithm inspired by biological motors, introduced by L. Gil\cite{Gil}, is suggested as a testing ground for anchoring in financial markets. An exact solution of the algorithm is presented for arbitrary price distributions. Furthermore the algorithm is extended to cover the case of a market neutral portfolio, revealing additional evidence that anchoring is involved in the decision making of market participants. The exposure of a…
Using virtual stock markets with artificial interacting software investors, aka agent-based models (ABMs), we present a method to reverse engineer real-world financial time series. We model financial markets as made of a large number of interacting boundedly rational agents. By optimizing the similarity between the actual data and that generated by the reconstructed virtual stock market, we obtain parameters and strategies, which reveal some of the inner workings of the target stock market. We validate our approach by out-of-sample predictions of directional moves of the Nasdaq Composite Index…
Following a Geometrical Brownian Motion extension into an Irrational Fractional Brownian Motion model, we re-examine agent behaviour reacting to time dependent news on the log-returns thereby modifying a financial market evolution. We specifically discuss the role of financial news or economic information positive or negative feedback of such irrational (or contrarian) agents upon the price evolution. We observe a kink-like effect reminiscent of soliton behaviour, suggesting how analysts' forecasts errors induce stock prices to adjust accordingly, thereby proposing a measure of the irrational …
We consider idealized financial markets in which price paths of the traded securities are cadlag functions, imposing mild restrictions on the allowed size of jumps. We prove the existence of quadratic variation for typical price paths, where the qualification "typical" means that there is a trading strategy that risks only one monetary unit and brings infinite capital if quadratic variation does not exist. This result allows one to apply numerous known results in pathwise Ito calculus to typical price paths; we give a brief overview of such results.
In this paper we study the price dynamics in a simple model of financial markets with heterogeneous agents. We concentrate on how increases in the total number of active traders influences fluctuations of asset prices. We find that a curious route to chaos is observed when the total number of [active traders] increases. Particularly, we show that {\it intermittent chaos} [1] of price fluctuations is observed as the total number of trader increases.
We consider models of financial markets in which all parties involved find incentives to participate. Strategies are evaluated directly by their virtual wealths. By tuning the price sensitivity and market impact, a phase diagram with several attractor behaviors resembling those of real markets emerge, reflecting the roles played by the arbitrageurs and trendsetters, and including a phase with irregular price trends and positive sums. The positive-sumness of the players' wealths provides participation incentives for them. Evolution and the bid-ask spread provide mechanisms for the gain in wealt…
This review deals with several microscopic (``agent-based'') models of financial markets which have been studied by economists and physicists over the last decade: Kim-Markowitz, Levy-Levy-Solomon, Cont-Bouchaud, Solomon-Weisbuch, Lux-Marchesi, Donangelo-Sneppen and Solomon-Levy-Huang. After an overview of simulation approaches in financial economics, we first give a summary of the Donangelo-Sneppen model of monetary exchange and compare it with related models in economics literature. Our selective review then outlines the main ingredients of some influential early models of multi-agent dynami…
A financial market is a system resulting from the complex interaction between participants in a closed economy. We propose a minimal microscopic model of the financial market economy based on the real economy's symmetry constraint and minimality requirement. We solve the proposed model analytically in the mean-field regime, which shows that various kinds of universal power-law-like behaviors in the financial market may depend on one another, just like the critical exponents in physics. We then discuss the parameters in the proposed model, and we show that each parameter in our model can be rel…
The Glosten-Milgrom model describes a single asset market, where informed traders interact with a market maker, in the presence of noise traders. We derive an analogy between this financial model and a Szilárd information engine by {\em i)} showing that the optimal work extraction protocol in the latter coincides with the pricing strategy of the market maker in the former and {\em ii)} defining a market analogue of the physical temperature from the analysis of the distribution of market orders. Then we show that the expected gain of informed traders is bounded above by the product of this mark…
We apply the theory of continuous time random walks to study some aspects of the extreme value problem applied to financial time series. We focus our attention on extreme times, specifically the mean exit time and the mean first-passage time. We set the general equations for these extremes and evaluate the mean exit time for actual data.
Simulation of Social Media-Driven Bubble Formation in Financial Markets using an Agent-Based Model with Hierarchical Influence Network
School of Computer Science, University of Bristol(布里斯托大学计算机科学学院);School of Engineering Mathematics and Technology, University of Bristol(布里斯托大学工程数学与技术学院)
We demonstrate that minority mechanisms arise in the dynamics of markets because of effects of price impact; accordingly the relative importance of minority and delayed majority mechanisms depends on the frequency of trading. We then use minority games to illustrate that a vanishing price return auto-correlation function does not necessarily imply market efficiency. On the contrary, we stress the difference between correlations measured conditionally and unconditionally on external patterns.
University of Massachusetts Lowell(马萨诸塞大学洛厄尔分校);Soochow University(苏州大学)
It is a challenging task to predict financial markets. The complexity of this task is mainly due to the interaction between financial markets and market participants, who are not able to keep rational all the time, and often affected by emotions such as fear and ecstasy. Based on the state-of-the-art approach particularly for financial market predictions, a hybrid convolutional LSTM Based variational sequence-to-sequence model with attention (CLVSA), we propose a novel deep learning approach, named dual-CLVSA, to predict financial market movement with both trading data and the corresponding so…
We present and study a Minority Game based model of a financial market where adaptive agents -- the speculators -- interact with deterministic agents -- called producers. Speculators trade only if they detect predictable patterns which grant them a positive gain. Indeed the average number of active speculators grows with the amount of information that producers inject into the market. Transitions between equilibrium and out of equilibrium behavior are observed when the relative number of speculators to the complexity of information or to the number of producers are changed. When the system is …
University of Massachusetts Lowell(马萨诸塞大学洛厄尔分校);GRC Capital LLC(GRC资本有限责任公司)
Financial markets are difficult to predict due to its complex systems dynamics. Although there have been some recent studies that use machine learning techniques for financial markets prediction, they do not offer satisfactory performance on financial returns. We propose a novel one-dimensional convolutional neural networks (CNN) model to predict financial market movement. The customized one-dimensional convolutional layers scan financial trading data through time, while different types of data, such as prices and volume, share parameters (kernels) with each other. Our model automatically extr…
Newcastle University(纽卡斯尔大学);University of Edinburgh(爱丁堡大学)
Financial markets are a source of non-stationary multidimensional time series which has been drawing attention for decades. Each financial instrument has its specific changing-over-time properties, making its analysis a complex task. Hence, improvement of understanding and development of more informative, generalisable market representations are essential for the successful operation in financial markets, including risk assessment, diversification, trading, and order execution. In this study, we propose a volume-price-based market representation for making financial time series more suitable f…