custom-indicators

How do I create a cumulative daily A-D Line for the S&P 500 (or any other custom group of stocks or symbols)?

First, create a quotepage which contains the group of stocks or symbols on which you'd like to create your cumulative A-D Line. Now download enough daily data on the quotepage to cover the desired period. In our example, we'll create an A-D Line on the S&P 500 from January 1, 2004 to present (August 20, 2004).

Once you've downloaded enough data, we'll need to create two custom indicators which will provide us with what we need.

The first custom indicator will have the following syntax:

(CL > CL.1) + (CL.1 > CL)