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

A/D Indicator - could this be IT???



PureBytes Links

Trading Reference Links

Hello,

I'm trying to figure out if this is more or less the same as the
Accumulation/Distribution indicator in the Investor's Business Daily.  If so
where do you suppose they set the thresholds for A, B, C etc.?  Anyone
possessing the secret formula and/or an opinion on the topic pls respond.

Thanks!
Phil

{PHIL'S ACCUMULATION/DISTRIBUTION}
{XMA Version}

inputs: period(65);
variables: flux(0), absflux(0), xmaflux(0), xmaabsflux(0), k1(0), k2(0),
xaccdist(50);

{figure the daily net "flux"}
flux=v*(c-c[1]);
absflux=absvalue(flux);

{calculate the xma of flux and abs flux}
k1=2/(period+1);
k2=1-k1;
xmaflux=k1*flux + k2*xmaflux[1];
xmaabsflux=k1*absflux + k2*xmaabsflux[1];

{normalize}
xaccdist=50*((xmaflux/xmaabsflux)+1);

plot1(0,"0");
plot2(50,"50");
plot3(100,"100");
plot4(xaccdist,"XAccDist");