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

Re: Dynamic parts of formulas



PureBytes Links

Trading Reference Links

On Tue, 11 Aug 1998 11:51:12 -0400, you wrote:

>VIDYA 21 - 5 Indicator:
>
>Length:=Input("Length",1,200,21);   {21 = the lookback period}
>
>Smooth:=Input("Smoothing",1,200,5);   {5 = the smoothing period)
>
>AbsCMO:=(Abs(CMO(C<Length)))/100;  {used to adjust the Smoothing Constant =
>2/(n+1)?}
>
>SC:=2/(smooth+1);  {? is SC = Smoothing Constant or Scaled Constant}
>
>VIDYA:=If(Cum(1)<=(Length+1),C,(SC*AbsCMO*CLOSE)+(1-(SC*AbsCMO))*PREV;

Hi Walter,

Just a little "tipo":

AbsCMO:=(Abs(CMO(C<Length)))/100;

Should be:

AbsCMO:=(Abs(CMO(C,Length)))/100;

Did an upper case, on the key with the "," and got a "<" instead.

For those seeing this for the first time.

I like your {commenting the lines}, it makes it very clear. I wish
more people would do this, as in 2-3 months, if I don't use the
formulas, I totally forget the logic behind it, and have to do the
rework.

-= Chris ß =-