Market Top Detector
Analyzes volume distribution, index price action, and breadth divergence to identify market tops and broad distribution phases.
Market Top Detector
The Market Top Detector is your early-warning defensive system. It actively scans massive index volume data to identify the subtle, mathematical footprints of institutional "distribution"—the exact process where mega-funds quietly dump their shares onto retail buyers right before a massive bear market begins.
Why Market Tops Are Hard to Spot
Market bottoms are violent events. They happen in a single day (see the Follow-Through Day Detector). Market tops, however, are a slow, deceptive process.
When a multi-billion dollar hedge fund decides to sell its entire position to lock in profits, it cannot simply hit the "sell all" button. If they did, the market would flash-crash, and they would destroy their own exit price. Instead, they sell slowly into strength. They let the market gap up on good news, and then they quietly sell massive blocks of shares throughout the day, forcing the market to close flat or slightly down.
To the untrained retail eye, the market looks fine. It might even be hitting new all-time highs. But under the hood, the institutions are heading for the exits.
The Market Top Detector algorithmically identifies this exact behavior. It counts the number of "Distribution Days" and cross-references them against internal market breadth, giving you massive advanced warning to tighten stops and raise cash before the bottom falls out.
How Pierce AI Executes It
When you suspect the market is getting exhausted, Pierce runs a specialized distribution sweep on the major indices:
- The Distribution Day Count: Pierce pulls the trailing 30 days of price and volume data for the S&P 500 (SPY) or Nasdaq (QQQ). It scans for a very specific threshold: any day the index closes down >0.2% on higher volume than the previous day. This is a "Distribution Day"—the algorithmic footprint of heavy institutional selling.
- The Terminal Threshold: Pierce calculates the cluster density. If Pierce detects 5 to 7 Distribution Days clustered within a tight 4-to-5 week window, it triggers a "Market Top Profile" alert.
- Negative Divergence Sweep: Pierce calls the
market_breadthengine to verify the internal structure. If the S&P 500 is hitting a new all-time high, but the Market Breadth score is actually dropping, Pierce flags a severe "Negative Divergence." This means the rally is entirely fake, propped up by heavily weighted tech stocks while the rest of the economy is already crashing. - Moving Average Confirmation: Pierce checks to see if the recent distribution damage has caused the index to snap key institutional trendlines, such as the 21-day EMA or 50-day SMA.
Key Metrics & Deliverables
By running the Market Top Detector, you transition from blindly optimistic to tactically defensive:
- The Distribution Count: You receive the exact number of Distribution Days logged over the last month.
- The Divergence Status: Explicit confirmation on whether the internal market breadth is confirming the highs or quietly rotting from the inside.
- The Phase Synthesis: Pierce synthesizes the data into a narrative (e.g., "This is a routine pause in a bull market" vs. "Institutions are heavily locking in profits, a structural top is forming").
- The Risk Mandate: Clear, actionable execution instructions. Pierce will explicitly tell you to "trim margin," "tighten trailing stops," or "hold core positions."
Example Prompts & Use Cases
You can actively push Pierce to scan for institutional selling using these prompts:
- "Run the Market Top Detector on the S&P 500. Are institutions selling?"
- "Count the number of distribution days on the Nasdaq over the last 4 weeks."
- "We are at all-time highs. Check for negative divergence in market breadth. Is a top forming?"
- "I am heavily long tech stocks. Run a top-detection sweep to see if I need to take profits."
By explicitly asking for "distribution," "market top," or "breadth divergence," you trigger the defensive scan.
Methodology Notes & Limitations
The Market Top Detector is your flashing yellow light, but you must still execute with discipline:
- Do Not Short Tops: The famous saying goes, "Markets can remain irrational longer than you can remain solvent." Just because Pierce detects 7 Distribution Days does not mean you should immediately short the S&P 500 with massive leverage. A topping process can last for months. The Detector tells you to stop buying new long positions and tighten your stops, it does not tell you to aggressively short.
- Distribution Expiration: A Distribution Day organically "expires" or falls off the count after 25 trading sessions (roughly 5 weeks). Additionally, if the index rallies 5% above the closing price of a previous Distribution Day, that specific day is neutralized and removed from the count, as the institutional selling pressure has clearly been absorbed.
- The Mega-Cap Distortion: Always remember that indices are market-cap weighted. Apple, Microsoft, and Nvidia heavily distort the S&P 500. Pierce specifically uses the Breadth divergence check to defeat this distortion and show you what the other 497 stocks are actually doing.
Built for Capital Preservation
You spend months patiently building massive profits during a bull market. Do not give it all back in two weeks because you ignored the warning signs. The Market Top Detector removes the euphoric emotional bias of a soaring market and forces you to stare directly at the cold, hard volume data—ensuring you lock in your wealth before the smart money pulls the rug.
Note: The Market Top Detector relies on high-fidelity trailing volume calculations and moving average breaches, and is included in the Preferred tier and above.
Try this skill in the app
Execute the recommended prompt directly in the Pierce app using real-time market data.