Skip to main content
Order types

Pegged Orders

Pomegra Learn

Pegged Orders

A trader wants to buy a stock, but the market is moving rapidly. If they submit a fixed limit order, it might become stale within seconds, leaving them unfilled while prices move against them. If they submit a market order, they might fill at a terrible price during a temporary spike. Pegged orders solve this problem by automatically adjusting the order's limit price as the market itself moves, keeping the order anchored to a reference point like the best bid or offer.

Quick definition: A pegged order is an order whose price automatically adjusts based on a specified reference point—typically the best bid, best offer, or midpoint. As the market moves, the pegged order moves with it, maintaining a constant relationship to the reference point. When conditions permit, the order executes at the most favorable price possible while respecting the peg.

Key takeaways

  • Pegged orders solve the staleness problem by continuously repricing as the market moves
  • Orders can peg to the bid, ask, midpoint, or other reference prices depending on broker capabilities
  • Offset parameters control how far from the peg the order's limit price sits, allowing traders to target better prices
  • Pegged orders are particularly effective during volatile markets where fixed limit prices become outdated quickly
  • Brokers must reprrice the order frequently to ensure compliance with SEC regulations on order quality
  • Strategic use of pegging can improve execution quality while maintaining price discipline

How Pegged Orders Work

A pegged order contains two core components: a peg reference and an offset. The peg reference is the market point to which the order attaches itself. The offset is how far away from that reference the order's actual limit price sits.

For example, a trader might submit a pegged buy order with these specifications:

  • Order quantity: 10,000 shares
  • Peg type: Best bid
  • Offset: $0.05 worse than the peg
  • Order type: Buy order (wanting to execute long)

When the trade occurs, the order's limit price is automatically set to best_bid < $0.05. If the stock's best bid is currently $50.00, the order's limit price is $49.95. The moment the best bid moves to $50.50, the order's limit price moves to $50.45. The moment it moves to $49.75, the order's limit price moves to $49.70.

The offset can work in either direction. For a buy order pegged to the ask with a $0.05 offset worse than the peg, the limit price would be ask + $0.05. If the best ask is $50.10, the order would be set at $50.15—a worse price for the buyer but more likely to fill because it's above the market. Traders use this strategy when they're willing to pay up slightly to ensure execution.

The peg continuously updates. Most brokers' systems recalculate the peg reference and update the order's limit price multiple times per second in response to quote changes. The SEC requires orders to honor market quality rules: a pegged buy order must have a limit price at or below the best bid, and a pegged sell order must have a limit price at or above the best ask. Violations could result in the order executing at an illegal price.

Pegging to Different Reference Points

Pegging to the bid. For a buy order, pegging to the bid means your limit price always sits just below or at the best bid price, or within a specified offset of it. This is the most common pegging choice for traders who want to be near the front of the queue without paying more than the current best price. If the bid is $50.00 and you peg with no offset, your order is at $50.00. When the bid moves to $50.10, your order moves to $50.10 instantly.

The advantage is immediate responsiveness: as buying interest increases and the bid ticks up, your order stays competitive. The disadvantage is that you might never fill if the bid keeps moving; you're always just behind the reference price.

Pegging to the ask. For a buy order pegged to the ask, your limit price tracks the best ask price, potentially at a worse price than the bid. You'd use this strategy only if you absolutely need to fill and are willing to pay up. The offset parameter becomes crucial: peg to ask − $0.05 means you're willing to pay $0.05 above the ask to ensure execution. This aggressive strategy guarantees better odds of filling but costs more per share.

Pegging to the midpoint. The midpoint is halfway between the best bid and best ask. For a $50.00 bid and $50.10 ask, the midpoint is $50.05. Pegging to the midpoint offers a middle ground: your order is more likely to fill than if you peg to the bid, yet you pay less than if you peg to the ask.

Midpoint pegging is increasingly popular in electronic trading because it reflects fair value in a two-sided market. The order stays constantly at what many traders consider the "true" price, making it attractive to both passive buyers and sellers. Brokers recognize this and often allow negative offsets when pegging to the midpoint—for example, peg to midpoint − $0.02, which is actually slightly below fair value and more likely to fill.

Advanced Pegging Parameters

Beyond basic peg references, sophisticated traders use additional parameters to control peg behavior.

Order sizing and queue position. Some brokers allow traders to specify that a pegged order should execute only at or better than a specific position in the order book. If you're willing to wait behind 100,000 shares in the bid queue, you can specify that your 10,000 share pegged order should remain in queue. But if new orders push your position beyond that threshold, the peg adjustment might pause to prevent queue jumping.

