--- title: ad description: This documentation explains how to use the Accumulation/Distribution Line, an indicator similar to the On Balance Volume to project trends in the price direction of a stock, and how to use specific parameters with the ad function to get the open value of a stock. keywords: - Accumulation/Distribution Line - On Balance Volume - Marketing - Stock Value - Close Location Value - Price Trend - Price Flattening --- import HeadTitle from '@site/src/components/General/HeadTitle.tsx'; The Accumulation/Distribution Line is similar to the On Balance Volume (OBV), which sums the volume times +1/-1 based on whether the close is higher than the previous close. The Accumulation/Distribution indicator, however multiplies the volume by the close location value (CLV). The CLV is based on the movement of the issue within a single bar and can be +1, -1 or zero. The Accumulation/Distribution Line is interpreted by looking for a divergence in the direction of the indicator relative to price. If the Accumulation/Distribution Line is trending upward it indicates that the price may follow. Also, if the Accumulation/Distribution Line becomes flat while the price is still rising (or falling) then it signals an impending flattening of the price. ### Usage ```python ad [--open] ``` --- ## Parameters | Name | Description | Default | Optional | Choices | | ---- | ----------- | ------- | -------- | ------- | | b_use_open | uses open value of stock | False | True | None | ![ad](https://user-images.githubusercontent.com/46355364/154309283-9512c6c0-dda3-4348-9350-105238676479.png) ---