The Accumulation/Distribution study is a technical indicator created by Dominico D'Errico. The main purpose of this indicator is to help identify accumulation and distribution market phases described in Dow theory. As both phases are characterized by price range compression, the indicator compares the current price range with its past values. Two modes of range calculation are available in this study: high-low range and average true range.

The study has two plots: RangeRatio and RangeFactor. RangeRatio is a histogram that displays the ratio of the current range (high-low range or average true range as defined in the input parameters) to a past value of that range, expressed in percent. RangeFactor serves as a reference line; if histogram bars are below this line, range compression may be taking place, in which case the bars are displayed in a different color.

The Accumulation/Distribution strategy uses values of the RangeRatio plot to add simulated buy and sell orders.

Input Parameters




The value that is used as both a period of the range calculation and an offset to collect the past value of the range.


Defines the position of the RangeFactor line. If a RangeRatio histogram bar is below this line, range compression is recognized.


Defines whether to use the high-low range or the average true range in the calculations.





 The ratio of the current range to its past value, expressed in percent.


Reference line for the RangeRatio plot. Histogram bars below this line signal range compression.


*For illustrative purposes only. Not a recommendation of a specific security or investment strategy.

Further Reading

1. "Portfolio Strategy Based On Accumulation/Distribution" by Domenico D'Errico. Technical Analysis of Stocks & Commodities, August 2018.