Discretionary offsets. Advanced pegged orders include a "discretion amount" in addition to the peg offset. This allows the order to move even better than the standard peg rule if market conditions improve. For example, your order might be set to peg at the bid with a $0.10 discretion, meaning it will execute at the bid if that's what's available, but the algorithm will attempt to achieve up to $0.10 better if the market widens and allows it.

Limit price bounds. Traders often set absolute maximum and minimum prices for pegged orders. A buyer might peg to the ask but never pay more than $51.00, even if the market gaps up. A seller might peg to the bid but never accept less than $49.00, even if the market crashes. These bounds prevent catastrophic fills in extreme market movements while allowing the peg to function normally in typical conditions.

Pegged Orders in Volatile Markets

Pegged orders demonstrate their value during rapid price movements. Consider a stock trading during an earnings announcement. The stock opens at $50.00, but within five minutes, there's been a $2.00 gap. If a trader had submitted a limit order at $50.50 just before the announcement, that order is now useless—it would fill at $52.00 or higher, or not fill at all.

A trader using a pegged order, by contrast, has an order that automatically adjusted throughout the move. Their order to buy pegged to the ask with a $0.10 offset started at $50.10 (the initial ask plus $0.10), but within seconds it moved to $51.50, then $52.00, then $52.15—always tracking the market. When the stock stabilizes, the pegged order is positioned correctly relative to the new trading range, ready to fill at fair value.

During flash crashes or sudden volatility spikes, pegged orders protect traders from executing at irrational prices. The peg ensures the order respects the market's current consensus about value, whereas fixed limit orders can become dangerously outdated.

Real-world examples

A high-frequency trading firm uses pegged orders extensively. During the opening auction, the firm submits pegged buy orders for 50 liquid stocks, each pegged to the midpoint of the calculated opening price. As opening prices adjust based on overnight order flow, the firm's pegged orders automatically adjust. Within milliseconds of the opening, the firm's orders are positioned at fair value across the entire portfolio, capturing price improvement while avoiding stale orders.

An asset manager executing a large acquisition of 250,000 shares uses a pegged order strategy. Rather than executing the full position at once, the manager splits the order across multiple pegged orders throughout the day, each pegged to the midpoint with offsets ranging from −$0.02 to +$0.05. Some orders are aggressive and fill quickly at the ask; others are passive and fill only if the bid reaches them. The varied pegging strategy ensures continuous price improvement without moving the market excessively.

A retail trader using a retail trading platform wants to buy a volatile growth stock but fears executing at the worst moment. The trader submits a pegged buy order at 1.5 times normal volume with the order pegged to the midpoint. As volatility spikes intraday, the trader's order automatically reprices, staying focused on fair value. When the stock finally settles after an earnings announcement, the trader's order fills at midpoint plus $0.01, a much better result than any fixed limit order could have achieved.

Pegged Orders and Market Microstructure

Pegged orders interact with market microstructure in interesting ways. Market makers monitor pegged order activity because pegging strategies reveal trader intentions. A large pegged buy order anchored to the midpoint signals serious buying interest at fair value. Market makers might widen spreads slightly to avoid taking the other side of that fill, or they might post additional bids higher up to attract sellers before the pegged order fills.

Regulators monitor pegged orders for compliance with order handling rules. The SEC requires brokers to ensure pegged orders don't execute at prices that violate the National Best Bid and Offer (NBBO). A pegged buy order must never execute above the best ask, and a pegged sell order must never execute below the best bid. Brokers' systems enforce this continuously, preventing any violation.

The speed at which a broker reprices pegged orders directly affects their effectiveness. If a broker updates pegged orders every 100 milliseconds, the orders might become stale during ultra-fast market movements, potentially missing better prices. Brokers competing on execution quality invest in infrastructure to update pegged orders as quickly as possible, sometimes multiple times per second.

Common mistakes

Overusing pegging in highly liquid markets. Pegging to the bid in an extremely liquid stock might mean your order never fills because new orders always push you behind. In such cases, a small offset (peg to bid − $0.01) or a small positive offset (peg to ask − $0.02) is more effective.

Setting offsets too aggressive. A trader might peg to the bid with a $0.10 worse offset, meaning they're willing to buy at bid + $0.10. In a stock where the spread is $0.05, this order fills immediately at the ask, wasting the benefit of pegging. Conservative offsets typically work better, allowing the order to remain in queue until the market moves in your direction.

