Skip to content
All library documents

How Order Flow and Economic Forces Move Stock Prices

Article Quant Q&A · Author: Joselin Jocklingson

Summary

The document explains stock-price changes across short and long horizons. For immediate price movements, it describes how market orders consume available liquidity and how limit orders state prices at which participants are willing to trade. Dealers and market makers manage inventory and may adjust quotes as buying and selling pressure changes. The discussion also distinguishes auction and dealer markets, noting that spreads and liquidity can differ. It cautions that reported trades and charts may not show the exact sequence or full state of orders in real time.

For longer horizons, the answers point to company earnings, productivity, macroeconomic conditions, interest rates, inflation, demographics, and competition from other assets. Several contributors stress that there is no single cause and that attributing a particular day’s move to a specific event can be difficult. These are broad explanatory accounts rather than a unified empirical model; some market-structure and macroeconomic claims are simplified, and the document does not test them against data.

Key ideas

  • Market orders can move prices by consuming liquidity at available quotes.
  • Limit orders display trading prices and can add liquidity to the market.
  • Market makers adjust quotes while managing inventory and the balance of buying and selling pressure.
  • Short-run price mechanics differ from long-run influences such as earnings, productivity, and economic conditions.
  • A single cause for a particular price move is often difficult to establish.

Tags

Full text
# What actually drives a stock price up or down?


# What actually drives a stock price up or down?












Can someone please explain to me how stock prices go up and down? What are the underlying physical and information technology phenomena and algorithms that drive a stock up or down? Books just say that a stock price reflects what their owners think the stock is worth and not what it is actually worth.

Thank you for your feedback.

## Answer by Dave Harris (score 3, accepted)

https://quant.stackexchange.com/a/43343

> Can someone please explain to me how stock prices go up and down? What are the underlying physical and information technology phenomena and algorithms that drive a stock up or down?

This question may be better on the personal finance or the economics site, but I will answer it here. The question is very difficult because no one thing causes it. There is also a very different solution to the question if you are asking about the immediate future versus a long period of time as the factors are different.

In the short-run, if you look at the mechanics of a trade, there are two main broad categories of orders and in the United States, two types of markets. The two order types are market orders and limit orders. The two market types are auction markets and dealer markets. Both of these sentences are overgeneralizations. The NYSE does not work the way the now defunct Arizona exchange worked. Fill-or-kill orders do not work the way a market order for a single round lot works.

The key element of equity market orders is that until an offer is made, the short-run supply curve and the demand curve do not intersect. The existence of a bid-ask spread implies the curves are non-intersecting in the immediate period. For an order to be filled, the immediate curve has to be shifted. Of course, the true short-run curves includes as yet unseen supply and demand. I may be willing to pay \$50 per share for IBM but may not have placed my order yet. I might be eating lunch. The immediate demand curve cannot include my order, but the short-run curve, at least in theory, does.

Market makers and specialists keep a supply of cash and shares on hand to cover market orders in the event no other party has an outstanding market order that would cover the transaction. The bid-ask spread is their compensation for carrying the inventory risk. As an example, imagine a bid price of 49.50 and an ask of 49.75. You buy shares at market for 49.75. The bid and ask change to 49.600 and 50.00. Someone else wants to sell, so they ask 49.60 for the shares. The market maker pays 49.60 and recovers their inventory that they had sold to you, pocketing the fifteen cents.

When someone places a market order, it drains the liquidity of the market maker or specialist by taking away their inventory of cash or shares. A market order allows a filling of shares, pretty much on demand, but the price is set by the dealer if there is no outstanding limit order to cover it. For larger orders, a market order is an order to continue bidding any amount of money to guarantee you are the high bidder as a buyer or the low bidder as a seller in order to be certain that your order will be filled, no matter what.

Limit orders state the prices that can be paid by a broker in order for you to buy or sell shares. If I am willing to sell at \$50, then I cannot receive less than \$50 (gross of commissions). I can receive more. If I am willing to pay \$12.50 per share, then I will not have to pay more than \$12.50 per share before commissions. If there is no offer inside my limits, then my order will never be filled.

For market orders, the price is driven by the bidding process. Market orders will keep bidding higher and higher or lower and lower until the order is filled. For limit orders, which provide liquidity to the market makers, those limits set the pricing for the market makers as they can use those orders to fill their obligations. People who state the prices publicly are the ones who decide what the price will be. In exchange for setting a limit order, the brokers are obligated to get the best price available for the maker of those limit orders. So if I say I will pay \$12.50, but a broker can get it for me at \$11.40, then I will get it at $11.40.

Now there is one more wrinkle in the short-run. When you look at a chart or trades on a ticker, that is not the actual order in which they happened. That is the order in which they were reported. Large orders would disrupt the market, so they are only reported as a weighted average of the trade prices and only after that order would no longer have a disruptive effect on the price. So if there is an order to buy 10,000 shares and everyone knew that people might make really high limit orders to make it hard to fill the big order and others might glom on to buy knowing the price will be driven up by the large order. So if you see a price change, it might not reflect the true current price structure. The bid-ask spread does, but the immediate spread does not appear on the charts and isn't recorded for most of US history.

In the long run, prices are driven by large macroeconomic forces. If you have a choice of eating or buying shares, you will choose to eat. This means that stock market money is always leftover money. It is money above your consumption needs. In addition, other assets compete for your money, such as bonds and bank accounts. As such, if someone will pay enough to borrow money, stocks cannot give a lower return as they make no promises about future cash flows.

