[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A/D Line



PureBytes Links

Trading Reference Links


I think the A/D line is the sum all (ADV - DECL), so spread (x - y)
will only show you the daily changes in the A/D line and will jump
back/forth across 0.  You might try something like this, instead:

{ indicator AD_Line }
Input: Input1(Close of data2),input2(close of data3);
var: ad_line(0);
ad_line = ad_line + input1 - input2; 
Plot1(Ad_Line, "Ad_Line");

For some data vendors, like Dial/Data, you may need to scale
data2 and data3 by multiplying by 100, or fix it up in the Symbol
Universe for the downloader (otherwise 1250 advances comes in as 12.50,
for example).

If you don't want to bother with inputs for this indicator, then this
is simpler:

{ indicator AD_Line }
var: ad_line(0);
ad_line = ad_line + Close of data2 - close of data3;
Plot1(Ad_Line, "Ad_Line");



-- 
--
| Gary Funck,  Intrepid Technology, gary@xxxxxxxxxxxx, (650) 964-8135