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

Re: Where's the Board???



PureBytes Links

Trading Reference Links

Why don't you co-write a book (with an english editor, of course <g>) on
basic, intermediate, and advanced EL programming techniques?  Could be a
decent market with the current 30,000-40,000 ts/sc users.  Just a thought...

-Tony Haas

pierre wrote:
>Well, back to my mentally restricted area ( EL coding):
>
>Lets take the first 3 lines
>VALUE1 = @MOMENTUM(C,3);
>VALUE2 = @MOMENTUM(C,3)[1];
>VALUE3 = .03*(VALUE1-VALUE2)+(1-.03)*VALUE3;
>
>In fact, momentum has not to be calculated twice.
>This is how we spare calculations:
>Value1= c-c[3];
>Value2= c[1]-c[4];
>Value3= value1-value2= c-c[3] -(c(1]-c[4]) = (c-c[1] ) - (c[3]-c[4]);
>
>Sould be now obvious to anyone that this could reduce to:
>
>Value0=c-c[1];
>Value3= .03*(value0-value0[3])+ (1-.03*)value3; 
>
>(could also replace 1-0.03 by .97)