-
MOT: A Mixture of Actors Reinforcement Learning Method by Optimal Transport for Algorithmic Trading
Authors:
Xi Cheng,
Jinghao Zhang,
Yunan Zeng,
Wenfang Xue
Abstract:
Algorithmic trading refers to executing buy and sell orders for specific assets based on automatically identified trading opportunities. Strategies based on reinforcement learning (RL) have demonstrated remarkable capabilities in addressing algorithmic trading problems. However, the trading patterns differ among market conditions due to shifted distribution data. Ignoring multiple patterns in the…
▽ More
Algorithmic trading refers to executing buy and sell orders for specific assets based on automatically identified trading opportunities. Strategies based on reinforcement learning (RL) have demonstrated remarkable capabilities in addressing algorithmic trading problems. However, the trading patterns differ among market conditions due to shifted distribution data. Ignoring multiple patterns in the data will undermine the performance of RL. In this paper, we propose MOT,which designs multiple actors with disentangled representation learning to model the different patterns of the market. Furthermore, we incorporate the Optimal Transport (OT) algorithm to allocate samples to the appropriate actor by introducing a regularization loss term. Additionally, we propose Pretrain Module to facilitate imitation learning by aligning the outputs of actors with expert strategy and better balance the exploration and exploitation of RL. Experimental results on real futures market data demonstrate that MOT exhibits excellent profit capabilities while balancing risks. Ablation studies validate the effectiveness of the components of MOT.
△ Less
Submitted 2 June, 2024;
originally announced July 2024.
-
Long Time Behavior of Optimal Liquidation Problems
Authors:
Xinman Cheng,
Guanxing Fu,
Xiaonyu Xia
Abstract:
In this paper, we study the long time behavior of an optimal liquidation problem with semimartingale strategies and external flows. To investigate the limit rigorously, we study the convergence of three BSDEs characterizing the value function and the optimal strategy, from finite horizon to infinite horizon. We find that in the long time limit the player may not necessarily liquidate her assets at…
▽ More
In this paper, we study the long time behavior of an optimal liquidation problem with semimartingale strategies and external flows. To investigate the limit rigorously, we study the convergence of three BSDEs characterizing the value function and the optimal strategy, from finite horizon to infinite horizon. We find that in the long time limit the player may not necessarily liquidate her assets at all due to the existence of external flows, even if in any given finite time horizon, the player is forced to liquidate all assets. Moreover, when the intensity of the external flow is damped, the player will liquidate her assets in the long run.
△ Less
Submitted 23 May, 2024;
originally announced May 2024.
-
Mean Field Game of High-Frequency Anticipatory Trading
Authors:
Xue Cheng,
Meng Wang,
Ziyi Xu
Abstract:
The interactions between a large population of high-frequency traders (HFTs) and a large trader (LT) who executes a certain amount of assets at discrete time points are studied. HFTs are faster in the sense that they trade continuously and predict the transactions of LT. A jump process is applied to model the transition of HFTs' attitudes towards inventories and the equilibrium is solved through t…
▽ More
The interactions between a large population of high-frequency traders (HFTs) and a large trader (LT) who executes a certain amount of assets at discrete time points are studied. HFTs are faster in the sense that they trade continuously and predict the transactions of LT. A jump process is applied to model the transition of HFTs' attitudes towards inventories and the equilibrium is solved through the mean field game approach. When the crowd of HFTs is averse to running (ending) inventories, they first take then supply liquidity at each transaction of LT (throughout the whole execution period). Inventory-averse HFTs lower LT's costs if the market temporary impact is relatively large to the permanent one. What's more, the repeated liquidity consuming-supplying behavior of HFTs makes LT's optimal strategy close to uniform trading.
△ Less
Submitted 28 April, 2024;
originally announced April 2024.
-
Joint calibration to SPX and VIX Derivative Markets with Composite Change of Time Models
Authors:
Liexin Cheng,
Xue Cheng,
Xianhua Peng
Abstract:
The Chicago Board Options Exchange Volatility Index (VIX) is calculated from SPX options and derivatives of VIX are also traded in market, which leads to the so-called "consistent modeling" problem. This paper proposes a time-changed Lévy model for log price with a composite change of time structure to capture both features of the implied SPX volatility and the implied volatility of volatility. Co…
▽ More
The Chicago Board Options Exchange Volatility Index (VIX) is calculated from SPX options and derivatives of VIX are also traded in market, which leads to the so-called "consistent modeling" problem. This paper proposes a time-changed Lévy model for log price with a composite change of time structure to capture both features of the implied SPX volatility and the implied volatility of volatility. Consistent modeling is achieved naturally via flexible choices of jumps and leverage effects, as well as the composition of time changes. Many celebrated models are covered as special cases. From this model, we derive an explicit form of the characteristic function for the asset price (SPX) and the pricing formula for European options as well as VIX options. The empirical results indicate great competence of the proposed model in the problem of joint calibration of the SPX/VIX Markets.
△ Less
Submitted 24 April, 2024;
originally announced April 2024.
-
Trading Large Orders in the Presence of Multiple High-Frequency Anticipatory Traders
Authors:
Ziyi Xu,
Xue Cheng
Abstract:
We investigate a market with a normal-speed informed trader (IT) who may employ mixed strategy and multiple anticipatory high-frequency traders (HFTs) who are under different inventory pressures, in a three-period Kyle's model. The pure- and mixed-strategy equilibria are considered and the results provide recommendations for IT's randomization strategy with different numbers of HFTs. Some surprisi…
▽ More
We investigate a market with a normal-speed informed trader (IT) who may employ mixed strategy and multiple anticipatory high-frequency traders (HFTs) who are under different inventory pressures, in a three-period Kyle's model. The pure- and mixed-strategy equilibria are considered and the results provide recommendations for IT's randomization strategy with different numbers of HFTs. Some surprising results about investors' profits arise: the improvement of anticipatory traders' speed or a more precise prediction may harm themselves but help IT.
△ Less
Submitted 12 March, 2024;
originally announced March 2024.
-
Approximating Smiles: A Time Change Approach
Authors:
Liexin Cheng,
Xue Cheng
Abstract:
We present a new method for approximating the shape of implied volatility smiles. The method is applicable to common semimartingale models, such as jump-diffusion, rough volatility, and infinite activity models. We firstly adopt an Edgeworth expansion method to approximate the at-the-money skew and curvature and propose conditions under which the approximation errors converge. Then, we explicitly…
▽ More
We present a new method for approximating the shape of implied volatility smiles. The method is applicable to common semimartingale models, such as jump-diffusion, rough volatility, and infinite activity models. We firstly adopt an Edgeworth expansion method to approximate the at-the-money skew and curvature and propose conditions under which the approximation errors converge. Then, we explicitly approximate the volatility skew and curvature under a time change framework using moment-based formula. Additionally, we derive the characteristics of volatility skew and curvature and explain their implications for model selection based on the approximation. The accuracy of the short-term approximation results on models is tested via numerical methods and on empirical data. The method is then applied to the calibration problem.
△ Less
Submitted 28 May, 2024; v1 submitted 8 January, 2024;
originally announced January 2024.
-
Optimal Order Execution subject to Reservation Strategies under Execution Risk
Authors:
Xue Cheng,
Peng Guo,
Tai-ho Wang
Abstract:
The paper addresses the problem of meta order execution from a broker-dealer's point of view in Almgren-Chriss model under order fill uncertainty. A broker-dealer agency is authorized to execute an order of trading on client's behalf. The strategies that the agent is allowed to deploy is subject to a benchmark, referred to as the reservation strategy, regulated by the client. We formulate the brok…
▽ More
The paper addresses the problem of meta order execution from a broker-dealer's point of view in Almgren-Chriss model under order fill uncertainty. A broker-dealer agency is authorized to execute an order of trading on client's behalf. The strategies that the agent is allowed to deploy is subject to a benchmark, referred to as the reservation strategy, regulated by the client. We formulate the broker's problem as a utility maximization problem in which the broker seeks to maximize his utility of excess profit-and-loss at the execution horizon. Optimal strategy in feedback form is obtained in closed form. In the absence of execution risk, the optimal strategies subject to reservation strategies are deterministic. We establish an affine structure among the trading trajectories under optimal strategies subject to general reservation strategies using implementation shortfall and target close orders as basis. We conclude the paper with numerical experiments illustrating the trading trajectories as well as histograms of terminal wealth and utility at investment horizon under optimal strategies versus those under TWAP strategies.
△ Less
Submitted 6 January, 2024;
originally announced January 2024.
-
The Effects of High-frequency Anticipatory Trading: Small Informed Trader vs. Round-Tripper
Authors:
Ziyi Xu,
Xue Cheng
Abstract:
In an extended Kyle's model, the interactions between a large informed trader and a high-frequency trader (HFT) who can anticipate the former's incoming order are studied. We find that, in equilibrium, HFT may play the role of Small-IT or Round-Tripper: both of them trade in the same direction as IT in advance, but when IT's order arrives, Small-IT continues to take liquidity away, while Round-Tri…
▽ More
In an extended Kyle's model, the interactions between a large informed trader and a high-frequency trader (HFT) who can anticipate the former's incoming order are studied. We find that, in equilibrium, HFT may play the role of Small-IT or Round-Tripper: both of them trade in the same direction as IT in advance, but when IT's order arrives, Small-IT continues to take liquidity away, while Round-Tripper supplies liquidity back. So Small-IT always harms IT, while Round-Tripper may benefit her. What's more, with an anticipatory HFT, normal-speed small uninformed traders suffer less and price discovery is accelerated.
△ Less
Submitted 26 February, 2024; v1 submitted 27 April, 2023;
originally announced April 2023.
-
Are Large Traders Harmed by Front-running HFTs?
Authors:
Ziyi Xu,
Xue Cheng
Abstract:
This paper studies the influences of a high-frequency trader (HFT) on a large trader whose future trading is predicted by the former. We conclude that HFT always front-runs and the large trader is benefited when: (1) there is sufficient high-speed noise trading; (2) HFT's prediction is vague enough. Besides, we find surprisingly that (1) making HFT's prediction less accurate might decrease large t…
▽ More
This paper studies the influences of a high-frequency trader (HFT) on a large trader whose future trading is predicted by the former. We conclude that HFT always front-runs and the large trader is benefited when: (1) there is sufficient high-speed noise trading; (2) HFT's prediction is vague enough. Besides, we find surprisingly that (1) making HFT's prediction less accurate might decrease large trader's profit; (2) when there is little high-speed noise trading, although HFT nearly does nothing, the large trader is still hurt.
△ Less
Submitted 26 July, 2023; v1 submitted 11 November, 2022;
originally announced November 2022.
-
Flashot: A Snapshot of Flash Loan Attack on DeFi Ecosystem
Authors:
Yixin Cao,
Chuanwei Zou,
Xianfeng Cheng
Abstract:
Flash Loan attack can grab millions of dollars from decentralized vaults in one single transaction, drawing increasing attention from the Decentralized Finance (DeFi) players. It has also demonstrated an exciting opportunity that a huge wealth could be created by composing DeFi's building blocks and exploring the arbitrage change. However, a fundamental framework to study the field of DeFi has not…
▽ More
Flash Loan attack can grab millions of dollars from decentralized vaults in one single transaction, drawing increasing attention from the Decentralized Finance (DeFi) players. It has also demonstrated an exciting opportunity that a huge wealth could be created by composing DeFi's building blocks and exploring the arbitrage change. However, a fundamental framework to study the field of DeFi has not yet reached a consensus and there's a lack of standard tools or languages to help better describe, design and improve the running processes of the infant DeFi systems, which naturally makes it harder to understand the basic principles behind the complexity of Flash Loan attacks.
In this paper, we are the first to propose Flashot, a prototype that is able to transparently illustrate the precise asset flows intertwined with smart contracts in a standardized diagram for each Flash Loan event. Some use cases are shown and specifically, based on Flashot, we study a typical Pump and Arbitrage case and present in-depth economic explanations to the attacker's behaviors. Finally, we conclude the development trends of Flash Loan attacks and discuss the great impact on DeFi ecosystem brought by Flash Loan. We envision a brand new quantitative financial industry powered by highly efficient automatic risk and profit detection systems based on the blockchain.
△ Less
Submitted 31 January, 2021;
originally announced February 2021.
-
Modelling Universal Order Book Dynamics in Bitcoin Market
Authors:
Fabin Shi,
Nathan Aden,
Shengda Huang,
Neil Johnson,
Xiaoqian Sun,
Jinhua Gao,
Li Xu,
Huawei Shen,
Xueqi Cheng,
Chaoming Song
Abstract:
Understanding the emergence of universal features such as the stylized facts in markets is a long-standing challenge that has drawn much attention from economists and physicists. Most existing models, such as stochastic volatility models, focus mainly on price changes, neglecting the complex trading dynamics. Recently, there are increasing studies on order books, thanks to the availability of larg…
▽ More
Understanding the emergence of universal features such as the stylized facts in markets is a long-standing challenge that has drawn much attention from economists and physicists. Most existing models, such as stochastic volatility models, focus mainly on price changes, neglecting the complex trading dynamics. Recently, there are increasing studies on order books, thanks to the availability of large-scale trading datasets, aiming to understand the underlying mechanisms governing the market dynamics. In this paper, we collect order-book datasets of Bitcoin platforms across three countries over millions of users and billions of daily turnovers. We find a 1+1D field theory, govern by a set of KPZ-like stochastic equations, predicts precisely the order book dynamics observed in empirical data. Despite the microscopic difference of markets, we argue the proposed effective field theory captures the correct universality class of market dynamics. We also show that the model agrees with the existing stochastic volatility models at the long-wavelength limit.
△ Less
Submitted 15 January, 2021;
originally announced January 2021.
-
Common Decomposition of Correlated Brownian Motions and its Financial Applications
Authors:
Tianyao Chen,
Xue Cheng,
Jingping Yang
Abstract:
In this paper, we develop a theory of common decomposition for two correlated Brownian motions, in which, by using change of time method, the correlated Brownian motions are represented by a triplet of processes, $(X,Y,T)$, where $X$ and $Y$ are independent Brownian motions. We show the equivalent conditions for the triplet being independent. We discuss the connection and difference of the common…
▽ More
In this paper, we develop a theory of common decomposition for two correlated Brownian motions, in which, by using change of time method, the correlated Brownian motions are represented by a triplet of processes, $(X,Y,T)$, where $X$ and $Y$ are independent Brownian motions. We show the equivalent conditions for the triplet being independent. We discuss the connection and difference of the common decomposition with the local correlation model. Indicated by the discussion, we propose a new method for constructing correlated Brownian motions which performs very well in simulation. For applications, we use these very general results for pricing two-factor financial derivatives whose payoffs rely very much on the correlations of underlyings. And in addition, with the help of numerical method, we also make a discussion of the pricing deviation when substituting a constant correlation model for a general one.
△ Less
Submitted 7 November, 2020; v1 submitted 7 July, 2019;
originally announced July 2019.
-
Optimal execution with dynamic risk adjustment
Authors:
Xue Cheng,
Marina Di Giacinto,
Tai-Ho Wang
Abstract:
This paper considers the problem of optimal liquidation of a position in a risky security in a financial market, where price evolution are risky and trades have an impact on price as well as uncertainty in the filling orders. The problem is formulated as a continuous time stochastic optimal control problem aiming at maximizing a generalized risk-adjusted profit and loss function. The expression of…
▽ More
This paper considers the problem of optimal liquidation of a position in a risky security in a financial market, where price evolution are risky and trades have an impact on price as well as uncertainty in the filling orders. The problem is formulated as a continuous time stochastic optimal control problem aiming at maximizing a generalized risk-adjusted profit and loss function. The expression of the risk adjustment is derived from the general theory of dynamic risk measures and is selected in the class of $g$-conditional risk measures. The resulting theoretical framework is nonclassical since the target function depends on backward components. We show that, under a quadratic specification of the driver of a backward stochastic differential equation, it is possible to find a closed form solution and an explicit expression of the optimal liquidation policies. In this way it is immediate to quantify the impact of risk-adjustment on the profit and loss and on the expression of the optimal liquidation policies.
△ Less
Submitted 13 July, 2019; v1 submitted 3 January, 2019;
originally announced January 2019.
-
Distinguishing manipulated stocks via trading network analysis
Authors:
Xiao-Qian Sun,
Xue-Qi Cheng,
Hua-Wei Shen,
Zhao-Yang Wang
Abstract:
Manipulation is an important issue for both developed and emerging stock markets. For the study of manipulation, it is critical to analyze investor behavior in the stock market. In this paper, an analysis of the full transaction records of over a hundred stocks in a one-year period is conducted. For each stock, a trading network is constructed to characterize the relations among its investors. In…
▽ More
Manipulation is an important issue for both developed and emerging stock markets. For the study of manipulation, it is critical to analyze investor behavior in the stock market. In this paper, an analysis of the full transaction records of over a hundred stocks in a one-year period is conducted. For each stock, a trading network is constructed to characterize the relations among its investors. In trading networks, nodes represent investors and a directed link connects a stock seller to a buyer with the total trade size as the weight of the link, and the node strength is the sum of all edge weights of a node. For all these trading networks, we find that the node degree and node strength both have tails following a power-law distribution. Compared with non-manipulated stocks, manipulated stocks have a high lower bound of the power-law tail, a high average degree of the trading network and a low correlation between the price return and the seller-buyer ratio. These findings may help us to detect manipulated stocks.
△ Less
Submitted 10 October, 2011;
originally announced October 2011.