The Advance-Decline Line (AD Line) is a breadth indicator based on Net Advances, which is the number of advancing stocks less the number of declining stocks. Net Advances is positive when advances exceed declines and negative when declines exceed advances. The AD Line is a cumulative measure of Net Advances. While the shape of the AD Line is important, the actual value holds no meaning.
This is a rerelease to open source the code. This, to an extent, emulates what Amun's index achieves. What it lacks is weighting per coin.
With the newest version of Pine Script, it may be possible to draw diagonals on the line, making it easier to identify trend.