P
PipsGrowth

Key Takeaways

Difficulty:Intermediate
Reliability:Moderate
Category:volume
Timeframes:1H, 4H, Daily

Accumulation/Distribution Line

volumešŸ“Š 1H, 4H, Daily

Cumulative indicator measuring money flow based on where price closes within its range.

Formula

Code
CLV = ((Close - Low) - (High - Close)) / (High - Low)
A/D = Previous A/D + (CLV Ɨ Volume)

Detailed Explanation

The Accumulation/Distribution Line measures the cumulative flow of money into and out of an asset.

Key Concept:
If price closes near the high of the range, more volume is attributed to accumulation. Near the low, more to distribution.

Difference from OBV:
OBV uses entire volume on up/down days, A/D uses volume proportional to close location in range.

Trading Setup Example

Entry, stop loss, and take profit levels.

šŸ“ˆ Buy Setup
Accumulation/Distribution LineConfirmEntryTake ProfitStop LossCandlesVolIndicatorBUY
šŸ“‰ Sell Setup
Accumulation/Distribution LineConfirmEntryTake ProfitStop LossCandlesVolIndicatorSELL

Always wait for signal confirmation before entering a trade.

Where This Indicator Works Best

Trend context and market position.

šŸ“ˆ Bullish Context
Low VolumeConfirmationHigh Vol ↑
šŸ“‰ Bearish Context
Low VolumeConfirmationHigh Vol ↓

Confirms price moves through volume analysis.

Live Chart — Accumulation/Distribution Line

See Accumulation/Distribution Line in action on a live chart. Try changing the settings and timeframe.

šŸ“ˆ Bullish Signals

A/D rising while price flat (accumulation), bullish divergence

šŸ“‰ Bearish Signals

A/D falling while price flat (distribution), bearish divergence

Python Implementation

A/D Line calculation

Python
import pandas_ta as ta
df['AD'] = ta.ad(df['high'], df['low'], df['close'], df['volume'])

TradingView Pine Script

JavaScript
//@version=5
indicator("A/D Line")
ad = ta.accdist
plot(ad, "A/D", color=color.blue)
šŸ“Š Use TradingView for Advanced Charting
Professional analysis tools with 100+ technical indicators
Get TradingView Pro

MT5 MQL5 Code

C++
int ad_handle = iAD(_Symbol, _Period, VOLUME_TICK);
double ad[];
CopyBuffer(ad_handle, 0, 0, 100, ad);

Common Mistakes

āœ—Ignoring divergences
āœ—Using without reliable volume

Confirmation Signals

OBV
Price action
Volume

Best For

Money flow analysisDivergence tradingTrend confirmation

šŸ’” Pro Tips

  • •Focuses on where price closes within the range
  • •More sophisticated than OBV
  • •Divergences precede price moves
Last updated: February 8, 2026

Educational Disclaimer

This content is for educational purposes only and does not constitute financial or investment advice. Trading involves significant risk and you may lose your capital. Always consult a licensed financial advisor before making investment decisions.

Frequently Asked Questions

Accumulation/Distribution Line - Complete Guide with Python & TradingView Code