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

Re: [Metastockusers] Re: Code adjustment



PureBytes Links

Trading Reference Links




Karile,
Good for you. :))
DusantChief Architect<A 
href="">http://www.candlestrength.com/
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  karile 
  To: <A 
  title=Metastockusers@xxxxxxxxxxxxxxx 
  href="">Metastockusers@xxxxxxxxxxxxxxx 
  
  Sent: Friday, April 16, 2004 1:02 
PM
  Subject: Re: [Metastockusers] Re: Code 
  adjustment
  Hi all,I am not an expert but it seems to me that 
  this code works fine.Regards,KarileJose 
  wrote:>"U+Ref(x,R)-Ref(x,R)"... nope.>>Chief, plot 
  your version on a chart, and tell me if it looks right...>>jose 
  '-)>>>--- In <A 
  href="">Metastockusers@xxxxxxxxxxxxxxx, 
  "Dusant" <dusant@x...> 
  wrote:>  >>>Pardon me,>>I think it 
  should be 
  this:>>---->>Pe:=Input("Periods",41,1000,41);>>>>x:=Mov(Typ(),20,S);>>Z:=LastValue(LinearReg(x,Pe));>>Y:=LastValue(Cum(1))-Cum(1);>>U:=Z-(LastValue(LinRegSlope(x,Pe))*Y);>>R:=0-(LastValue(Cum(1))-Pe);>>U+Ref(x,R)-Ref(x,R)>>------->>>>----- 
  Original Message ----- >>From: "Jose" <<A 
  href="">josesilva22@x...>>>To: <<A 
  href="">Metastockusers@xxxxxxxxxxxxxxx>>>Sent: 
  Wednesday, April 14, 2004 21:27 PM>>Subject: [Metastockusers] Re: 
  Code adjustment>>>>>>    
  >>>>>---8<-------------->>>Pe:=Input("Periods",2,1000,21);>>>>>>x:=Mov(Typ(),20,S);>>>Z:=LastValue(LinearReg(x,Pe));>>>Y:=LastValue(Cum(1))-Cum(1);>>>U:=Z-(LastValue(LinRegSlope(x,Pe))*Y);>>>R:=0-(LastValue(Cum(1))-Pe);>>>U+Ref(C,R)-Ref(C,R)>>>---8<-------------->>>>>>j 
  '-)>>>>>>>>>--- In <A 
  href="">Metastockusers@xxxxxxxxxxxxxxx, 
  karile <karile@x...> 
  wrote:>>>      
  >>>>>>>Hi,>>>>>>>>I 
  have a code which calculates a linear regression (see 
  below).>>>>>>>>What I would like to have is a 
  linear regression of a 20 SMA ( >>>>mov(typical(),20,s)  
  ) instead of the close.>>>>>>>>Could anyone 
  adjust the code below to perform that 
  ?>>>>>>>>Here is the code 
  :>>>>>>>>Pe:=Input("Periods",2,1000,6);>>>>Z:=LastValue(LinearReg(C,Pe));>>>>Y:=LastValue(Cum(1))-Cum(1);>>>>U:=Z-(LastValue(LinRegSlope(C,Pe))*Y);>>>>R:=0-(LastValue(Cum(1))-Pe);>>>>U+Ref(C,R)-Ref(C,R);>>>>>>>>>>>>Thanks 
  for your 
  help,>>>>Regards,>>>>>>>>Karile>>>>        
  >>>>>>>>>> 
  >Yahoo! Groups Links>>>> 
  >>>  >------------------------ 
  Yahoo! Groups Sponsor ---------------------~-->Buy Ink Cartridges or 
  Refill Kits for your HP, Epson, Canon or LexmarkPrinter at 
  MyInks.com.  Free s/h on orders $50 or more to the US & Canada.<A 
  href="">http://www.c1tracking.com/l.asp?cid=5511<A 
  href="">http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/zMEolB/TM---------------------------------------------------------------------~-> Yahoo! 
  Groups Links<*> To visit your group on the web, go 
  to:     <A 
  href="">http://groups.yahoo.com/group/Metastockusers/<*> 
  To unsubscribe from this group, send an email to:     
  <A 
  href="">Metastockusers-unsubscribe@xxxxxxxxxxxxxxx<*> 
  Your use of Yahoo! Groups is subject to:     <A 
  href="">http://docs.yahoo.com/info/terms/ 







Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/Metastockusers/ 
To unsubscribe from this group, send an email to:Metastockusers-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.