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

Function Help



PureBytes Links

Trading Reference Links

I'm looking to put this into EL and could use a little help.  

It begins with 

Close > Open. 
If that is true then take the Open - Low.

Then add the O - L values together over the last 4 days and divide that 
number by 4.

That number = Hgsval

This is a little complicated for me but I have compiled this and it verifies 
OK but I don't think it's working quite right.

Vars:  Hgsval(0);

If C > O then begin

Hgsval = (O[4] - L[4]) + (O[3] - L[3]) + (O[2] - L[2]) + (O[1] - L[1]) / 4;

end;

Thanks in advance for any help!

Vince