# Distribution Day Count

Distribution Day Count is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

Counts IBD distribution days on an index or index ETF: closes down at least 0.2% on higher volume than the prior session, each held for 25 sessions or removed early once the index closes 5% above it. Numbered markers show the tally building, expired days dim with the reason they left, and a shaded cluster and dashboard flag when the count reaches the uptrend-under-pressure level.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Feb 5, 2026.
- Access: free.
- Concepts: [distribution days](https://www.luxalgo.com/library/concept/distribution-days/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=whymn61croym80z75yron7yb
- Page: https://www.luxalgo.com/library/indicator/distribution-days/

The **Distribution Day Count** is a sophisticated market analysis tool designed to track institutional selling pressure within broad market indices. By identifying sessions where major price declines occur on elevated trading volume, the indicator provides traders with a quantitative measure of market health. This tool helps identify when an uptrend is potentially weakening or when a market environment has become increasingly risky, allowing for better informed defensive positioning during periods of significant institutional selling.

## How to Trade the Distribution Day Count?

The indicator is most effective when applied to major market indices or corresponding index ETFs using daily bars. The primary purpose of this tool is to monitor institutional activity rather than provide precise entry signals for individual stocks. 

A distribution day is marked when the price closes down by a specific percentage on higher volume than the prior session. You should keep a close eye on the total count of these days within the specified lookback window. When the count remains low, the market is generally viewed as healthy. However, as the number of active distribution days climbs, the market enters a period of being "under pressure." 

Practical trading application involves looking at the density of these days. If a cluster of distribution days occurs within a short period, it often signifies that institutional investors are offloading large positions, which frequently precedes a market correction or a significant pullback. Traders often use this information to tighten stop losses on existing positions, reduce leverage, or move into cash when the "Uptrend under pressure" status appears on the dashboard. Stalling days can also be included to identify periods where the market struggles to make new progress despite high volume, offering an additional layer of insight into market fatigue.

## Distribution Day Count Settings

### Distribution Rules
* **Minimum Decline %**: Sets the threshold for a price drop to be counted as a distribution day.
* **Count Window**: Defines the number of sessions a distribution day remains active before it expires.
* **Rally Removal %**: Determines the percentage gain required to remove a distribution day early, signaling that the market has absorbed the selling pressure.
* **Rally Measured On**: Choose whether to calculate the rally removal based on the closing price or the intraday high.

### Stalling Days
* **Count Stalling Days**: Toggles the inclusion of days where the market shows heavy volume but makes little upward progress.
* **Stalling: Maximum Gain %**: The maximum upward close allowed for a day to still qualify as stalling.
* **Stalling: Within % of High**: Sets the proximity to the recent highs required for a day to be flagged as stalling.

### Market Status
* **Under Pressure At**: Defines the number of active distribution days required to trigger the "Uptrend under pressure" warning.

### Dashboard
* **Show Dashboard**: Toggles the on-screen data panel.
* **Position**: Sets the screen corner for the dashboard display.
* **Size**: Adjusts the scale of the dashboard text.

### Style
* **Keep Expired Markers**: Allows visual markers for old distribution days to remain on the chart.
* **Shade Pressure Clusters**: Highlights the specific cluster of days that pushed the count into the "under pressure" status.

## Frequently Asked Questions

### What constitutes a distribution day?
A distribution day occurs when a major index closes lower by a minimum defined percentage compared to the previous day, accompanied by higher trading volume than the previous session. This combination of falling price and high volume is considered a hallmark of institutional selling.

### How does the rally removal feature help?
The rally removal feature automatically clears a distribution day from the count if the index achieves a significant recovery. This assumes that the subsequent strength in the market demonstrates that the previous selling pressure has been fully absorbed by buyers.

### Can I adjust the sensitivity of the pressure warnings?
Yes, you can modify the Under Pressure At setting to suit your specific risk tolerance. Lowering this value will make the indicator more sensitive to selling, while increasing it will require a higher level of sustained distribution before the indicator warns that the uptrend is under pressure.

## Related indicators

- [Market Breadth Toolkit](https://www.luxalgo.com/library/indicator/market-breadth-toolkit/) (Advance/decline Internals): markdown at https://www.luxalgo.com/library/indicator/market-breadth-toolkit.md
- [TICK Arbitrage Toolkit](https://www.luxalgo.com/library/indicator/tick-arbitrage-toolkit/) (TICK Index): markdown at https://www.luxalgo.com/library/indicator/tick-arbitrage-toolkit.md
- [Up/down Volume](https://www.luxalgo.com/library/indicator/up-down-volume/) (Breadth, Sentiment & External Data): markdown at https://www.luxalgo.com/library/indicator/up-down-volume.md
- [Participation Divergence at Index Highs](https://www.luxalgo.com/library/indicator/participation-divergence-at-index-highs/) (Breadth, Sentiment & External Data): markdown at https://www.luxalgo.com/library/indicator/participation-divergence-at-index-highs.md
- [Volume Bubbles & Liquidity Heatmap](https://www.luxalgo.com/library/indicator/volume-bubbles-liquidity-heatmap/) (Breadth, Sentiment & External Data): markdown at https://www.luxalgo.com/library/indicator/volume-bubbles-liquidity-heatmap.md
- [Crypto Liquidation Heatmap](https://www.luxalgo.com/library/indicator/crypto-liquidation-heatmap/) (Breadth, Sentiment & External Data): markdown at https://www.luxalgo.com/library/indicator/crypto-liquidation-heatmap.md
- [Liquidation Levels](https://www.luxalgo.com/library/indicator/liquidation-levels/) (Breadth, Sentiment & External Data): markdown at https://www.luxalgo.com/library/indicator/liquidation-levels.md
- [Bitcoin Power Law Clock](https://www.luxalgo.com/library/indicator/bitcoin-power-law-clock/) (Breadth, Sentiment & External Data): markdown at https://www.luxalgo.com/library/indicator/bitcoin-power-law-clock.md

---

Source: https://www.luxalgo.com/library/indicator/distribution-days/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