Pegging during gaps and halts. If the stock halts, the bid-ask spread widens to zero (no trading). Pegged orders can become problematic because the reference prices freeze. When trading resumes, pegged orders might execute at bad prices if the peg updates based on stale pre-halt prices. Brokers typically pause pegged orders during trading halts to prevent this.

Ignoring order book depth. Pegging to the bid is less effective in a stock with thin order books. If only 1,000 shares are at the bid and you're trying to buy 100,000, your pegged order will fill the first 1,000, then your order limit price will jump to the next price level (now the new bid), and the process repeats. You might end up with a much worse average execution than if you'd used a standard limit order slightly inside the spread.

Confusing peg references across exchanges. If a stock trades on multiple exchanges, the NBBO might favor one exchange's bid and another's ask. A pegged order might reference the NBBO bid from Exchange A and the NBBO ask from Exchange B. Traders should clarify which bid-ask references their pegged order uses and confirm it matches their trading objectives.

FAQ

Can I peg an order to a different security's price? Typically no. Standard pegged orders peg to the security being traded. Some advanced algorithmic orders can reference related securities (e.g., an order on a stock pegged to its own index component), but this requires sophisticated broker support and explicit configuration.

How quickly does a pegged order reprice? Most brokers update pegged orders multiple times per second, typically within 50-200 milliseconds of a quote change. Some brokers offer faster updates for premium clients. The speed depends on the broker's technology infrastructure and the exchange's quote feed speed.

Does pegging guarantee a better execution price? No. Pegging ensures your order stays current with market prices, but it doesn't guarantee fills at better prices than fixed limit orders would achieve. In a rising market, a pegged buy order pegged to the bid might underperform compared to a fixed limit order placed slightly inside the spread.

What happens if the spread widens significantly? If you're pegged to the bid and the spread widens to $1.00, your order's limit price adjusts upward but remains bound by the bid. The order stays competitive. However, if the spread widens due to significant news, your peg might end up far from fair value. Some advanced pegged orders include spread-width limits to prevent this.

Can I use pegged orders in pre-market and after-hours trading? Yes, but effectiveness varies. Pre-market and after-hours trading typically have wider spreads and lower liquidity. Pegged orders still function but might experience slower repricing and less frequent fills. Testing in your specific broker's system is recommended.

How do pegged orders interact with stop losses? Pegged orders and stop losses operate independently. A stop loss is a separate order that triggers when a price threshold is reached. If you pair a pegged order with a stop loss, both can coexist, but the stop loss doesn't inherit the pegging logic. Many traders prefer stop losses without pegging for simplicity.

Are pegged orders more expensive than regular orders? Commission structures vary by broker. Some brokers charge the same for pegged orders as standard limit orders. Others charge slightly more due to the technology required to maintain repricing. Confirm your broker's structure before assuming pegged orders add costs.

  • Limit Orders and Their Mechanics — The foundation that pegged orders build upon
  • Market Orders and Immediate Execution — How market orders contrast with pegging strategies
  • Bid-Ask Spread and Market Depth — The microstructure pegged orders navigate
  • Order Handling and Execution Quality — NBBO compliance and quality standards
  • SEC Rules: Order Display and Execution Quality
  • FINRA: Best Execution and Order Handling

Summary

Pegged orders address the core challenge of order staleness by continuously repricing as the market moves. Rather than submitting a fixed limit order that becomes obsolete within seconds during volatile trading, pegged orders maintain a constant relationship to a reference point—the best bid, best ask, or midpoint. The offset parameter allows precise control over how aggressively the order pursues execution.

Pegged orders shine during volatile markets, rapid price movements, and earnings announcements, where fixed limit prices lose relevance quickly. High-frequency traders and institutional asset managers use pegged orders extensively to maintain optimal positioning with minimal manual intervention. The SEC ensures compliance by requiring brokers to enforce price bounds and prevent orders from executing at illegal prices.

Effective use of pegged orders requires understanding the peg reference that best matches your trading objective, setting appropriate offsets, and recognizing when pegging is effective versus when a fixed limit order or market order is more suitable. Modern brokers offer increasingly sophisticated pegging options, including midpoint pegging, discretionary offsets, and limit price bounds. Mastering pegged order mechanics is essential for traders seeking to improve execution quality in dynamic markets.

Next

Understand how traders maintain discretionary control over execution timing: Discretionary Orders