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

re: Trade Volume Index



PureBytes Links

Trading Reference Links

Hi All,

I tried to code up the Trade Volume Index. A link was provided the other 
week to the equis site for an explanation. 
http://www.equis.com/free/taaz/tradevolind.html .I have tried to code it in 
easylanguage. Would someone mind having a look and see if it is right. In 
particular the section regarding minmove.

Regards,
Paul

{<><><> Code Start <><><>}

Inputs: Length(10);

Vars: Change(0), MTV(0), Direction(0), TVI(0);

Change = C - C[1];
MTV = MinMove;

If Change > MTV then Direction = 1;
If Change < -MTV then Direction = -1;
If Change <= MTV and Change >= -MTV then Direction = Direction[1];

If Direction = 1 then TVI = TVI[1] + (Upticks + Downticks);
If Direction = -1 then TVI = TVI[1] - (Upticks + Downticks);

Plot1(TVI, "TVI");
Plot2(0, "Zero");
Plot3(Average(TVI,Length), "TVI Average");

{<><><> Code End <><><>}