Heterogeneous Trader Responses to Macroeconomic Surprises: A Simulation of Order‑Flow Dynamics
Abstract
Understanding how market participants react to shocks like scheduled macroeconomic news is crucial for both traders and policymakers. We develop a calibrated data‐generation process (DGP) that embeds four stylized trader archetypes—retail, pension, institutional, and hedge funds—into an extended CAPM augmented by CPI surprises. Each agent’s order‐size choice is driven by a softmax discrete‐choice rule over small, medium, and large trades, where utility depends on risk aversion, surprise magnitude, and liquidity. We aim to analyze each agent’s reaction to shocks and Monte Carlo experiments show that (i) higher‐information, lower‐aversion agents take systematically larger positions and achieve higher average wealth; (ii) retail investors under‐react on average, exhibiting smaller allocations and more dispersed outcomes; and (iii) ambient liquidity amplifies the sensitivity of order flow to surprise shocks. Our framework offers a transparent benchmark for analyzing order‐flow dynamics around macro releases and suggests how real‐time flow data could inform news‐impact inference.
1 Introduction
Scheduled macroeconomic announcements—such as the Consumer Price Index (CPI) and FOMC releases—are among the most important days accompanied by high trading flows and volatility spikes. Previous studies document large spikes in trade volume and transient price dislocations following surprises in macro data. At the same time, market participants differ widely in risk tolerance, information access, and execution speed. Yet, despite a growing literature on macro surprises and asset returns, relatively little is known about how heterogeneous traders’ behaviors interact to produce the observed cross‐sectional patterns in order flow and reality.
Due to the constraint and limited access, this paper bridges that gap by introducing a simulation‐based framework that tries to explore the behavioral differences in which four trader types—retail investors, pension funds, institutional investors, and hedge funds—choose discrete order sizes via a softmax‐based utility maximization. We extend the standard CAPM to include both temporary and permanent components of CPI surprises, and we calibrate each agent’s risk aversion and information quality to stylized empirical values. A Monte Carlo grid search over portfolio weights then yields each trader’s optimal allocation under varying surprise magnitudes and liquidity conditions. Our contributions are threefold:
-
1.
We demonstrate how differences in risk aversion and information translate into systematic differences in trade size and wealth accumulation across agent types.
-
2.
We quantify the amplifying role of market liquidity in shaping the sensitivity of order flow to macro surprises.
-
3.
We provide a transparent benchmark model that can be extended and get closer to reality: given observed order‐flow patterns around macro releases, one could infer plausible surprise magnitudes or heterogeneity parameters.
2 Literature Review
2.1 Impact of Macroeconomic Surprises on Trading
A consistent finding in recent empirical work is that major macroeconomic announcements provoke significant trading activity in financial markets. For example, an extensive study of UK markets by Heinlein and Lepori finds that a “large number of macroeconomic announcements increase trading activity in the stock market,” indicating that news releases lead market participants to revise expectations and trade accordingly. And the same research mentions that while volume surges, price swings are caused by significant amount of trading activities from various agents.
Beyond volume, researchers have probed how price formation and return patterns reflect the heterogeneous processing of macro news. Han (2025) develops a dynamic noisy rational-expectations model to explain empirical anomalies around announcement days. In the paper, it mentioned that when some investors are better informed than others, informed traders’ forecast revisions only imperfectly trickle into average expectations, allowing “noise” to build up in prices prior to the news. Once the announcement occurs and public information resets beliefs, that accumulated noise gets corrected – resulting in price reversals or unusual return patterns on announcement day. In the later DGP, we will find ways to capture the differences with simulated noises and adjust the scaling parameter on the variance according to various agents.
2.2 Heterogeneous Portfolio Rebalancing
When a major macroeconomic surprise happens in the market, investors do not all adjust their portfolios in the same way. A growing number of recent research show how heterogeneity in beliefs and constraints leads to different portfolio rebalancing in response to macro news. One important insight is that announcements often synchronize certain trading actions by resolving uncertainty and reducing disagreement. Ying (2021) documents this phenomenon around U.S. monetary policy announcements: using high-frequency equity and options data, he finds that the open interest in index options drops by over 50 on FOMC announcement days, implying that a wave of investors are unwinding their pre-positioned trades once the news is publicly available.
Another group of researchers examines how investors move money between asset classes (stocks, bonds, etc.) after macro shocks – and finds that heterogeneity in investor type is crucial. Lu and Wu (2023) focus on institutional investors who allocate across multiple asset classes and propose that their rebalancing activity is a key driver of stock market reactions to interest-rate surprises. The intuition is that certain institutions will sell equities and buy bonds when rates rise unexpectedly, to maintain portfolio targets or exploit higher yields, whereas other investors like equity-focused retail traders may not respond to substituting between asset classes. This heterogeneous behavior will further create an uneven impact: stocks heavily held by multi-asset allocators are more sensitive to the rebalancing sell-off than stocks. However, this is a more complicated set of questions that need to be investigated further and can’t be captured with a simpler DGP setting.
2.3 Differences Between Trader Types
Perhaps the most practical manifestation of heterogeneous responses to macro news is the contrast between retail investors and institutional investors. A number of post-2020 studies have zeroed in on how these trader groups differ in anticipation of and reaction to economic announcements. Evidence from stock markets suggests a clear divergence in behavior before the news breaks. Jia et al. (2023) analyze proprietary Chinese stock exchange data around a high-profile monthly macro announcement. They find that institutional investors actively de-risk ahead of the announcement: on average, institutions cut their overall stock exposure in the days leading up to the news, while selectively tilting into smaller-cap, riskier stocks to seek higher potential upside.
And interestingly, many individuals see an asset’s rally on good news and decide to bet on a reversal, rather than update their fundamental outlook. The authors demonstrate that this behavior is predictable and uninformed: simple trading strategies that take the opposite side of aggregate retail order flow around news events are profitable, indicating that retail trades systematically mis-react to macro news. This also reinforces the hypothesis that different market participants have differential abilities to interpret public information papers and institutional investors typically have better models and expertise to quickly digest an employment report or GDP print, whereas retail traders may be swayed by heuristics, recent price movements, or media sentiment. As historical trades and order data are highly restricted by market makers and exchanges, there are limited amounts of publicly available data so we decided to analyze these hypotheses and claims regarding different investors’ reactions to shocks with simulated data. All the literature provides us a theoretical background for the parameter tuning for the DGP.
3 Data Generation Process
3.1 Market Participants Heterogeneity
We classify traders into four types with fixed risk aversion levels: Retail, Pension Funds, Institutional Investors, and Hedge Funds. Risk appetite and market information levels increase progressively across these types. Hedge funds, with the highest risk tolerance and better information access, trade more aggressively on news, placing larger orders. In contrast, retail trade less frequently and in smaller quantities.
3.2 Events Expectations and Surprises
Before scheduled economic announcements, platforms like Bloomberg post publish consensus forecasts. For example, if the market expects the next month’s CPI to be 3.3%. And if the actual CPI is 3.5%, the surprise, defined as the difference between the actual and the expected value, will be
A good surprise means the data is better than expected. However, in the case of CPI, a higher CPI implies higher interest rates, reduced spending, and an increased cost of borrowing; hence, a positive surprise number is actually considered a bad surprise.
3.3 Asset Classification
In the DGP, we assume to have two types of asset. Risk Free Asset; Risk On Inflation Sensitivity Asset.
3.4 Extended CAPM Framework
Building on the Capital Asset Pricing Model (CAPM), we aim to measure how asset returns are determined not only by traditional market risk but also by unexpected macroeconomic shocks. In the standard CAPM, the excess return on an asset is explained solely by its sensitivity to the market premium. While, in this project, asset returns also depend on macroeconomic shocks, which decomposed into temporary and permanent components.
(1) |
Here, is the traditional market premium while measures the asset’s sensitivity to overall market movements. captures the asset’s response to the overall CPI surprise. And measures the permanent component of the CPI surprise. And notice there might be structural changes in the market condition after some huge shocks, we then decide to use to measure how much of the asset’s return is affected by these long lasting changes, ie. huge inflation rate that could alter the entire market. And the here accounts for asset-specific characteristics not captured by other factors.
3.5 Utility Function
In our simulation, each trader selects an order size from a discrete set (e.g., small, medium, large). The instantaneous utility for trader choosing order size is modeled as:
(2) |
Here we have is a baseline utility term for order size ; is trader ’s risk aversion level; is the magnitude of the CPI surprise; is a level of market liquidity.
3.6 Discrete Choice via Softmax
Given we can measure the utility of each trader’s transaction, we further construct the choice probabilities as a softmax function for each trader.
(3) |
Here the denominator is the sum of all probabilities, which sum up to 1. And exponentiating the utility magnifies differences, meaning a higher utility leads to a substantially higher probability of the trader choose to trade size . In parallel to the discrete choice of the order size, we capture how traders allocate their wealth between assets and in which order quantity
3.7 Constant Relative Risk Aversion Utility Maximization

