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

Re: [Metastockusers] Code adjustment



PureBytes Links

Trading Reference Links


Hi Dusant,

I have already tried but it does not work.

What would be the solution ?

Regards,

Karile


Dusant wrote:

> Karile,
> Just substitute the code for the 20 sma instead of "C" in the second line.
> Dusant
> Chief Architect
> http://www.candlestrength.com/
>  
> ----- Original Message -----
> From: "karile" <karile@xxxxxxxxxx <mailto:karile@xxxxxxxxxx>>
> To: <Metastockusers@xxxxxxxxxxxxxxx 
> <mailto:Metastockusers@xxxxxxxxxxxxxxx>>
> Sent: Wednesday, April 14, 2004 20:33 PM
> Subject: Re: [Metastockusers] Code adjustment
>
> >
> > 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
> >
> >
> <mailto:Metastockusers-unsubscribe@xxxxxxxxxxxxxxx>
> >
> >  
> >
> >
> ------------------------------------------------------------------------
> *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
>       <mailto:Metastockusers-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
>        
>     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/zMEolB/TM
---------------------------------------------------------------------~->

 
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:
     http://docs.yahoo.com/info/terms/