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

Re: Looking for GVALUE1 function



PureBytes Links

Trading Reference Links

Hi Jay:

This is the function you're looking for.

Carlos Lourenco


{GValue1 from "The Code"}

{GValue1 Function -- follow SWP convention
                = Difference in Current N day SD and
                = 20 day smoothed SD}

Inputs:  LWhip(NumericSimple);

Vars:  GCondition99(False),GValue11(0),GValue12(0),GValue99(0);

If LWhip>0 then Value2=StdDev(close,LWhip);

If GCondition99=False then begin
   Value1=20;
   GCondition99=True;
   GValue11=2/(Value1+1);
   GValue12=1-GValue11;
   GValue99=Value2;
End;

If LWhip>0 then 
  begin
    GValue99=(GValue99*GValue12)+(VAlue2*GValue11);
    GValue1 =Value2-GValue99; 
  end
Else 
  begin
   GValue1=999;
End; 


> 
> Anyhow, does anyone have a copy of GVALUE1 that they would
> send me, or re-post?  Text versions, as posted by the Codester,
> would be fine.  ELA will work too.
> 
> Regards
> 
> Jay Mackro 
>