Furthermore, stocks are countercyclical. There is more free money during an economic expansion than a recession. So stock prices are the worst when people need money the most, and the best when they least need it. Bonds are procyclical. When the economy is doing poorly, people seek the safety of bonds. Also, of importance, inflation falls as there is no demand for money, comparatively and so bonds become of greater value. Likewise, to stimulate the economy interest rates fall, so the present value of bonds rises.

In the very long term, dividends follow inflation on a lagged basis, and prices move with corporate productivity. Improvements in productivity that persist have a long impact on prices. In the very long term, inflation and persisting interest rates impact prices. In the very long term, demographic factors matter. In the US, baby boomers are retiring and selling their shares to live off the money. There are fewer young people, fewer even now that immigrants are being deported. If foreigners are willing to pick up the slack, the price will rise. If native borns need even more shares to be sold, then prices will fall. Finally, taxes have a complicated relationship with stocks. Low tax levels are bad in the long run. High tax levels are bad in the long run. That is because levels of taxation reflect the public expenditure on infrastructures like roads or law enforcement. The disaster that was Kansas' tax structure is a great example. Kansas destroyed its economy with tax rates that were unsustainably low. So did Greece. On the other hand, during the Cold War tax rates were very high, at the margin, but didn't always buy useful public goods.

There is also a difference between auction markets and dealer markets. In auction markets, buyers bid against other buyers for the right to buy while sellers bid against other sellers for the right to sell. These are high volume markets and so price swings tend to be smaller because there is a greater level of competition and more observable orders that permits easier price discovery. Dealer markets are more like retail stores. All trades are with dealers and no trades are with other individuals. Dealers set the prices, though competitively against other dealers.

As the dealers are covering the markets out of their own pockets, the liquidity costs are higher, so the spreads are wider. This makes markets look more volatile even when they are basically flat and moving sideways. In dealer markets, ever trade is wider.

There are tons of algorithms in place, but there isn't just one. If you would look at my trades as an "algorithm", it wouldn't look like another investor's algorithm. I use long run valuation rules. A day trader uses a minute-by-minute or second-by-second time horizon. We are not using the same thinking and we do not have the same goals. There are thousands of separate algorithms in place.

## Answer by Socratees Samipillai (score 7)

https://quant.stackexchange.com/a/43111

The short answer: many factors. The following are some key ones:

- Reported Trades - Stocks are quoted "bid" and "ask" rates. These are the traders setting their prices much similar to a local farmers market trading their produce.

- Volume - number of shares traded.

- Price trend - When the bid volume is higher than the ask volume, the selling is stronger, and the price is more likely to move down than up. When the ask volume is higher than the bid volume, the buying is stronger, and the price is more likely to move up than down.

- Institutional actions - Institutions account for most of the trading in larger stocks, so their action usually has the most influence on the stock price.

References:

- https://finance.zacks.com/can-tell-direction-stock-price-looking-bid-vs-ask-volume-2758.html

- https://money.stackexchange.com/questions/35686/how-is-stock-price-determined

## Answer by Alex C (score 2)

https://quant.stackexchange.com/a/43112

Stocks are usually traded by (one or more) Market Maker(s), who stand ready to sell to you at a price $s_a$ or buy from you at a price $s_b$. Since $s_a>s_b$ they make a profit if the price does not change. However, they also own stock themselves (between the time you sell it to them and someone else buys it from them). They have to manage this "inventory" carefully.

If $s_a,s_b$ are too high (higher than the market consensus) they will find that a lot of people want to sell to them and no one want to buy. Their inventory will rapidly increase and they will be stuck with a lot of unsaleable stock. Vice versa if $s_a,s_b$ is too low, a lot of people want to buy no one wants to sell, their inventory will quickly go to zero and they will be out of business again.

As a result market makers are very sensitive to the balance of supply and demand from investors. They constantly adjust their prices, lowering it if it seems there is excess supply (more sellers than buyers) and raising it it if they see excess demand. Price will quickly adjust to the momentary supply/demand for the stock from investors.

The prices in other markets (food, housing) also adjusts to supply and demand, but not as quickly. It takes a long time for a food store to adjust its sales prices, and even longer for the seller of a house to adjust. With stocks the adjustment is nearly instantaneous (because many people can buy or sell the item instantly in a central two-way market).

## Answer by Ishan Shah (score 1)

https://quant.stackexchange.com/a/43119

That's a most difficult question to answer as the famous quote says "in short run the markets are like voting machines". What I have seen is most people try to correlate the stock price movement with the macro or micro events happening around. For instance, if the Indian indices fall then people start to relate it with a rise in crude prices or a rise in the current account deficit. However, on most days, I believe it is very difficult to give exact reasons for why a stock price is rising or falling.

In long run, the stock prices are weighing machines and the price will follow the earnings of the company. Therefore, you can determine a way in which you can identify fundamentally strong companies and invest in them and identify fundamentally weak companies and short them. You can employ quant techniques to find fundamentally strong and weak companies.

## Answer by wildbunny (score 1)

https://quant.stackexchange.com/a/43334

The physical process is this (up move in a continuous double auction):

- Depth at best ask (or maybe multiple ask price levels) is exceeded by incoming market buy volume

- Once all the depth at an ask price level is consumed, that level will likely become a bid and the mid price will move up

- For a large move up, what happens is after (or maybe before) the depth at the best ask is consumed, liquidity providers remove their sell orders from the book, further reducing the depth on the ask side of the book, which causes the incoming buy volume to consume more ask price levels, leading to a greater move up.

Same thing happens for a down move, but with sell volume and bid depth.

Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.