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

Re: Dollar Index - Code Please for "Walt Downs' Acceleration



PureBytes Links

Trading Reference Links

Jeff and all,

For those that need a text version of the code for "ACCELERATION",
here it is:

Indicator: ACCELERATION
Input: XLen(20),XRat(.1),Velo(0),Acc(1),Vfo(0),Cfo(0);
Vars: Vel(0), Xav(0),CF(0),Ac(0),Velf(0);

Xav = XAverage(C,20);

Vel = XRat*(Xav-Xav[1])+(1-XRat)*Vel[1];

CF = C+Xav-Xav[1];

Velf = (Xav-Xav[1])+Vel-Vel[1];

Ac = XRat*(Vel-Vel[1])+(1-XRat)*Ac[1];

If Velo = 1 then Plot1(vel,"");
If Acc = 1 then Plot1(ac,"");
If Vfo = 1 then Plot1(velf,"");
if Cfo = 1 then Plot1(cf,"");

Plot2(0,"");

Print(date,"Velocity ",Vel,"VForcast",VelF,"PForecast",CF);{Prints
values in "PrintLog" if desired.}

Walt Downs
http://www.tacticalmarkets.com