QuantStudio Financial Data Analysis and Trading Framework

AD Class

Accumulation/Distribution (AD)

For a list of all members of this type, see AD Members.

System.Object
   RQuant.Indicator.TTimeArray
      RQuant.Indicator.TDoubleArray
         RQuant.Indicator.TIndicator
            RQuant.Indicator.AD

[Visual Basic]
Public Class AD
    Inherits TIndicator
[C#]
public class AD : TIndicator

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The Accumulation/Distribution is a momentum indicator that associates changes in price and volume. The indicator is based on the premise that the more volume that accompanies a price move, the more significant the price move.

The Accumulation/Distribution is really a variation of the more popular On Balance Volume indicator. Both of these indicators attempt to confirm changes in prices by comparing the volume associated with prices. When the Accumulation/Distribution moves up, it shows that the security is being accumulated as most of the volume is associated with upward price movement. When the indicator moves down, it shows that the security is being distributed as most of the volume is associated with downward price movement.

This indicator is described in more details in the Steve Achelis' book "Technical Analysis from A to Z".

Formula:

Example

TDataManager.cd("Demo");

TDailyArray Daily1 = TDataManager.GetStock("YHOO").DailyArray;

DateTime Date1 = DateTime.Parse("1999/02/08"); 
DateTime Date2 = DateTime.Parse("2000/12/29"); 

TDailyArray Daily = Daily1.Clone(Date1, Date2);

TCanvas Canvas = new TCanvas("Canvas","AD DEMO",600,400);
    
Canvas.Divide(1,2);

AD AD = new AD(Daily);

Canvas.cd(1);
Daily.Draw("c");

Canvas.cd(2);
AD.Draw(Color.Red);

Requirements

Namespace: RQuant.Indicator

Assembly: RQuant.Indicator (in RQuant.Indicator.dll)

See Also

AD Members | RQuant.Indicator Namespace