| 
 PureBytes Links 
Trading Reference Links 
 | 
Jose,
Copied it directly out of the email.
 
On my machine and MS 7.2, both the copied formulas 
and the built-in indicators perfectly superimpose on top of each other at 
periods=2.
 
Are there any price gaps or missing prices in 
your price data?
 
I really haven't seen much good about MS after 
7.2.
 
-Corey
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Jose 
  
  To: <A 
  title=Metastockusers@xxxxxxxxxxxxxxx 
  href="">Metastockusers@xxxxxxxxxxxxxxx 
  
  Sent: Monday, July 07, 2003 2:57 AM
  Subject: [Metastockusers] Re: need 
  accurate Linear Regression code
  Thanks Corey,> I still have MS 7.2 on my machine 
  and both remain a perfect match to the built-in indicators at 
  periods=2.So in MS v7.2, the code below plots an exact replica of the 
  price?Or are you using different code?Linear Regression 
  Indicator 
  formula===================================---8<------------------------------pds:=Input("LinReg 
  periods)",2,2520,2);x:=Input("use Open=1, High=2, Low=3, Close=4, 
  Volume=5",1,5,4);x:=If(x=1,O,If(x=2,H,If(x=3,L,If(x=4,C,V))));y:=pds*Sum(Cum(1)*x,pds)-Sum(Cum(1),pds)*Sum(x,pds);z:=pds*Sum(Pwr(Cum(1),2),pds)-Pwr(Sum(Cum(1),pds),2);LR:=y/z*Cum(1)-y/z*Mov(Cum(1),pds,S)+Mov(x,pds,S);LR---8<------------------------------Thanks,jose 
  '-)To 
  unsubscribe from this group, send an email 
  to:Metastockusers-unsubscribe@xxxxxxxxxxxYour use 
  of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 
Yahoo! Groups Sponsor
  ADVERTISEMENT 
To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
 |