In the DGP, we assume that each trader’s risk aversion parameter, , is constant over multiple time periods. In the graph we assume Retail Trader has the highest risk aversion , Pension has , Institution has , and Hedge Funds has . Traders maximize the expected utility of their final wealth, where utility is given by the isoelastic (CRRA) function:
(4) |
with final wealth defined as:
Since the is the initial wealth, we can factor out from the utility expression:
Then we substitute into the utility function
Because is a constant factor, solving for the optimal is equivalent to
In our model, we define follows a normal distribution with mean 0.1 and standard deviation 0.2. Because a closed‐form solution for the CRRA utility optimization generally does not exist under this distributional assumption, we thus want to solve this with a numerical (Monte Carlo) approach to approximate the trader’s expected utility and select an optimal allocation.
Monte Carlo Approximation
We implement a discrete grid search over to approximate the optimal solution. The interval is divided into increments of 0.05, generating candidate allocations. For each , we draw multiple i.i.d. samples of the risky return from a normal distribution with mean 0.1 and standard deviation 0.2, adjusting the standard deviation based on each trader’s information level (more informed traders have lower noise).
For each draw, we compute the final wealth and evaluate the trader’s CRRA utility . We then estimate by averaging over all samples.
An alternative approach is to optimize the expectation under exponentiation, leveraging the analytical result for normally distributed variables:
However, directly substituting into the utility function may misrepresent risk preferences, as expected utility depends on the full return distribution, and after some testing and exploration, we decided to settle with Monte Carlo for the DGP.
3.8 Expectations before the DGP
One of the primary objectives of this project is to explore how differences in trader behavior and information affect portfolio returns. In our framework, we hypothesize that:
-
•
Institutional traders and hedge funds, with professional quantitative agents have more accurate information and lower risk aversion, are likely to achieve higher returns than other traders.
-
•
Retail traders, who are less informed, tend to earn the lowest among the four types of traders.
-
•
Pension funds are more conservative than institutional traders and hedge funds but are more informed than retail traders, they may choose safer assets and has better portfolio performance than retail.
4 Discussion on DGP Result
Risky Asset Allocation by Periods

