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

Re: Looking for GVALUE1 function



PureBytes Links

Trading Reference Links

 I believe this is what you're looking for.

Regards, Randall


{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;





Jay Mackro wrote:

> Mr Code had posted a family of currency and S&P systems a few
> days back that called a function named "GVALUE1".  Needless to
> say, I saved the systems, but not the GVALUE1 function (I am
> assuming it was posted later - seems that I have seen some
> functions pass through my inbasket).
>
> 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