PureBytes Links
Trading Reference Links
|
Hello Jose,
Sunday, November 7, 2004, 11:44:25 AM, you wrote:
Thanks Jose Codemaster Silva!
I think this close enough for my use.
Thanks again.
J> Try this:
J> ==========================
J> Normalized price to 0~100%
J> ==========================
J> ---8<---------------------
J> { ©Copyright 2004 Jose Silva }
J> { For personal use only }
J> { http://users.bigpond.com/prominex/pegasus.htm }
J> { User input }
J> pds:=Input("Normalizing periods (none=0)",
J> 0,25200,252)+1;
J> { Cummulative RoC }
J> x:=Cum(C/Ref(C,-1)-1)*100;
J> { Normalize RoC }
J> y:=HHV(x,pds)-LLV(x,pds);
J> y:=If(y=0,.000001,y);
J> xNorm:=(x-LLV(x,pds))/y*100;
J> xNorm:=If(pds<2,x,xNorm);
J> { Normalized-RoC Average }
J> avg:=Cum(xNorm)/Cum(IsDefined(xNorm));
J> { Plot in own window }
J> If(pds<2,xNorm,avg);xNorm
J> ---8<---------------------
J> jose '-)
--
Best regards,
Tony
It's an ill wind that blows no good.
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/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/
|