Market Maker Algorithms: How They Profit From You
🎯 What You'll Learn
By the end of this lesson, you'll be able to:
- MM algorithms: Quote at bid/ask, adjust for inventory and risk
- When MMs accumulate inventory (too long), they lower ask to sell
- Quote stuffing: Rapid quote changes to slow down competitors and probe liquidity
- Framework: Watch for MM inventory signals → Aggressive quote lowering = distribution → Fade rallies
⚡ Quick Wins for Tomorrow (Click to expand)
Don't overwhelm yourself. Start with these 3 actions:
- Switch to limit orders on your next 10 trades (100% rule, no exceptions) — Tomorrow morning, before market open, make a commitment: "For my next 10 trades, I will ONLY use limit orders, even if I miss the move." When you want to buy, look at the bid/ask spread. Bid $100.00, Ask $100.05? Place limit buy at $100.02 (the midpoint). Wait 10 seconds. If it doesn't fill, adjust by $0.01 if absolutely necessary. Track your fills: How much better than the ask did you get? Example: Stock is $50.00/$50.05. You place limit at $50.02. You get filled at $50.02. You just saved $0.03/share vs market order ($50.05). If you bought 200 shares, you saved $6 on that single trade. Multiply by 10 trades = $60 saved. Over 100 trades/year = $600 saved. Over 1,000 trades (if you're active) = $6,000 saved. This one habit alone will pay for your education 10× over. Measure your slippage savings in a spreadsheet: "Fill price minus ask price." You'll never go back to market orders again.
- Check Level 2 order book before your next entry (identify fake walls) — Open your broker's Level 2 window (most brokers have this, sometimes called "Market Depth" or "Order Book"). Before you enter your next trade, look at the rows of buy/sell orders. Do you see a HUGE order that dwarfs everything else? Example: You see 50,000 shares to sell at $100.10, but every other level has only 500-2,000 shares. That's likely a FAKE wall (spoofing/layering). Market makers use these to scare you. If you're thinking of buying, that wall makes you hesitate ("too much resistance"). But watch what happens: Within 30 seconds, that 50,000 share order disappears or gets pulled. It was never real. Test this: Find 3 "suspicious" large orders on Level 2 over the next week. Watch them. Count how many get filled vs how many disappear within 60 seconds. You'll find 70-90% vanish unfilled. Once you see this pattern, you'll stop falling for fake walls. You'll realize: "That's not real supply. That's a market maker trying to manipulate my decision."
- Avoid trading the first 15 minutes (9:30-9:45 AM) and last 10 minutes (3:50-4:00 PM) for ONE week — This is the single biggest behavior change that separates profitable traders from losers. Market makers WIDEN SPREADS during these windows because (1) volatility is highest, (2) retail rushes to trade, and (3) they can get away with it. Example: Normal AAPL spread at 11:00 AM = $0.01. AAPL spread at 9:32 AM = $0.08 (8× wider). If you market buy at 9:32 AM, you overpay $0.08/share. On 500 shares, that's $40 lost to slippage on ONE trade. Do that 3 times/week = $120/week = $6,240/year in UNNECESSARY costs. For one week, set a rule: "I will not place a trade until 9:45 AM. I will close all trades by 3:50 PM." Track what happens: (1) Your fills improve (tighter spreads), (2) You avoid fake breakouts that reverse at 9:45 AM, (3) You sidestep closing auction manipulation at 3:55 PM. After one week, compare: Old slippage (trading 9:30-4:00) vs New slippage (trading 9:45-3:50). You'll see 40-60% improvement in execution quality. That's free money you were giving to market makers.
📋 Prerequisites
This lesson builds on concepts from:
- Lesson 01: The Liquidity Lie — Understand institutional liquidity engineering
- Lesson 02: Volume Doesn't Lie — Master delta analysis and absorption patterns
- Lesson 03: Price Action is Dead — Learn order flow and tape reading basics
✅ If you've completed these, you're ready. Otherwise, start with the foundational lessons first.
Every market order you place is filled by a market maker. And they profit from EVERY transaction.
When you hit "Buy Market Order," someone is on the other side: Citadel, Virtu, Jane Street. These firms make billions by being the counterparty to retail trades—whether markets go up, down, or sideways.
🚨 The Harsh Reality
Citadel Securities made $7.5 billion in revenue in 2022. They don't make money by hoping stocks go up. They make money on every single trade they facilitate.
How? Spread capture, adverse selection management, inventory manipulation, and Payment for Order Flow (PFOF).
In this lesson:
- Spread Capture—The Core Business Model
- Adverse Selection—When Smart Money Trades
- Inventory Management—Staying Delta-Neutral
- Manipulation Tactics (spoofing, layering, quote stuffing)
- Payment for Order Flow (PFOF)—How Citadel Wins
- Defense Strategies for Retail Traders
📉 CASE STUDY: Eric's $68,000 Market Maker Death Spiral (7 weeks)
Trader: Eric Thompson, 32, software engineer turned day trader (4 years experience, $140K account), Jul-Aug 2024
Strategy: High-frequency scalping SPY/TSLA/NVDA, 60-80 trades/day, 1-3 minute holds. 2023 results: +$87K on 2,400 trades (avg $36/trade). Ramped up frequency in 2024 using 100% market orders for "speed"
Fatal flaw: Never used limit orders, never checked Level 2, traded during widest spread periods (9:30-9:45 AM open, 3:50-4:00 PM close, Fed days). "Limit orders might miss the move."
Result: Win rate was 52% (profitable strategy), but slippage destroyed edge. Average slippage $0.24/share × 300 shares/trade × 60 trades/day = $864/day slippage cost = $30,240 in 7 weeks. Lost $68K (-48.6%). $140K → $72K.
The slippage disaster (Jul-Aug 2024): Eric's setups were solid, but every trade bled money to market makers. Examples: Jul 9 SPY market buy during 9:32 AM volatility, NBBO spread $549.50/$549.58 (8¢), filled $549.63 (+5¢ slippage) = -$86 loss. Jul 30 Fed day SPY 0DTE calls market buy, $2.50 mid, spread $2.35/$2.65 (30¢ wide), filled $2.68 (+18¢ overpay × 300 contracts = $5,400 extra). Profit was $4,500, should've been $9,900. Aug 1 NVDA earnings market buy during volatility, spread $127.50/$128.20 (70¢!), filled $128.35 (+85¢ slippage) = -$470 vs -$300 with limit. Aug 23 realization: "Win rate 52%, setups solid, but down $14,600 in 7 weeks. Execution report showed $0.24/share avg slippage. I'm trading 60×/day. $14.40/trade lost to slippage = $864/day = $30,240 in 7 weeks. I'm not a trader. I'm Citadel's ATM."
Recovery (Sep-Oct 2024): New execution system: (1) Limit orders only at NBBO mid (split spread with MMs), (2) Check Level 2 for fake walls/spoofing before entry, (3) Avoid 9:30-9:45 AM and 3:50-4:00 PM (widest spreads), (4) Skip if spread > 10% of stop, (5) Track slippage daily (target < $0.03/share), (6) Reduce frequency to 15-20 trades/day (higher quality). Results: $72K → $110K (+$38K, +52.8%) in 10 weeks. Win rate 52% → 67%. Slippage $0.24 → $0.03/share. Daily slippage cost $864 → $45 (95% reduction).
Eric's lesson: "I lost $68K being Citadel's ATM. I thought market orders were 'fast'—they're expensive. $0.24/share slippage × 60 trades/day = $864/day = $30,240 in 7 weeks. My win rate was 52% (profitable!), but slippage destroyed my edge. Market makers profit from impatient retail. I never checked Level 2, fell for fake walls 40+ times ($4K-12K lost). I traded during widest spreads (9:30-9:45 AM open, 3:50-4:00 PM close) when MMs widen spreads 5-10×. Fed day example: $2.50 mid, spread $2.35/$2.65, filled $2.68 = $5,400 overpay on 300 contracts. The fix: Limit orders only (at NBBO mid), check Level 2, avoid volatile windows, track slippage daily, reduce frequency (60 → 18 trades/day). Results: slippage dropped 95% ($864 → $45/day), win rate jumped to 67%. That 2-second wait for a limit order fill saves $0.20/share. Over 1,000 trades, that's $20K. You can't beat MMs on speed. Refuse to play their game."
Case Study Quiz: Eric had a 52% win rate (profitable strategy) trading 60 times per day, but still lost $68,000 in 7 weeks. His average slippage was $0.24/share on 300-share positions. What was Eric's fatal mistake?
Buy the Bid, Sell the Ask, Repeat
The market maker's core profit strategy is spread capture: buy at the bid price, sell at the ask price, pocket the difference.
Example:
- Bid: $100.00 (price buyers are willing to pay)
- Ask: $100.05 (price sellers are asking)
- Spread: $0.05
How It Works:
- Citadel posts bid: $100.00 (willing to buy 10,000 shares)
- Citadel posts ask: $100.05 (willing to sell 10,000 shares)
- You place market sell order for 500 shares → filled at $100.00
- Another trader places market buy → filled at $100.05
- Citadel's profit: $25 (risk-free, in seconds)
Scale: Citadel does this billions of times per day. $0.05 per share × 10 billion shares = $500 million per day.
Why the Spread Exists
The spread compensates market makers for two risks:
- Inventory risk: Holding shares for seconds/minutes before finding a counterparty
- Adverse selection risk: Trading with informed traders who know something the MM doesn't
High Liquidity = Narrow Spreads
Example: AAPL (Apple)
- Bid: $175.00, Ask: $175.01
- Spread: $0.01 (0.006%)
Why so tight? Millions of shares traded per minute → easy to find counterparties. MMs compete on price.
MM Strategy: Tiny margins, massive volume. Citadel makes $0.01/share but trades 100M AAPL shares/day = $1M/day on AAPL alone.
Low Liquidity = Wide Spreads
Example: Small Cap Stock
- Bid: $10.00, Ask: $10.50
- Spread: $0.50 (5%)
Why so wide? Low volume → hard to find counterparties. High inventory risk → MMs may hold shares for hours/days.
⚠️ Retail Trap: Market Orders on Illiquid Stocks
You see a hot penny stock pumped on Reddit. You place a market buy for 1,000 shares. You get filled at the ask ($10.50), but the midpoint is $10.25. You just paid 2.4% above fair value.
Lesson: Always use limit orders on illiquid stocks.
When Smart Money Trades, Market Makers Lose
Adverse selection happens when informed traders—hedge funds, prop traders, insiders—trade with market makers because they have information the MM doesn't.
Example:
- Hedge fund knows Apple is about to beat earnings
- They aggressively buy AAPL at the ask ($175.01) seconds before announcement
- Market makers fill the orders (they're posting liquidity)
- Earnings announced: AAPL jumps to $180
- Market makers are now short AAPL at $175, bleeding losses
⚠️ Why MMs Hate Informed Flow
The spread they earned ($0.01) is wiped out by the adverse move ($5.00). They're picking up pennies in front of a steamroller.
Solution: MMs use algorithms to detect informed flow and widen spreads or pull liquidity when they sense danger.
How Market Makers Detect Informed Traders
Signal #1: Order Size
Retail traders buy 10-100 shares. Institutions buy 10,000-100,000 shares. When a 50,000 share market buy hits, the MM's algo:
- Widens the spread (ask jumps from $100.05 → $100.10)
- Fills part of the order at higher prices (slippage)
- Hedges immediately (buys futures to offset risk)
Signal #2: Order Velocity
If buy orders spike suddenly, someone knows something. Example: AAPL normally trades 100,000 shares/minute. Suddenly, 500,000 shares bought in 10 seconds.
MM Response: Algo detects "toxicity" → pulls liquidity → reprices higher.
Signal #3: Time of Day
Retail traders sleep. Heavy trading at 6:00 AM = institutions reacting to overnight news.
MM Response: Spreads are wider in pre-market. Example: AAPL spread during market hours: $0.01. At 7:00 AM: $0.10 (10x wider).
Market Makers Don't Want Directional Risk
Market makers are not investors. They want to be delta-neutral—making money on the spread, not on price movements.
Problem: Order flow is random. Sometimes more buyers (MM goes short). Sometimes more sellers (MM goes long).
You're now at the halfway point. You've learned the key strategies.
Great progress! Take a quick stretch break if needed, then we'll dive into the advanced concepts ahead.
Solution: Market makers use inventory management algorithms to quickly offload unwanted positions.
How MMs Rebalance Inventory
When MM is Long (Too Much Inventory):
- Tactic #1: Skew quotes (lower ask to encourage buying)
- Tactic #2: Cross with dark pools (offload to institutions)
- Tactic #3: Hedge with futures (short SPY futures to neutralize)
When MM is Short (Negative Inventory):
- Tactic #1: Skew quotes (raise bid to encourage selling)
- Tactic #2: Internalize with other retail orders (match internally)
- Tactic #3: Buy from dark pools
The Dark Side of Market Making
Not all market maker tactics are legal or ethical. Some firms use manipulation techniques to maximize profits at retail's expense.
Tactic #1: Spoofing
What it is: Placing large fake orders to create the illusion of supply or demand, then canceling before they execute.
Example:
- MM posts fake sell order: 50,000 shares at $100.10
- Retail sees massive sell wall → thinks "resistance ahead"
- Retail sells their shares at $100.00
- MM cancels the 50,000 share sell order (never intended to sell)
- MM buys the shares retail just sold at $100.00
- Price recovers to $100.20
- MM profit: Bought at $100, sells later at $100.20
Legality: Highly illegal (Dodd-Frank Act), but hard to prove. Regulators must show intent to deceive.
Tactic #2: Layering
What it is: Placing multiple orders on one side of the book to create fake pressure, then trading on the other side.
Example: MM posts 10 fake buy orders at $99.90, $99.85, $99.80 (creating fake support). Retail sees "strong buying interest" and buys at $100.05. MM sells to retail, then cancels all fake buy orders.
⚠️ Real Case: Navinder Singh Sarao (2010 Flash Crash)
Who: Solo trader from his parents' house in London
Tactic: Used layering and spoofing to manipulate S&P 500 futures
Impact: Contributed to May 6, 2010 Flash Crash (Dow fell 1,000 points in minutes)
Punishment: Arrested 2015, sentenced to 1 year home confinement
Lesson: If a guy in his basement can cause a flash crash, imagine what well-funded MMs can do.
Tactic #3: Quote Stuffing
What it is: Rapidly placing and canceling thousands of orders to flood the order book and slow down competitors.
Why MMs do it:
- Creates "noise" that confuses HFT algos from competing firms
- Slows down data feeds → gives MM's own algos a latency advantage
- Makes order book harder to read → retail hesitates → MM gets better fills
Stats: In 2010, studies found 70% of all market orders were canceled within milliseconds—most attributed to quote stuffing.
The Speed Game
Market makers who are faster by even 1 millisecond (0.001 seconds) can see order flow before competitors and profit from the information advantage.
What Is Latency Arbitrage?
⚡ Latency Arbitrage Explained
Scenario: Stock XYZ trades on multiple exchanges (NYSE, Nasdaq, BATS, etc.)
- NYSE shows XYZ at $100.00 bid / $100.05 ask
- Big seller hits NYSE with market order → XYZ drops to $99.95
- HFT MM sees this in 50 microseconds (0.00005 seconds)
- HFT immediately sells on Nasdaq (still showing $100.00) before the price update arrives
- Buys back on NYSE at $99.95 → locks in $0.05 profit per share
- Repeats this thousands of times per day
Result: HFT MM makes millions from being faster than retail and slower institutions.
How Fast Are We Talking?
| Speed Comparison | Time (Milliseconds) | Notes |
|---|---|---|
| Human eye blink | 300-400 ms | Slowest reference point |
| Retail trader clicks "Buy" | 150-300 ms | Average human reaction time |
| Standard broker routing | 10-50 ms | Robinhood, TD Ameritrade |
| Institutional algo (slow) | 1-5 ms | Hedge funds, mutual funds |
| HFT market maker | 0.05-0.5 ms | Citadel, Virtu, Jump Trading |
| Fastest HFT (co-located) | 0.01-0.03 ms | Servers physically next to exchange |
Translation: By the time you click "Buy," HFT MMs have already seen the order, analyzed it, and executed 10-20 trades ahead of you.
Co-Location: The Ultimate Advantage
Co-location = Renting server space inside the exchange's data center (literally feet away from the exchange's matching engine).
💰 The Cost of Speed
Co-location fees (NYSE):
- Server rack rental: $25,000-$50,000/month
- Data feed access: $10,000-$30,000/month
- Network connectivity: $5,000-$15,000/month
Total: $500,000 - $1,000,000/year just for the infrastructure
Only institutional MMs can afford this. Retail traders competing against this = bringing a knife to a gunfight.
Microwave Towers: Shaving Microseconds
HFT firms spent $300 million building microwave tower networks between Chicago (CME) and New Jersey (NYSE) to cut latency from 14.5 milliseconds (fiber optic) to 8.5 milliseconds (microwave).
Why? Light travels 31% faster through air than through fiber-optic cables. That 6 millisecond advantage = millions in arbitrage profits.
✅ How Retail Traders Can Compete (Spoiler: You Can't on Speed)
Accept reality: You will NEVER beat HFT MMs on speed. Don't try.
What you CAN do:
- Trade longer timeframes: Latency doesn't matter on 4H/Daily charts
- Avoid tight scalps: Don't compete for 1-2 tick profits (MMs win there)
- Use limit orders at key levels: Let MMs come to you (don't chase)
- Trade illiquid times: Pre-market / after-hours have less HFT activity
Bottom line: Play a different game. Focus on pattern recognition, order flow analysis, and multi-day swings where speed doesn't matter.
Why "Free" Trading Isn't Free
Payment for Order Flow (PFOF) is the practice where brokers (Robinhood, Webull) sell your order to market makers (Citadel, Virtu) instead of routing it to public exchanges.
The Deal:
- You place a trade on Robinhood (commission-free)
- Robinhood sells your order to Citadel for $0.002/share
- Citadel fills your order and pockets the spread
How Robinhood Makes Money
Revenue Source: Payment for Order Flow (75% of Robinhood's revenue in 2021)
The Math:
- Robinhood has 15 million users
- Each user trades 100 shares/month on average
- Total: 1.5 billion shares/month
- Citadel pays Robinhood $0.002/share
- Robinhood revenue: $3M/month = $36M/year
Why Robinhood loves PFOF: They get paid more when you trade more (confetti animations, push notifications, "free stock" promotions).
How Citadel Makes Money
Why Citadel pays for order flow: Retail order flow is uninformed (low adverse selection risk), making it highly profitable.
The Math:
- Citadel buys 1.5 billion shares/month from Robinhood
- Average spread captured: $0.01/share
- Citadel profit: $15M/month = $180M/year
- Minus payment to Robinhood ($3M/month) = $144M/year net profit
How You Lose Money
The Hidden Cost: You don't pay commissions, but you pay via price improvement failure.
Example:
- NBBO: Bid $100.00, Ask $100.02
- You place market buy on Robinhood
- Robinhood routes to Citadel (doesn't send to public exchange)
- Citadel fills you at $100.02 (the ask)
- But: On the public exchange, there was a seller at $100.01
- You overpaid by $0.01/share
Scale: 1,000 shares = overpaid $10. Over 100 trades/year = $1,000/year in hidden costs.
⚠️ SEC Study: PFOF Costs Retail $1.5 Billion/Year
A 2020 SEC study found that retail traders on PFOF brokers received worse execution quality than traders on non-PFOF brokers (Fidelity, Vanguard).
Cost: On average, $0.01-$0.02 worse per share—totaling $1.5 billion/year across all retail traders.
Latency Arbitrage via PFOF
The most insidious aspect: market makers see your order before it hits the exchange, giving them a latency advantage to front-run you.
Example:
- You buy 1,000 AAPL shares at market on Robinhood
- Robinhood sends order to Citadel (not NYSE)
- Citadel receives your order 2 milliseconds before public exchanges
- Citadel's algo sees your 1,000 share buy coming
- Citadel buys 1,000 AAPL on NYSE at $175.00 (the bid)
- Citadel then sells to you at $175.02 (the ask)
- Citadel profit: $20 risk-free
Why it's legal: Citadel claims they "provided liquidity" and you paid the NBBO ask (not worse). But they knew your order was coming—information asymmetry.
Defense Strategies for Retail Traders
You can't eliminate market maker edge, but you can minimize it.
Strategy #1: Always Use Limit Orders
Rule: Never use market orders unless execution speed matters more than price.
Why: Limit orders let you set the price, not the market maker.
Example:
- NBBO: Bid $100.00, Ask $100.05
- Bad: Market buy → filled at $100.05
- Good: Limit buy at $100.02 → wait for seller, save $0.03/share
💡 Pro Tip: Use Midpoint Limit Orders
Tactic: Place limit orders at the midpoint of the bid-ask spread.
Bid $100.00, Ask $100.04 → Midpoint = $100.02. Place limit buy at $100.02.
Benefit: You split the spread with the MM instead of giving them the entire edge.
Strategy #2: Trade During Liquid Hours
Rule: Trade between 10:00 AM - 3:00 PM ET (avoid first/last hour and after-hours).
Why: Spreads are tightest during peak liquidity hours. More competition among MMs → better fills.
Example:
- AAPL spread at 10:00 AM: $0.01
- AAPL spread at 9:31 AM (market open): $0.05 (5x wider)
- AAPL spread at 6:00 PM (after-hours): $0.15 (15x wider)
Strategy #3: Avoid PFOF Brokers (Or Route to IEX)
Rule: Use brokers that don't sell order flow (Fidelity, Vanguard, Interactive Brokers).
Why: PFOF brokers route to Citadel, giving MMs a latency advantage. Non-PFOF brokers route to public exchanges where you get price priority.
Alternative: If stuck with Robinhood, route orders to IEX (Investors Exchange)—a public exchange designed to eliminate latency arbitrage.
How to Route to IEX on Interactive Brokers:
- Open order potential entry ticket
- Click "Route" dropdown
- Select "IEX" (Investors Exchange)
- Place limit order
Benefit: IEX has a "speed bump" (350 microseconds delay) that prevents HFTs and MMs from front-running you.
Strategy #4: Don't Chase—Let the Market Come to You
Rule: If your limit order doesn't fill immediately, don't chase by raising your limit price.
Why: Market makers want you to chase. They intentionally pull liquidity to force you to pay more.
Example:
- You place limit buy at $100.02
- Ask jumps to $100.10 (MM pulled liquidity)
- Bad move: Cancel and rebuy at $100.10 (you got played)
- Good move: Wait 30 seconds. Ask will likely return to $100.05
📝 Knowledge Check
Test your understanding of market maker algorithms:
AAPL bid/ask is $175.00 / $175.05. You place a market sell order for 500 shares. What price do you get?
You see a huge sell order (50,000 shares) appear at $100.10 on Level 2, but it disappears within 20 seconds before anyone can fill it. What just happened?
You trade on Robinhood (PFOF broker). NBBO is $100.00 / $100.02. You place a market buy for 1,000 shares. Citadel fills you at $100.02. Did you get a fair price?
💡 Understanding Market Makers = Better Fills
- Spread capture is the MM's core profit: buy bid, sell ask, repeat billions of times.
- Adverse selection = informed traders cost MMs money, so MMs widen spreads when they detect "toxic" flow.
- Inventory management: MMs skew quotes, use dark pools, hedge with futures to stay delta-neutral.
- Spoofing, layering, quote stuffing = illegal-but-common manipulation tactics.
- PFOF = "free" trading isn't free. You pay via worse fills and latency arbitrage.
- Defense: Use limit orders, trade during liquid hours, avoid PFOF brokers, route to IEX.
📥 Download Checklist: Trade Execution Optimization (PDF)
Market makers aren't villains—they're profit maximizers. Understand their playbook, avoid their traps, trade with discipline.
Related Lessons
Why Market Orders Lose Money
Basics of limit vs market orders and why market orders favor MMs.
Read Lesson →Order Book Analysis
Read Time & Sales data to detect MM inventory imbalances.
Read Lesson →Institutional Order Flow
Dark pool analysis and how institutions avoid MM detection.
Read Lesson →⏭️ Coming Up Next
Lesson #41: Fed Policy & Liquidity — Learn central bank operations, FOMC mechanics, and how to trade macro liquidity shifts.
Educational only. Trading involves substantial risk of loss. Past performance does not guarantee future results.
💬 Discussion (0 comments)
Loading comments...