Here, we simulate 500 traders per type across 36 CPI events and analyze their risky asset allocation. The line plot depicts the average fraction of wealth allocated to the risky asset for each trader type. As expected, Hedge Funds allocate the largest fraction, followed by Institutional, Pension, and Retail investors.
In our DGP, Retail traders, having the highest risk aversion and least amount of quality information, perceive greater noise in assessing events, leading to lower and less frequent adjustments in risky asset holdings. This aligns with our assumptions: Hedge Funds exhibit the highest risk appetite, Institutional traders follow, Pension funds are more conservative, and Retail investors are the most risk-averse.
Final Wealth Distribution

Here, Hedge Funds exhibit the highest exposure to risky assets, resulting in the widest distribution of final wealth. And notice Hedge funds generally are more informed, in the DGP, we normally see them has a better risk appetite and understanding of the risk trade off and making better decisions and the wealth distribution histogram shows evidence to support this point(Figure 3).
Across 500 individuals per trader type, Hedge Funds achieve the highest average wealth over time, reflecting their willingness to take on greater volatility (Figure 4). And with increasing liquidity in the market, there is a higher tendency for all traders to increase the trade, to maximize their overall utility.(Figure 5)


5 Discussion and Further Improvements
The DGP is designed to model trader behavior under macroeconomic shocks, but it relies on simplifying assumptions that may not fully capture real-world complexities. Below, we outline several key limitations and potential refinements.
Simplified Two Assets Structure The model includes only a risk-free asset and an inflation-exposed risky asset, assuming independence between them. Real markets feature diverse range of assets with varying inflation sensitivities and complex covariance structures. Future work should incorporate a richer asset space with dynamic correlations and heterogeneous risk profiles.
Static Risk Aversion We assume traders have fixed risk aversion levels, however, in reality, risk preferences is dynamic and change with market conditions. For instance, retail traders may become more risk-averse after getting large returns, while hedge funds may adjust risk-taking in response to what they perceive as structural market shifts. Future research should model dynamic risk aversion based on market feedback and trader adaptation instead of settle with constant risk aversion assumption.
Return Distribution Assumptions We assume risk-free asset has a constant and that risky asset returns follow a normal distribution with a fixed mean 0.1% and varying standard deviations based on trader information levels. (eg. Hedge Funds will be 0.25% std, while other traders will have a higher std to adjust for their information level). However, in reality, many financial assets like QQQ (ETF for S&P) has a return that exhibit skewness, fat tails, and volatility clustering. A more precise specification of asset types and return distributions is necessary to better capture market dynamics.
Parameter Tuning
Several parameter in our model, like the parameter within trader’s utility function in deciding order size selection, are arbitrarily set with economic intuition behind aiming to approximate reality.
For instance, to capture liquidity effects, we assume large orders yield significantly lower utility during low-liquidity periods. Liquidity is modeled as a normally distributed random variable: to simulate period with different level of liquidity. And the surprise is also generated as a scaled version of a normally distributed random variable, which can be better modeled. Similarly after literature review, here is a parameter setup for trader heterogeneity to approximate the real market conditions.
Shock Model
Currently, macroeconomic shocks are simulated as a combination of temporary and permanent components, where temporary shocks follow a mean-reverting normal process and permanent shocks follow a random walk. While this provides a useful decomposition, there are several areas for improvement:
temp_shocks | |||
perm_shocks | |||
cpi_surprises |
Currently, macroeconomic shocks are simulated as a combination of temporary and permanent components, where temporary shocks follow a mean-reverting normal process and permanent shocks follow a random walk. However, here we assume shocks are independent and identically distributed (iid) normal shocks. But in real life we should consider about relationship between shocks and use historical macroeconomic data to calibrate the persistence and distributional properties of shocks.
References
- [1] Lucas, Robert E. “Expectations and the Neutrality of Money.” Journal of Economic Theory, vol. 4, no. 2, 1972, pp. 103–124. https://doi.org/10.1016/0022-0531(72)90142-1.
- [2] Heinlein, Reinhold, and Gabriele M. Lepori. “Do Financial Markets Respond to Macroeconomic Surprises? Evidence from the UK.” Empirical Economics, vol. 62, 2022, pp. 2329–2371.
- [3] Jia, Calvin Dun, et al. “Macro Announcement and Heterogeneous Investor Trading in Chinese Stock Market.” SSRN, 2023. https://ssrn.com/abstract=xxxxxx.
- [4] Kaourma, Filia, et al. “News and Intraday Retail Investor Order Flow in Foreign Exchange Markets.” SSRN, 2024. https://ssrn.com/abstract=xxxxxx.
- [5] Lu, Xu, and Lingxuan Wu. “Monetary Transmission and Portfolio Rebalancing: A Cross-Sectional Approach.” SSRN, 2023. https://ssrn.com/abstract=xxxxxx.
- [6] Zhu, Xingyu Sonya. Volume Dynamics around FOMC Announcements. BIS Working Paper No. 1079, Bank for International Settlements, Mar. 2023. https://www.bis.org/publ/work1079.htm.
- [7] JPMorgan Chase & Co. Institute. “Retail Risk Investors’ Portfolios during the Pandemic.” Oct. 2023. https://www.jpmorganchase.com/institute/all-topics/financial-health-wealth-creation/retail-risk-investors-portfolios-during-the-pandemic.
- [8] Camanho, Nuno, Helene Rey, and Heiko Hau. “Global Portfolio Rebalancing and Exchange Rates.” The Review of Financial Studies, vol. 35, no. 11, 2022, pp. 5228–5274. https://doi.org/10.1093/rfs/hhac023.
- [9] Lintner, John. “The Valuation of Risk Assets and the Selection of Risky Investments in Stock Portfolios and Capital Budgets.” The Review of Economics and Statistics, vol. 47, no. 1, 1965, pp. 13–37. https://doi.org/10.2307/1924119.
- [10] Fama, Eugene F., and Kenneth R. French. “The Capital Asset Pricing Model: Theory and Evidence.” Journal of Economic Perspectives, vol. 18, no. 3, Summer 2004, pp. 25–46.